You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
614 B

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
  1. ## Requirements
  2. npm >= 6.0
  3. pip:
  4. * wheel
  5. * gunicorn
  6. * flask
  7. * flask_sqlalchemy
  8. ## Unit File
  9. ```shell
  10. [Unit]
  11. Description=Gunicorn instance for primemeat
  12. After=network.target
  13. [Service]
  14. User=maintenance
  15. Group=www-data
  16. WorkingDirectory=/path/to/project
  17. Environment="PATH=/path/to/project/bin"
  18. #remove --reload when site is ready
  19. #reload restarts workers when code changes
  20. ExecStart=/path/to/project/bin/gunicorn --reload --workers 3 --bind 0.0.0.0:8900 wsgi:app
  21. [Install]
  22. WantedBy=multi-user.target
  23. ```
  24. ## Caddy
  25. ```shell
  26. primemeat.some.domain.org {
  27. root * /path/to/project
  28. reverse_proxy localhost:8900
  29. }
  30. ```