Simon Bowie 8e06695244 initial steps for consolidating resources into one database table | 2 年之前 | |
---|---|---|
nginx-conf | 3 年之前 | |
web | 2 年之前 | |
.env.template | 3 年之前 | |
.gitignore | 3 年之前 | |
README.md | 3 年之前 | |
docker-compose.prod.yml | 3 年之前 | |
docker-compose.yml | 3 年之前 |
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'@'%';