Simon Bowie a6909fff46 Link | 3 anos atrás | |
---|---|---|
nginx-conf | 3 anos atrás | |
web | 3 anos atrás | |
.env.template | 3 anos atrás | |
.gitignore | 3 anos atrás | |
README.md | 3 anos atrás | |
docker-compose.prod.yml | 3 anos atrás | |
docker-compose.yml | 3 anos atrás |
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'@'%';