mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-13 22:32:15 +00:00
Fix the fabfile not to bomb when the server is already stopped
This commit is contained in:
3
fabfile.py
vendored
3
fabfile.py
vendored
@@ -162,8 +162,11 @@ def stop():
|
||||
require('path')
|
||||
|
||||
with cd('%(path)s/dreddit-auth/' % env):
|
||||
run('rm -f off.html')
|
||||
run('ln -s templates/off.html')
|
||||
run('kill `cat ./logs/celeryd.pid`')
|
||||
run('kill `cat ./logs/auth.pid`')
|
||||
run('rm -f ./logs/celeryd.pid')
|
||||
run('rm -f ./logs/auth.pid')
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user