已迁移到新版[Smorest Sync Full Stack(https://github.com/ssfdust/smorest-sfs)] ,没错 如果有时间将会有Smorest Async Full Stack,Flask即将支持Asyncio.

make
poetry shell
inv app.boilerplates.generate-config
inv app.db.create-pg-db-and-user
inv app.db.create-mg-db-and-user -a <mongodb_admin> -p <mongodb_passwd>
inv app.db.initdb
inv app.db.init-development-data
FLASK_ENV=testing inv app.db.initdb
FLASK_ENV=testing inv app.db.init-development-data
sudo vim /etc/hosts
插入
127.0.0.1 <server_name>
在http段新增
include conf.d/*.conf;
在nginx.conf所在目录中不存在conf.d则创建
sudo mkdir /etc/nginx/conf.d
复制deploy/nginx/flask.conf到conf.d
sudo cp deploy/nginx/flask.conf /etc/nginx/conf.d/
重启nginx
sudo systemctl restart nginx
inv app.manager
参考docker-compose.yml修改production.toml
根据production.toml生成模板配置
inv app.boilerplates.generate-docker-compose
执行
docker-compose up
Content type
Image
Digest
Size
438.7 MB
Last updated
over 6 years ago
docker pull ssfdust/full-stack-flask-smorest