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.
 
 
 
 
Marc 17737d8e1c a 3 years ago
backend first 3 years ago
frontend a 3 years ago
README.md first 3 years ago

README.md

Requirements

pip:

  • wheel
  • gunicorn
  • flask

Unit File

[Unit]
Description=Gunicorn instance for primemeat
After=network.target

[Service]
User=maintenance
Group=www-data
WorkingDirectory=/path/to/project
Environment="PATH=/path/to/project/bin"
#remove --reload when site is ready
#reload restarts workers when code changes
ExecStart=/path/to/project/bin/gunicorn --reload --workers 3 --bind 0.0.0.0:8900 wsgi:app

[Install]
WantedBy=multi-user.target

Caddy

primemeat.some.domain.org {
  root * /path/to/project
  reverse_proxy localhost:8900
}