Merge branch 'develop' into staging
This commit is contained in:
commit
a1885c86ce
1 changed files with 2 additions and 0 deletions
|
@ -153,6 +153,7 @@ 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'
|
||||||
deploy do
|
deploy do
|
||||||
|
queue %[sudo stop sidekiq_#{user!} || true]
|
||||||
# Put things that will set up an empty directory into a fully set-up
|
# Put things that will set up an empty directory into a fully set-up
|
||||||
# instance of your project.
|
# instance of your project.
|
||||||
invoke :'git:clone'
|
invoke :'git:clone'
|
||||||
|
@ -163,6 +164,7 @@ task :deploy => :environment do
|
||||||
|
|
||||||
to :launch do
|
to :launch do
|
||||||
queue "/etc/init.d/#{user} upgrade "
|
queue "/etc/init.d/#{user} upgrade "
|
||||||
|
queue! %[sudo start sidekiq_#{user!}]
|
||||||
|
|
||||||
queue "cd #{deploy_to}/#{current_path}/"
|
queue "cd #{deploy_to}/#{current_path}/"
|
||||||
queue "bundle exec rake db:seed RAILS_ENV=#{rails_env}"
|
queue "bundle exec rake db:seed RAILS_ENV=#{rails_env}"
|
||||||
|
|
Loading…
Reference in a new issue