Simon Bowie 200d0d691d Different orange. | 3 vuotta sitten | |
---|---|---|
nginx-conf | 3 vuotta sitten | |
web | 3 vuotta sitten | |
.env.dev | 3 vuotta sitten | |
.gitignore | 3 vuotta sitten | |
README.md | 3 vuotta sitten | |
docker-compose.prod.yml | 3 vuotta sitten | |
docker-compose.yml | 3 vuotta sitten |
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'@'%';