Yalies / api

👥 The best directory of Yale personnel, with a clean API to match. Used by 70% of undergrads!
https://yalies.io
12 stars 23 forks source link

Test dockerfile on Windows / Create Windows instructions for docker #170

Open Redorhcs opened 2 years ago

Redorhcs commented 2 years ago

From commit 21db6036cda1579dd894543278c3daf3fc25b378

Redorhcs commented 2 years ago

Branch tree-docker is tracking these changes. I've got the file building (had to add in a COPY command for the pip requirements) but can't hit the webserver just yet. Will investigate

Redorhcs commented 2 years ago

We're learning more about this every day :) - got a build going with a different error meaning the app isn't launching right. is FLASK_APP FLASK_ENV flask run required to get the app launching, or is there a different build command?

ErikBoesen commented 2 years ago

The full command is FLASK_APP=app.py FLASK_ENV=development flask run. In production, we use gunicorn app:app to run the server (see Procfile)