Skip to content

Commit

Permalink
Merge pull request #518 from UCLALibrary/apps-396-sinai_feature_flags
Browse files Browse the repository at this point in the history
APPS-396: Use cap deploy to enable ursus sinai feature flag
  • Loading branch information
jendiamond authored Dec 3, 2019
2 parents 04c5836 + 73474a3 commit 2aa7358
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions config/deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,20 @@

append :linked_files, ".env.production"
append :linked_files, "config/secrets.yml"

### Ursus Feature Flags ################

# Enable Sinai Manuscripts features
if ENV['FEATURE_FLAG'] == 'sinaimanu'
namespace :ursus do
task :enable_sinai_manuscript_features do
on roles(:app) do
execute "cd #{deploy_to}/current; /usr/bin/env bundle exec rake ursus:sinai:on RAILS_ENV=production"
end
end
end

after 'deploy:published', 'ursus:enable_sinai_manuscript_features'
end

########################################

0 comments on commit 2aa7358

Please sign in to comment.