This commit is contained in:
chendelin1982 2021-08-27 18:27:28 +08:00
parent 42b1602754
commit 5934db54ca
2 changed files with 18 additions and 0 deletions

2
api/requirements.txt Normal file
View file

@ -0,0 +1,2 @@
fastapi
uvicorn

16
deploy/stackhub.service Normal file
View file

@ -0,0 +1,16 @@
[Unit]
Description=My fastapi app
Requires=network.target
After=network.target
[Service]
KillSignal=SIGQUIT
WorkingDirectory=/data/develop/stackhub/api
ExecStart=python3 uvicorn main:app --reload
Restart=always
Type=notify
NotifyAccess=all
StandardError=syslog
[Install]
WantedBy=multi-user.target