[bug 1196244] Use python2.7 in chief update script.

This commit is contained in:
John Giannelos 2015-08-10 15:33:49 +03:00
Родитель a49db115e1
Коммит 9657f02652
1 изменённых файлов: 9 добавлений и 9 удалений

Просмотреть файл

@ -45,16 +45,16 @@ def update_locales(ctx):
@task
def update_assets(ctx):
with ctx.lcd(settings.SRC_DIR):
ctx.local("LANG=en_US.UTF-8 python2.6 manage.py collectstatic --noinput --no-default-ignore -i .git")
ctx.local("LANG=en_US.UTF-8 python2.6 manage.py compress --engine jinja2")
ctx.local("LANG=en_US.UTF-8 python2.6 manage.py update_product_details")
ctx.local("LANG=en_US.UTF-8 python2.7 manage.py collectstatic --noinput --no-default-ignore -i .git")
ctx.local("LANG=en_US.UTF-8 python2.7 manage.py compress --engine jinja2")
ctx.local("LANG=en_US.UTF-8 python2.7 manage.py update_product_details")
@task
def database(ctx):
with ctx.lcd(settings.SRC_DIR):
ctx.local("python2.6 manage.py syncdb") # South (new)
ctx.local("python2.6 manage.py migrate") # South (new)
ctx.local("python2.7 manage.py syncdb") # South (new)
ctx.local("python2.7 manage.py migrate") # South (new)
@task
@ -96,24 +96,24 @@ def ping_newrelic(ctx):
@task
def update_es_indexes(ctx):
with ctx.lcd(settings.SRC_DIR):
ctx.local("python2.6 manage.py cron index_all_profiles &")
ctx.local("python2.7 manage.py cron index_all_profiles &")
@task
def validate_fun_facts(ctx):
with ctx.lcd(settings.SRC_DIR):
ctx.local("python2.6 manage.py cron validate_fun_facts")
ctx.local("python2.7 manage.py cron validate_fun_facts")
@task
def generate_humanstxt(ctx):
with ctx.lcd(settings.SRC_DIR):
ctx.local("python2.6 manage.py cron generate_humanstxt &")
ctx.local("python2.7 manage.py cron generate_humanstxt &")
#@task
#def install_cron(ctx):
# with ctx.lcd(settings.SRC_DIR):
# ctx.local("python2.6 ./scripts/crontab/gen-crons.py -k %s -u apache > /etc/cron.d/.%s" %
# ctx.local("python2.7 ./scripts/crontab/gen-crons.py -k %s -u apache > /etc/cron.d/.%s" %
# (settings.WWW_DIR, settings.CRON_NAME))
# ctx.local("mv /etc/cron.d/.%s /etc/cron.d/%s" % (settings.CRON_NAME, settings.CRON_NAME))