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.

39 lines
723 B

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