- Fetch new repo updates:
git fetch origin master
- Check repo history:
git log --oneline --graph --all
- Check Pyenv's Python version:
which python && python -V
- Start Python virtual env:
. .venv/bin/activate
- Open webapp dir:
cd webapp
- Run app in debug mode:
flask --debug --app main run
- Check on
localhost:5000
(default Flask port)
- Choose GCP project in Cloud SDK and/or IDE:
gcloud config project set indavelopers
- Check serving version:
gcloud app versions list
- Deploy to GAE:
gcloud app deploy --version VERSION_ID --no-promote
- Check on live version URL
- Migrate traffic to new version:
gcloud app services set-traffic --splits="VERSION_ID"=1
- Or do a live deploy to the newest version:
gcloud app deploy --version VERSION_ID
- Or do a live deploy to the newest version:
- Commit changes
- Push changes to remote repo
- Python 3.12
- Runtime managed by Pyenv
- Virtual env: Pyenv's virtualenv
- Flask 3
- Google App Engine
- Runtime: Python 3.12