Simon Bowie c34e86e1eb Added practices and examples routes | 3 år sedan | |
---|---|---|
nginx-conf | 3 år sedan | |
web | 3 år sedan | |
.env.dev | 3 år sedan | |
.gitignore | 3 år sedan | |
README.md | 3 år sedan | |
docker-compose.prod.yml | 3 år sedan | |
docker-compose.yml | 3 år sedan |
To build the database run:
docker exec -it python python
from app import db, create_app, models
db.create_all(app=create_app())
For creating database and user:
CREATE DATABASE toolkit;
CREATE USER 'flask'@'%' IDENTIFIED BY '[PASSWORD]';
GRANT CREATE, INSERT, UPDATE, SELECT, DELETE ON toolkit.* TO 'flask'@'%';