use gunicorn
This commit is contained in:
parent
365c73e16b
commit
cf55a9e807
|
@ -9,4 +9,5 @@ redis==5.0.8
|
|||
async-timeout==4.0.3
|
||||
Pillow
|
||||
flask==3.0.3
|
||||
schedule==1.2.2
|
||||
schedule==1.2.2
|
||||
gunicorn==23.0.0
|
|
@ -6,7 +6,7 @@ After=network.target
|
|||
Type=simple
|
||||
User=homeassistant
|
||||
EnvironmentFile=/etc/secrets/space-weather
|
||||
ExecStart=/srv/ha-noaa-space-weather/venv/bin/python /srv/ha-noaa-space-weather/feeder/server.py
|
||||
ExecStart=/srv/ha-noaa-space-weather/venv/bin/gunicorn --workers 7 --bind 0.0.0.0:5000 server:app --access-logfile '-' --error-logfile '-'
|
||||
SyslogIdentifier=space-weather-server
|
||||
Restart=on-failure
|
||||
RestartSec=5s
|
||||
|
|
Loading…
Reference in New Issue