Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'develop'

  • Loading branch information...
commit 41ffc1036c61f2e3ca8cc1087cb79c5ad5b33271 2 parents 133613e + 7446413
Antonio Pardo Sánchez authored
Showing with 16 additions and 0 deletions.
  1. +8 −0 config/deploy/production.rb
  2. +8 −0 config/deploy/staging.rb
View
8 config/deploy/production.rb
@@ -79,6 +79,7 @@
task :update_code, :except => { :no_release => true } do
run "cd #{current_path}; git fetch origin; git reset --hard #{branch}"
finalize_update
+ restart_resque
end
desc "Update the database (overwritten to avoid symlink)"
@@ -122,6 +123,13 @@
#run "cd #{latest_release}; RAILS_ENV=staging bundle exec rake assets:precompile"
end
+ desc "Restart resque workers"
+ task :restart_resque, :except => { :no_release => true } do
+ run <<-CMD
+ sudo /etc/init.d/oiga.me.resque restart
+ CMD
+ end
+
#namespace :assets do
# task :precompile, :roles => :web, :except => { :no_release => true } do
# from = source.next_revision(current_revision)
View
8 config/deploy/staging.rb
@@ -89,6 +89,7 @@
task :update_code, :except => { :no_release => true } do
run "cd #{current_path}; git fetch origin; git reset --hard #{branch}"
finalize_update
+ restart_resque
end
desc "Update the database (overwritten to avoid symlink)"
@@ -131,6 +132,13 @@
# precompile assets
#run "cd #{latest_release}; RAILS_ENV=staging bundle exec rake assets:precompile"
end
+
+ desc "Restart resque workers"
+ task :restart_resque, :except => { :no_release => true } do
+ run <<-CMD
+ sudo /etc/init.d/beta.oiga.me.resque restart
+ CMD
+ end
#namespace :assets do
# task :precompile, :roles => :web, :except => { :no_release => true } do
Please sign in to comment.
Something went wrong with that request. Please try again.