Skip to content

Commit 8454f59

Browse files
committed
Allowing user configure gunicorn using --config
1 parent 9d56a57 commit 8454f59

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

manifests/django.pp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
$proxy = true,
99
$proxy_hosts = [],
1010
$directory = "/home/$user/$title/src",
11+
$gunicorn_cfg = "$directory/gunicorn.conf.py",
1112
$vhost_cfg_append = undef,
1213
) {
1314
include supervisor
1415

1516
include appdeploy::deps::l10n
16-
include appdeploy::deps::gevent
1717
include appdeploy::deps::python
1818
include appdeploy::deps::pillow
1919
include appdeploy::deps::essential
@@ -28,7 +28,7 @@
2828
$manage_path = "$virtualenv_path/bin/python manage.py"
2929

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

3434
if $celery {

0 commit comments

Comments
 (0)