Skip to content

Buzonxxxx/portfolio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Flask Server Development and Deployment

Flask Server

  1. Create virtual env python3 -m venv venv
  2. Activate venv . venv/bin/activate
  3. Install Flask pip3 install Flask
  4. Launch the web server in the localhost flask --app server run --debug

Deployment

  1. Export packages info pip3 freeze > requirements.txt
  2. Register and go to Dashboard on https://www.pythonanywhere.com/
  3. Create a web project
  4. Go to bash and git clone your Flask project
  5. Setup virtual env mkvirtualenv --python=/usr/bin/python3.9 my-virtualenv
  6. Install Flask pip install flask
  7. Go to the project directory and install packages pip install -r requirements.txt
  • pip install flask
  1. Go to the web tab and set the virtualenv path
  2. Reload the path and open it

Reference

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published