Skip to content

Commit

Permalink
Allowing user configure gunicorn using --config
Browse files Browse the repository at this point in the history
  • Loading branch information
seocam committed Jul 31, 2014
1 parent 9d56a57 commit 8454f59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions manifests/django.pp
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
$proxy = true,
$proxy_hosts = [],
$directory = "/home/$user/$title/src",
$gunicorn_cfg = "$directory/gunicorn.conf.py",
$vhost_cfg_append = undef,
) {
include supervisor

include appdeploy::deps::l10n
include appdeploy::deps::gevent
include appdeploy::deps::python
include appdeploy::deps::pillow
include appdeploy::deps::essential
Expand All @@ -28,7 +28,7 @@
$manage_path = "$virtualenv_path/bin/python manage.py"

supervisor::app { $title:
command => "$virtualenv_path/bin/gunicorn $title.wsgi:application --bind=$ip:$port --worker-class=gevent --workers=3",
command => "$virtualenv_path/bin/gunicorn $title.wsgi:application --bind=$ip:$port --config=$gunicorn_cfg",
}

if $celery {
Expand Down

0 comments on commit 8454f59

Please sign in to comment.