Skip to content

Commit

Permalink
Add paster support
Browse files Browse the repository at this point in the history
  • Loading branch information
Diarmuid Bourke committed Apr 18, 2013
1 parent efbdc5c commit a6e826b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions fabric_gunicorn.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
from fabric import colors
from fabric.api import task, env, run, cd
from fabric.utils import abort, puts
from fabric.contrib import files
from fabric.context_managers import hide


Expand Down Expand Up @@ -81,7 +80,11 @@ def start():
options.append('--worker-class %s' % env.gunicorn_worker_class)
options_string = ' '.join(options)

run('%s gunicorn %s %s' % (prefix_string, options_string,
if 'paster_config_file' in env:
run('%s gunicorn_paster %s %s' % (prefix_string, options_string,
env.paster_config_file))
else:
run('%s gunicorn %s %s' % (prefix_string, options_string,
env.gunicorn_wsgi_app))

if gunicorn_running():
Expand Down

0 comments on commit a6e826b

Please sign in to comment.