Delete pid file and retry
This commit is contained in:
parent
71909d7f49
commit
1a8ca67684
|
@ -57,8 +57,9 @@ task :deploy => :environment do
|
||||||
|
|
||||||
to :launch do
|
to :launch do
|
||||||
if File.exists?('/tmp/lightsaber.pid')
|
if File.exists?('/tmp/lightsaber.pid')
|
||||||
queue "bundle exec thin -C config.yml stop"
|
queue! "bundle exec thin -C config.yml stop"
|
||||||
queue "bundle exec thin -C config.yml start"
|
queue! "rm /tmp/lightsaber.pid"
|
||||||
|
queue! "bundle exec thin -C config.yml start"
|
||||||
else
|
else
|
||||||
queue "bundle exec thin -C config.yml start"
|
queue "bundle exec thin -C config.yml start"
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue