Delete pid file and retry

This commit is contained in:
Abhay Rana 2015-08-22 21:51:28 +05:30
parent 71909d7f49
commit 1a8ca67684
1 changed files with 3 additions and 2 deletions

View File

@ -57,8 +57,9 @@ task :deploy => :environment do
to :launch do
if File.exists?('/tmp/lightsaber.pid')
queue "bundle exec thin -C config.yml stop"
queue "bundle exec thin -C config.yml start"
queue! "bundle exec thin -C config.yml stop"
queue! "rm /tmp/lightsaber.pid"
queue! "bundle exec thin -C config.yml start"
else
queue "bundle exec thin -C config.yml start"
end