Skip to content
This repository was archived by the owner on Mar 12, 2023. It is now read-only.

Latest commit

 

History

History
48 lines (32 loc) · 1.19 KB

File metadata and controls

48 lines (32 loc) · 1.19 KB

Flask Backend Deployment

Run existing Backend Server

Setup Server

python3 -m venv python_modules          # create python environment
 ./python_modules/bin/activate.bat    # activate python environment for linux do not use the .bat one
python -m pip install -r package-lock.txt   # install python modules from package.txt, YOU SHOULD SEE ALL PACKAGE BEING DOWNLOAD INTO python_modules
deactivate                              # deactivate python environment

Linux can just use PPM

ppm install

Run Server

   ./python_modules/bin/activate        # activate python environment
python main.py                          # run back-end server
deactivate                              # deactivate python environment

OR

ppm start

Install new-package

./python_modules/bin/activate    # activate python environment
pip install new-package				# install new-package
python -m pip freeze > package-lock.txt		# save new-package to package.txt
deactivate                              # deactivate python environment

References