mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-25 09:00:26 +00:00
init
This commit is contained in:
parent
42b1602754
commit
5934db54ca
2 changed files with 18 additions and 0 deletions
2
api/requirements.txt
Normal file
2
api/requirements.txt
Normal file
|
@ -0,0 +1,2 @@
|
|||
fastapi
|
||||
uvicorn
|
16
deploy/stackhub.service
Normal file
16
deploy/stackhub.service
Normal 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
|
Loading…
Reference in a new issue