diff --git a/api/requirements.txt b/api/requirements.txt new file mode 100644 index 00000000..f0615cfd --- /dev/null +++ b/api/requirements.txt @@ -0,0 +1,2 @@ +fastapi +uvicorn \ No newline at end of file diff --git a/deploy/stackhub.service b/deploy/stackhub.service new file mode 100644 index 00000000..4a14df4c --- /dev/null +++ b/deploy/stackhub.service @@ -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