Skip to content
This repository has been archived by the owner on Jan 25, 2018. It is now read-only.

Commit

Permalink
Merge pull request #2 from jasonthomas/master
Browse files Browse the repository at this point in the history
Use virtualenv python defined in commander_settings.py. Add gunicorn to requirements/prod.txt
  • Loading branch information
washort committed Oct 25, 2012
2 parents 230db13 + 970fe32 commit f2dcf9d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
10 changes: 5 additions & 5 deletions bin/update/deploy.py
Expand Up @@ -61,9 +61,9 @@ def update_locales(ctx):
@task
def update_assets(ctx):
with ctx.lcd(settings.SRC_DIR):
ctx.local("python2.6 manage.py collectstatic --noinput")
ctx.local("%s manage.py collectstatic --noinput" % settings.PYTHON)
# LANG=en_US.UTF-8 is sometimes necessary for the YUICompressor.
ctx.local('LANG=en_US.UTF8 python2.6 manage.py compress_assets')
ctx.local('LANG=en_US.UTF8 %s manage.py compress_assets' % settings.PYTHON)


@task
Expand All @@ -74,7 +74,7 @@ def update_db(ctx):
"""
with ctx.lcd(settings.SRC_DIR):
ctx.local('python2.6 ./vendor/src/schematic/schematic migrations')
ctx.local('%s ./vendor/src/schematic/schematic migrations' % settings.PYTHON)


@task
Expand All @@ -99,7 +99,7 @@ def update_info(ctx):
ctx.local('git log -3')
ctx.local('git status')
ctx.local('git submodule status')
ctx.local('python2.6 ./vendor/src/schematic/schematic -v migrations/')
ctx.local('%s ./vendor/src/schematic/schematic -v migrations/' % settings.PYTHON)


@task
Expand All @@ -112,7 +112,7 @@ def pre_update(ctx, ref=settings.UPDATE_REF):
@task
def post_update(ctx):
with ctx.lcd(settings.SRC_DIR):
ctx.local('python2.6 manage.py statsd_ping --key=update')
ctx.local('%s manage.py statsd_ping --key=update' % settings.PYTHON)


@task
Expand Down
1 change: 1 addition & 0 deletions requirements/prod.txt
Expand Up @@ -8,6 +8,7 @@ django-nose==1.1
django-statsd-mozilla==0.3.7
django-tastypie==0.9.11
funfactory==2.1.1
gunicorn==0.15.0
jingo==0.4
mimeparse==0.1.3
m2secret==0.1.1
Expand Down

0 comments on commit f2dcf9d

Please sign in to comment.