howtorun.txt 385 B

1234567891011121314151617
  1. # run command:
  2. gunicorn -w 4 -b :5000 index:app --access-logfile logs/access.log --error-logfile logs/error.log --log-level=debug --pid run/gunicorn.pid -D
  3. # /etc/logrotate.d/gunicorn
  4. /opt/aliyun_eipaddress/logs/*.log {
  5. daily
  6. rotate 30
  7. compress
  8. dateext
  9. dateformat .%Y-%m-%d
  10. notifempty
  11. sharedscripts
  12. postrotate
  13. kill -USR1 $(cat /opt/aliyun_eipaddress/run/gunicorn.pid)
  14. endscript
  15. }