0% found this document useful (0 votes)
21 views1 page

Flask Code

This document provides instructions for setting up a Python virtual environment, installing Flask and related packages, deploying a Flask application to Heroku, and updating the application. Specifically, it outlines how to create a virtual environment, activate it, install dependencies within it, run a Flask app locally, initialize and commit a Git repository, create and deploy to a Heroku app, and later push updates to Heroku.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views1 page

Flask Code

This document provides instructions for setting up a Python virtual environment, installing Flask and related packages, deploying a Flask application to Heroku, and updating the application. Specifically, it outlines how to create a virtual environment, activate it, install dependencies within it, run a Flask app locally, initialize and commit a Git repository, create and deploy to a Heroku app, and later push updates to Heroku.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

pip3 install virtualenv

virtualenv env
.\env\Scripts\activate
py app.py

open http://127.0.0.1:5000/

.\env\Scripts\activate

to activate
.\env\Scripts\activate

in environment
pip3 install flask flask-sqlalchemy

to deploy
heroku login

pip3 install gunicorn


pip3 freeze >requirements.txt

git init
git add .
git commit -m "Init app"
git push

heroku create flaskcrudrover

to view
git remote -v

git push heroku master

to tell heroku what to do


touch Procfile

update
git init
git add .
git commit -m "Added battery"
git push heroku master

You might also like