Merge pull request #2844 from betagouv/fix-after-party

deploy: fix after_party deployment
This commit is contained in:
gregoirenovel 2018-10-17 10:36:57 +02:00 committed by GitHub
commit e3055ec1de
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -104,6 +104,16 @@ namespace :yarn do
end end
end end
namespace :after_party do
desc "Run after_party tasks."
task :run do
queue %{
echo "-----> Running deploy tasks"
#{echo_cmd %[#{rake} after_party:run]}
}
end
end
desc "Deploys the current version to the server." desc "Deploys the current version to the server."
task :deploy => :environment do task :deploy => :environment do
queue 'export PATH=$PATH:/usr/local/rbenv/bin:/usr/local/rbenv/shims' queue 'export PATH=$PATH:/usr/local/rbenv/bin:/usr/local/rbenv/shims'
@ -116,7 +126,7 @@ task :deploy => :environment do
invoke :'bundle:install' invoke :'bundle:install'
invoke :'yarn:install' invoke :'yarn:install'
invoke :'rails:db_migrate' invoke :'rails:db_migrate'
invoke :'rake[after_party:run]' invoke :'after_party:run'
invoke :'rails:assets_precompile:force' invoke :'rails:assets_precompile:force'
to :launch do to :launch do