Skip to content

Latest commit

 

History

History
35 lines (27 loc) · 1.08 KB

development.md

File metadata and controls

35 lines (27 loc) · 1.08 KB

Development processes

Dev process

Dev

  1. Fetch new repo updates: git fetch origin master
  2. Check repo history: git log --oneline --graph --all
  3. Check Pyenv's Python version: which python && python -V
  4. Start Python virtual env: . .venv/bin/activate
  5. Open webapp dir: cd webapp
  6. Run app in debug mode: flask --debug --app main run
  7. Check on localhost:5000 (default Flask port)

Deploy

  1. Choose GCP project in Cloud SDK and/or IDE: gcloud config project set indavelopers
  2. Check serving version: gcloud app versions list
  3. Deploy to GAE: gcloud app deploy --version VERSION_ID --no-promote
  4. Check on live version URL
  5. Migrate traffic to new version: gcloud app services set-traffic --splits="VERSION_ID"=1
    1. Or do a live deploy to the newest version: gcloud app deploy --version VERSION_ID
  6. Commit changes
  7. Push changes to remote repo

Architecture

Dependencies

  • Python 3.12
    • Runtime managed by Pyenv
    • Virtual env: Pyenv's virtualenv
  • Flask 3
  • Google App Engine
    • Runtime: Python 3.12