Create a .env
file similar to the .env.sample
file and put secret keys there.
NEVER COMMIT THE ENV FILE
docker-compose up --build -d
docker stop ytsummarizer
docker rm ytsummarizer
docker image rm youtubesummarizer
conda env create -f environment.yml
conda activate 3hustlers
mkdir src/logs
flask run
export FLASK_APP=~/Documents/workspace/3hustlers/youtubesummarizer/src/db
flask shell
from src.database import db
db.create_all()
db.drop_all()
- Create a Procfile
- Create a runner.py
pip install gunicorn
gunicorn src.runner:application