mirror of
https://github.com/status-im/cabot.git
synced 2025-02-24 10:28:06 +00:00
Move foreman -e command line param to earlier as it doesn't seem to be getting called properly right now - foreman keeps defaulting to whatever's in the .foreman file otherwise on Ubuntu 14.04.
This commit is contained in:
parent
fbaa120653
commit
fc4f64bc46
10
fabfile.py
vendored
10
fabfile.py
vendored
@ -42,24 +42,24 @@ def run_migrations(deploy_path=DEPLOY_PATH):
|
||||
with cd(deploy_path):
|
||||
with prefix("source {venv}/bin/activate".format(venv=VENV_DIR)):
|
||||
sudo(
|
||||
"foreman run python manage.py syncdb -e conf/{env}.env".format(env=env.deploy_version))
|
||||
"foreman run -e conf/{env}.env python manage.py syncdb".format(env=env.deploy_version))
|
||||
sudo(
|
||||
"foreman run python manage.py migrate cabotapp --noinput -e conf/{env}.env".format(env=env.deploy_version))
|
||||
"foreman run -e conf/{env}.env python manage.py migrate cabotapp --noinput".format(env=env.deploy_version))
|
||||
# Wrap in failure for legacy reasons
|
||||
# https://github.com/celery/django-celery/issues/149
|
||||
print "You can ignore an error message regarding 'relation \"celery_taskmeta\" already exists'"
|
||||
with settings(warn_only=True):
|
||||
sudo(
|
||||
"foreman run python manage.py migrate djcelery --noinput -e conf/{env}.env".format(env=env.deploy_version))
|
||||
"foreman run -e conf/{env}.env python manage.py migrate djcelery --noinput".format(env=env.deploy_version))
|
||||
|
||||
|
||||
def collect_static(deploy_path=DEPLOY_PATH):
|
||||
with cd(deploy_path):
|
||||
with prefix("source {venv}/bin/activate".format(venv=VENV_DIR)):
|
||||
sudo(
|
||||
"foreman run python manage.py collectstatic --noinput -e conf/{env}.env".format(env=env.deploy_version))
|
||||
"foreman run -e conf/{env}.env python manage.py collectstatic --noinput".format(env=env.deploy_version))
|
||||
sudo(
|
||||
"foreman run python manage.py compress -e conf/{env}.env".format(env=env.deploy_version))
|
||||
"foreman run -e conf/{env}.env python manage.py compress".format(env=env.deploy_version))
|
||||
|
||||
|
||||
def setup_upstart(deploy_path=DEPLOY_PATH):
|
||||
|
Loading…
x
Reference in New Issue
Block a user