Skip to content

Latest commit

 

History

History
26 lines (22 loc) · 776 Bytes

2021_08_22.md

File metadata and controls

26 lines (22 loc) · 776 Bytes
  • DONE Using [[gunicorn]] bash commands to run a [[Flask]] [[Python]] backend server: doing:: 1629681801147 todo:: 1629681811390 Activate your pyenv before running the follow: Do this with:

    # activate with 
    source env/bin/activate
    # end environment with
    deactivate
    # After navigating inside the src backend folder that contains your app.py file
    # Install with pip if you don't have gunicorn yet
    pip install gunicorn
    
    # Run gunicorn on port 4000 with
    gunicorn -b :5000 app:app
    
    # if app.py is actually called api.py then use the following command instead
    gunicorn -b :5000 api:app
  • TODO [[nginx]] How to get nginx running on MacOS: Nginx config for macOS