mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Adding staging_full and deploy_full to fabfile to perform schema migrations.
This commit is contained in:
parent
f85b757f5b
commit
3b0c663083
1 changed files with 14 additions and 0 deletions
14
fabfile.py
vendored
14
fabfile.py
vendored
|
@ -45,12 +45,26 @@ def deploy():
|
|||
run('git pull')
|
||||
run('kill -HUP `cat /var/run/gunicorn/gunicorn.pid`')
|
||||
|
||||
@roles('app')
|
||||
def deploy_full():
|
||||
with cd('~/newsblur'):
|
||||
run('git pull')
|
||||
run('./manage.py migrate')
|
||||
run('kill -HUP `cat /var/run/gunicorn/gunicorn.pid`')
|
||||
|
||||
@roles('app')
|
||||
def staging():
|
||||
with cd('~/staging'):
|
||||
run('git pull')
|
||||
run('kill -HUP `cat /var/run/gunicorn/gunicorn_staging.pid`')
|
||||
|
||||
@roles('app')
|
||||
def staging_full():
|
||||
with cd('~/staging'):
|
||||
run('git pull')
|
||||
run('./manage.py migrate')
|
||||
run('kill -HUP `cat /var/run/gunicorn/gunicorn_staging.pid`')
|
||||
|
||||
@roles('task')
|
||||
def celery():
|
||||
with cd('~/newsblur'):
|
||||
|
|
Loading…
Add table
Reference in a new issue