Skip to content

Commit

Permalink
Delete pid file and retry
Browse files Browse the repository at this point in the history
  • Loading branch information
captn3m0 committed Aug 22, 2015
1 parent 71909d7 commit 1a8ca67
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions config/deploy.rb
Expand Up @@ -57,8 +57,9 @@

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
Expand Down

0 comments on commit 1a8ca67

Please sign in to comment.