The main branch is under active development
-
create virtual env
python3 -m venv .venv
source <venv>/bin/activate
-
install deps
python3 -m pip install -r requirements.txt
-
change config
- rename
.example.env
to.env
- rename
-
start app
python3 app.py
-
run spider
python3 -m app.spider.pbs_article
-
register admin user
python3 -m app.bin.gen_admin_user
- build image
docker build -t taishan-server:alpine .
- run
docker-compose up -d
- upgrade app
docker-compose pull && docker-compose up -d