Skip to content

y4code/alivepools-backend

Repository files navigation

alivepools-backend

Deploy alivepools-backend to Server

How to Run

Install dependencies

python3 -m venv venv
source venv/bin/activate
pip3 install -r requirements.txt

Local

flask --app alivepools-backend run -p 8000

Production

flask --app alivepools-backend run --host=0.0.0.0:8000

Production with systemd (Recommend)

Put alivepools-backend.service in /etc/systemd/system/, run daemon-reload, enable and start command before command below

sudo systemctl restart alivepools-backend.service

Cheatsheet

Freeze dependencies

pip3 freeze > requirements.txt

Caddyfile

check Caddyfile for more details

caddy start

Releases

No releases published

Packages

No packages published

Languages