fnp
/
fnpdjango.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix in get_here_url: generic views provide unusable url name, check for view func...
[fnpdjango.git]
/
fnpdjango
/
deploy
/
__init__.py
diff --git
a/fnpdjango/deploy/__init__.py
b/fnpdjango/deploy/__init__.py
index
50a0d62
..
3256584
100644
(file)
--- a/
fnpdjango/deploy/__init__.py
+++ b/
fnpdjango/deploy/__init__.py
@@
-108,7
+108,7
@@
class DebianGunicorn(Task):
def run(self):
print '>>> restart webserver using gunicorn-debian'
with path('/sbin'):
def run(self):
print '>>> restart webserver using gunicorn-debian'
with path('/sbin'):
- sudo('gunicorn-debian restart %s' % self.
site_
name, shell=False)
+ sudo('gunicorn-debian restart %s' % self.name, shell=False)
class Apache(Task):
def run(self):
class Apache(Task):
def run(self):
@@
-209,7
+209,7
@@
def migrate():
"Update the database"
print '>>> migrate'
require('app_path', 'project_name')
"Update the database"
print '>>> migrate'
require('app_path', 'project_name')
- with cd('%(app_path)s/releases/current
/%(project_name)s
' % env):
+ with cd('%(app_path)s/releases/current' % env):
run('%(app_path)s/ve/bin/python manage.py syncdb --noinput' % env, pty=True)
run('%(app_path)s/ve/bin/python manage.py migrate' % env, pty=True)
run('%(app_path)s/ve/bin/python manage.py syncdb --noinput' % env, pty=True)
run('%(app_path)s/ve/bin/python manage.py migrate' % env, pty=True)
@@
-217,5
+217,5
@@
def collectstatic():
"""Collect static files"""
print '>>> collectstatic'
require('app_path', 'project_name')
"""Collect static files"""
print '>>> collectstatic'
require('app_path', 'project_name')
- with cd('%(app_path)s/releases/current
/%(project_name)s
' % env):
+ with cd('%(app_path)s/releases/current' % env):
run('%(app_path)s/ve/bin/python manage.py collectstatic --noinput' % env, pty=True)
run('%(app_path)s/ve/bin/python manage.py collectstatic --noinput' % env, pty=True)