diff options
-rw-r--r-- | config/deploy.rb | 12 | ||||
-rw-r--r-- | doc/CHANGES.md | 6 |
2 files changed, 11 insertions, 7 deletions
diff --git a/config/deploy.rb b/config/deploy.rb index afc586ecf..918ce5f8d 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -33,14 +33,12 @@ namespace :xapian do end 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 + [:start, :stop, :restart].each do |t| + desc "#{t.to_s.capitalize} Alaveteli service defined in /etc/init.d/alaveteli" + task t, :roles => :app, :except => { :no_release => true } do + run "service alaveteli #{t}" + end end desc 'Link configuration after a code update' diff --git a/doc/CHANGES.md b/doc/CHANGES.md index cc8c37c3a..399d99fe7 100644 --- a/doc/CHANGES.md +++ b/doc/CHANGES.md @@ -28,6 +28,12 @@ <%= text_field_tag 'public_body_change_request[comment]' %> </p> This is the anti-spam honeypot. +* The capistrano `stop`, `start` and `restart` tasks now restart the app + server via the service `/etc/init.d/alaveteli`. If you're using + capistrano for deployment, make sure `/etc/init.d/alaveteli` exists + and is current. You can create it using the template + `config/sysvinit-thin.ugly` or `config/sysvinit-passenger.ugly` as + described in http://alaveteli.org/docs/installing/manual_install/#generate-alaveteli-service # Version 0.18 |