diff options
author | Henare Degan <henare.degan@gmail.com> | 2012-09-10 15:54:23 +1000 |
---|---|---|
committer | Henare Degan <henare.degan@gmail.com> | 2012-09-10 15:54:23 +1000 |
commit | f1866b2ad1e6efdf8d652857d5cd2e32d9792fd0 (patch) | |
tree | ea3630aae8906aa1a8111ebabbbed33603c1d519 | |
parent | bf7cec08bcc37a2725e64cfe19e060b78cabda5b (diff) |
Add deployment tasks for Passenger
-rw-r--r-- | config/deploy.rb | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/config/deploy.rb b/config/deploy.rb index 1dcc2309d..4eb961a14 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -8,11 +8,14 @@ role :app, "your app-server here" # This may be the sam role :db, "your primary db-server here", :primary => true # This is where Rails migrations will run role :db, "your slave db-server here" -# If you are using Passenger mod_rails uncomment this: -# namespace :deploy do -# task :start do ; end -# task :stop do ; end -# task :restart, :roles => :app, :except => { :no_release => true } do -# run "#{try_sudo} touch #{File.join(current_path,'tmp','restart.txt')}" -# end -# end
\ No newline at end of file +namespace :deploy do + desc "Restarting mod_rails with restart.txt" + task :restart, :roles => :app, :except => { :no_release => true } do + run "touch #{current_path}/tmp/restart.txt" + end + + [:start, :stop].each do |t| + desc "#{t} task is a no-op with mod_rails" + task t, :roles => :app do ; end + end +end |