24
loading...
This website collects cookies to deliver better user experience
Push code to Github
Pull code in VPS
Redeploy application
pip install pipenv
pipenv install flask
pipenv shell
docker build -t 1-flask-deployment .
docker run -dp 5001:5001 1-flask-deployment
Pipenv Basic: https://pipenv.pypa.io/en/latest/basics/
Flask Quick Start: https://flask.palletsprojects.com/en/2.0.x/quickstart/
Pipenv docker: https://pythonspeed.com/articles/pipenv-docker/
Gunicorn Flask: https://www.digitalocean.com/community/tutorials/how-to-serve-flask-applications-with-gunicorn-and-nginx-on-ubuntu-18-04