Skip to content

Commit

Permalink
gunicorn启动增加配置--preload
Browse files Browse the repository at this point in the history
  • Loading branch information
hhyo committed Mar 23, 2019
1 parent 6844eb2 commit cc21fcb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/docker/startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ settings=${1:-"archery.settings"}
ip=${2:-"127.0.0.1"}
port=${3:-8888}

gunicorn -w 4 --env DJANGO_SETTINGS_MODULE=${settings} --log-level=debug --error-logfile=/tmp/archery.err -b ${ip}:${port} --timeout 600 archery.wsgi:application
gunicorn -w 4 --env DJANGO_SETTINGS_MODULE=${settings} --log-level=debug --error-logfile=/tmp/archery.err -b ${ip}:${port} --preload --timeout 600 archery.wsgi:application
2 changes: 1 addition & 1 deletion startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ settings=${1:-"archery.settings"}
ip=${2:-"127.0.0.1"}
port=${3:-8000}

gunicorn -w 4 --env DJANGO_SETTINGS_MODULE=${settings} --log-level=debug --error-logfile=/tmp/archery.err -b ${ip}:${port} --timeout 600 archery.wsgi:application
gunicorn -w 4 --env DJANGO_SETTINGS_MODULE=${settings} --log-level=debug --error-logfile=/tmp/archery.err -b ${ip}:${port} --preload --timeout 600 archery.wsgi:application

0 comments on commit cc21fcb

Please sign in to comment.