summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorSergey Stankevich <stankevich@users.noreply.github.com>2013-12-06 13:40:53 -0800
committerSergey Stankevich <stankevich@users.noreply.github.com>2013-12-06 13:40:53 -0800
commit44ea60543b37ce5ddb9ff9b7411dbf7a0330f0e6 (patch)
tree93f08138d210d64d4ab69c3405ce8a74f8e8b1df /templates
parent725cf0d480b73abd53c8b4d31dc6b3190188ca74 (diff)
parent4854c78b29be47d7e23c09774a8b017c607998f9 (diff)
Merge pull request #42 from philsturgeon/patch-1
Fix deprecation warnings in template
Diffstat (limited to 'templates')
-rw-r--r--templates/gunicorn.erb28
1 files changed, 14 insertions, 14 deletions
diff --git a/templates/gunicorn.erb b/templates/gunicorn.erb
index 1a96531..99481e7 100644
--- a/templates/gunicorn.erb
+++ b/templates/gunicorn.erb
@@ -1,36 +1,36 @@
CONFIG = {
-<% if mode == 'django' -%>
+<% if @mode == 'django' -%>
'mode': 'django',
<% else -%>
'mode': 'wsgi',
<% end -%>
-<% if virtualenv -%>
+<% if @virtualenv -%>
'environment': {
-<% if environment -%>
- 'ENVIRONMENT': '<%= environment %>',
+<% if @environment -%>
+ 'ENVIRONMENT': '<%= @environment %>',
<% end -%>
- 'PYTHONPATH': '<%= virtualenv %>'
+ 'PYTHONPATH': '<%= @virtualenv %>'
},
<% end -%>
- 'working_dir': '<%= dir %>',
+ 'working_dir': '<%= @dir %>',
'user': 'www-data',
'group': 'www-data',
-<% if virtualenv -%>
- 'python': '<%= virtualenv %>/bin/python',
+<% if @virtualenv -%>
+ 'python': '<%= @virtualenv %>/bin/python',
<% else -%>
'python': '/usr/bin/python',
<% end -%>
'args': (
-<% if !virtualenv and !bind -%>
- '--bind=unix:/tmp/gunicorn-<%= name %>.socket',
-<% elsif virtualenv and !bind -%>
- '--bind=unix:<%= virtualenv %>/<%= name %>.socket',
+<% if !@virtualenv and !@bind -%>
+ '--bind=unix:/tmp/gunicorn-<%= @name %>.socket',
+<% elsif @virtualenv and !@bind -%>
+ '--bind=unix:<%= @virtualenv %>/<%= @name %>.socket',
<% else -%>
- '--bind=<%= bind %>',
+ '--bind=<%= @bind %>',
<% end -%>
'--workers=<%= @processorcount.to_i*2 %>',
'--timeout=30',
-<% if mode != 'django' -%>
+<% if @mode != 'django' -%>
'app:app',
<% end -%>
),