This commit is contained in:
Mateusz Gruszczyński 2025-02-24 23:11:29 +01:00
parent d1d0ccc311
commit 7697fed0cb
2 changed files with 10 additions and 10 deletions

View File

@ -1,19 +1,12 @@
[Unit]
Description=Hosts Application
Description=.etc.hosts Manager Waitress Service
After=network.target
[Service]
#User=www-data # Zmień na odpowiedniego użytkownika
#Group=www-data
WorkingDirectory=/opt/hosts_app
Environment="PATH=/opt/hosts_app/venv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
Environment="FLASK_APP=app.py"
Environment="FLASK_ENV=production"
ExecStart=/opt/hosts_app/venv/bin/gunicorn -c /opt/hosts_app/gunicorn_config.py app:app
ExecStart=/opt/hosts_app/venv/bin/python3 /opt/hosts_app/run_waitress.py
Restart=always
RestartSec=5
Environment=PYTHONUNBUFFERED=1
[Install]
WantedBy=multi-user.target

7
requirements.txt Normal file
View File

@ -0,0 +1,7 @@
Flask
Werkzeug
Flask-SQLAlchemy
paramiko
apscheduler
gunicorn
waitress