Permalink
Browse files

correção nomes de arquivos e caminhos errados

  • Loading branch information...
1 parent 9c0d8b0 commit c2eb7e38aaf5519f136fa847dfcc88253f5c27b4 @douglasmiranda committed Nov 2, 2012
Showing with 3 additions and 2 deletions.
  1. +2 −1 fabfile.py
  2. +1 −1 start_gunicorn.sh.template
View
@@ -100,7 +100,7 @@ def start_migration():
@roles('server')
def start_gunicorn():
with cd(env.project_root):
- run('./start_gunicorn.py')
+ run('./start_gunicorn.sh')
@roles('server')
@@ -137,6 +137,7 @@ def upload_django_settings():
@roles('server')
def upload_gunicorn_settings():
upload_template('start_gunicorn.sh', '%(project_root)s' % env)
+ run("chmod +x %(project_root)s/start_gunicorn.sh" % env)
upload_template('etc/gunicorn.prod.conf', '%(project_root)s/etc/' % env)
@@ -1,4 +1,4 @@
#!/bin/bash
source /home/USER/.virtualenvs/DJANGO_PROJECT_NAME/bin/activate
export DJANGO_SETTINGS_MODULE=DJANGO_PROJECT_NAME.settings.prod
-/home/USER/.virtualenvs/DJANGO_PROJECT_NAME/bin/python2.7 DJANGO_PROJECT_NAME/manage.py run_gunicorn -c etc/gunicorn.prod.conf --daemon --settings=DJANGO_PROJECT_NAME.settings.prod && sleep 3
+/home/USER/.virtualenvs/DJANGO_PROJECT_NAME/bin/python2.7 manage.py run_gunicorn -c etc/gunicorn.prod.conf --daemon --settings=DJANGO_PROJECT_NAME.settings.prod && sleep 3

0 comments on commit c2eb7e3

Please sign in to comment.