This app might be running here.
This is mostly an example app wherein I get to play with deploying a Flask application. It is tiny, but uses a Dockerized gunicorn instance to serve the app thereby making it trivial to deploy. The Dockerfile and run-prod.sh files are likely of the greatest interest in this repo.
Because WSGI + Docker + Deployments is an area I often need a simple lab set up for!
- Well, first off you need PyEnv
- Next, you'll need Docker running
DEV
sh run-dev.sh
PROD
sh run-prod.sh
PROD CONTAINER
sh run-prod-container.sh
DEPLOY IMAGE TO PROD
sh run-deploy.sh
Some links I used while making this. Be aware the extent to which I used these items is not documented and a great deal of the works was done "by me" and by that I mean I looked at all or part of the resources listed and used some amount typically not all of the resource in question, but enough to want to credit the author with putting me on the right track.
- https://www.freecodecamp.org/news/how-to-dockerize-a-flask-app/
- https://gunicorn.org/
- https://flask.palletsprojects.com/en/2.2.x/deploying/gunicorn/
- https://stackoverflow.com/questions/43925487/how-to-run-gunicorn-on-docker
- https://andybrewer.github.io/mvp/
Ideas I am toying with for this project!
- https://andy-bell.co.uk/cube-css/
- https://flask-login.readthedocs.io/en/0.4.1/#your-user-class
- https://twitter.com/piccalilli_
- https://eleventy-excellent.netlify.app/
- https://www.youtube.com/watch?v=5uhIiI9Ld5M
- https://learneleventyfromscratch.com/lesson/31.html#testing-our-production-task
- https://www.11ty.dev/
- This project does not work for individuals named "Lane"