Commit 70637d5c authored by Christophe Siraut's avatar Christophe Siraut

Fix typos.

parent eb5f19c4
...@@ -34,11 +34,11 @@ def deploy_remote(): ...@@ -34,11 +34,11 @@ def deploy_remote():
sudo('touch %s/wsgi.py' % name) sudo('touch %s/wsgi.py' % name)
sudo('mkdir -p media/uploads') sudo('mkdir -p media/uploads')
sudo('env/bin/pip install -r requirements.txt') sudo('env/bin/pip install -r requirements.txt')
if sudo('test -f %s' % os.path.join(directory, 'db.sqlite3').succeeded: if sudo('test -f %s' % os.path.join(directory, 'db.sqlite3')).succeeded:
sudo('env/bin/python manage.py collectstatic --noinput --no-initial-data') sudo('env/bin/python manage.py syncdb --no-initial-data --noinput')
else: else:
sudo('env/bin/python manage.py collectstatic --noinput') sudo('env/bin/python manage.py syncdb --noinput')
sudo('env/bin/python manage.py syncdb --noinput') sudo('env/bin/python manage.py collectstatic --noinput')
sudo('export gid=$(stat -c %g .); chown -R www-data:$gid .') sudo('export gid=$(stat -c %g .); chown -R www-data:$gid .')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment