mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-13 22:32:15 +00:00
Updated fabfile for deployments
This commit is contained in:
4
fabfile.py
vendored
4
fabfile.py
vendored
@@ -44,9 +44,11 @@ def push():
|
|||||||
require('hosts')
|
require('hosts')
|
||||||
require('path')
|
require('path')
|
||||||
|
|
||||||
|
stop()
|
||||||
update_repo()
|
update_repo()
|
||||||
setup_virtualenv()
|
setup_virtualenv()
|
||||||
migrate()
|
migrate()
|
||||||
|
start()
|
||||||
|
|
||||||
|
|
||||||
def setup_virtualenv():
|
def setup_virtualenv():
|
||||||
@@ -115,7 +117,7 @@ def start():
|
|||||||
require('path')
|
require('path')
|
||||||
|
|
||||||
with cd('%(path)s/dreddit-auth/' % env):
|
with cd('%(path)s/dreddit-auth/' % env):
|
||||||
run('screen -d -m "./start.sh"')
|
run('./start.sh')
|
||||||
|
|
||||||
|
|
||||||
def stop():
|
def stop():
|
||||||
|
|||||||
Reference in New Issue
Block a user