|
|
|
|
@ -176,6 +176,25 @@ def update_crontab(): |
|
|
|
|
run('python manage.py crontab add') |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ticket |
|
|
|
|
def switch_to_stage4(): |
|
|
|
|
with cd(REMOTE_HOME_DIR): |
|
|
|
|
call_state('stop', only='apache2') |
|
|
|
|
run('git fetch') |
|
|
|
|
run('git checkout stage4') |
|
|
|
|
run('git pull') |
|
|
|
|
call_state('start', only='apache2') |
|
|
|
|
|
|
|
|
|
@ticket |
|
|
|
|
def switch_to_stage5(): |
|
|
|
|
with cd(REMOTE_HOME_DIR): |
|
|
|
|
call_state('stop', only='apache2') |
|
|
|
|
run('git fetch') |
|
|
|
|
run('git checkout staget5') |
|
|
|
|
run('git pull') |
|
|
|
|
call_state('start', only='apache2') |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# def stage3_pre_final(): |
|
|
|
|
# with cd(REMOTE_HOME_DIR): |
|
|
|
|
# run('pip install pandas') |
|
|
|
|
|