Simon Bowie 2b7ded1cb3 linking tools and practices | пре 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'@'%';