Skip to content

Commit

Permalink
Add conf file for gunicorn
Browse files Browse the repository at this point in the history
  • Loading branch information
AA-Turner committed Jun 7, 2020
1 parent 71a2572 commit 4460843
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,4 @@ stages:
appName: $(projectName)
appType: 'webAppLinux'
package: $(Pipeline.Workspace)/drop/$(buildId).zip
startUpCommand: 'gunicorn --bind=0.0.0.0 --timeout=600 –-log-level=debug --workers=4 app:server' #PATH="/home/site/wwwroot/envs/compliance-dashboard/bin:$PATH"
startUpCommand: 'gunicorn -c=gunicorn.conf.py app:server' #PATH="/home/site/wwwroot/envs/compliance-dashboard/bin:$PATH"
6 changes: 6 additions & 0 deletions gunicorn.conf.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import multiprocessing

bind = "0.0.0.0"
timeout = 600
loglevel = "debug"
workers = multiprocessing.cpu_count() * 2 + 1

0 comments on commit 4460843

Please sign in to comment.