To run the app production-style:
gunicorn wsgi:apphttp://localhost:5000/api/auth/login
With creds:
{
"email": "admin@op.pl",
"password": "1234"
}Setting the APP_SETTINGS variable in Heroku:
heroku config:set APP_SETTINGS="quarantairbnb.config.ProductionConfig"
Make sure you get postgres running locally, for Docker use:
docker run -d -e POSTGRES_USER=admin -e POSTGRES_PASSWORD=admin -e POSTGRES_DB=quarant --name quarant -p 5432:5432 postgres:11-alpineUse the things from .env to get it running:
source .env
Running:
flask run
After setting everything up and using the right DB, use the manage script for everything to be setup in the DB.
When you want to update your model, adding a new migration:
flask db migrate
python manage.py db upgrade
