mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-01-23 09:20:20 +08:00
init
This commit is contained in:
parent
42b1602754
commit
5934db54ca
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 New Issue
Block a user