Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 474 Bytes

EC2-Deployment.md

File metadata and controls

23 lines (16 loc) · 474 Bytes

Some useful commands

  - cd etc/nginx/sites-enabled
  - sudo nano fastapi_config
  - **Update proxy address**
  - sudo nginx -t
  - sudo service nginx restart
  - tmux new -s sess_name
  - python -m uvicorn fastapi_app:app --reload
  -
  - tmux atach -t sess_name

FasiAPI + Uvicorn is fastest, and better than Flask:

Asynchonous requests: enables code to run separately from main application

  • async, handler
  • await, before calling