Skip to content

Commit

Permalink
Moved gunicorn settings to .py file
Browse files Browse the repository at this point in the history
Signed-off-by: Sergio Oliveira <sergio@tracy.com.br>
  • Loading branch information
seocam committed Aug 28, 2015
1 parent 35f1b73 commit fb0a796
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions misc/etc/colab/gunicorn.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import multiprocessing

bind = "127.0.0.1:8001"
workers = multiprocessing.cpu_count() * 2 + 1
syslog = True
proc_name = "colab"
2 changes: 1 addition & 1 deletion misc/lib/systemd/system/colab.service
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ User=colab
PermissionsStartOnly=true
ExecStartPre=/usr/bin/mkdir -p /var/lock/colab
ExecStartPre=/usr/bin/chown -R colab:colab /var/lock/colab
ExecStart=/usr/lib/colab/bin/gunicorn colab.wsgi:application --bind=127.0.0.1:8001 --workers=3 --log-syslog --log-syslog-prefix="[gunicorn colab]"
ExecStart=/usr/lib/colab/bin/gunicorn colab.wsgi:application --config="/etc/colab/gunicorn.py"
Restart=on-failure

[Install]
Expand Down

0 comments on commit fb0a796

Please sign in to comment.