From fde71d1f3e2c90da362c9f17a60266f5c76515af Mon Sep 17 00:00:00 2001 From: Petko Bordjukov Date: Tue, 30 Sep 2014 13:39:05 +0300 Subject: [PATCH] Add restart mechanism --- config/deploy.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/config/deploy.rb b/config/deploy.rb index 30e3dd0..0da1138 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -34,13 +34,14 @@ set :linked_dirs, %w{bin log tmp/pids tmp/cache tmp/sockets vendor/bundle public # Default value for keep_releases is 5 # set :keep_releases, 5 +set :rvm_ruby_version, '2.1.3' + namespace :deploy do desc 'Restart application' task :restart do on roles(:app), in: :sequence, wait: 5 do - # Your restart mechanism here, for example: - execute :touch, release_path.join('tmp/restart.txt') + execute '/home/barf/restart-clarion-production-server' end end