Skip to content

Latest commit

 

History

History
14 lines (13 loc) · 988 Bytes

migration.md

File metadata and controls

14 lines (13 loc) · 988 Bytes

Migration steps

  1. Cloud Code: New Application: New Cloud Run Python Flask application
  2. Converge file systems
  3. Define .dockerignore, .gitignore, and .gcloudignore files.
  4. Remove setting PORT environment variables. Update ports to 8080.
  5. Update Flask app invocation to remove debug=true.
  6. Add launch config to run python file locally, add environment variables, test.
  7. Update scripts to build image and run locally and set environment variables in run-image-locally.sh.
  8. Move run-image-locally.sh to .vscode to it doesn't get committed.
  9. Rename scripts to be consistent.
  10. Do not create a Zsh launch config to start the script to build and run locally. Extension does not permit Ctrl-C to terminate the app. Instead, run from a terminal.
  11. Create Clode Code: Debug on Cloud Run Emulator: Debug (or Run) image locally. Add environment variables in advanced setting or in launch.json.
  12. Cloud Code: Deploy to Cloud Run: Depoy changes