Skip to content

Instantly share code, notes, and snippets.

@jdecode
Last active September 21, 2022 16:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jdecode/c530da27b05d47b462526bbe3cbca7dd to your computer and use it in GitHub Desktop.
Save jdecode/c530da27b05d47b462526bbe3cbca7dd to your computer and use it in GitHub Desktop.
Environment Variables in GCP / Cloud Run / Laravel App

Env vars

  • APP_NAME Techathon 2.0 | 2022
  • APP_ENV production
  • DB_CONNECTION pgsql
  • APP_DEBUG false
  • APP_KEY base64:BASE_64_ENCODED_APP_KEY
  • DB_DATABASE postgres
  • DB_USERNAME postgres
  • DB_PASSWORD random-password-goes-here
  • DB_PORT 5432
  • DB_HOST /cloudsql/hackathonify:asia-southeast1:hackathonify-01

Host name format is of Cloud SQL database.

  • Prefix : /cloudsql
  • Project ID : hackathonify
  • DB region : asia-southeast1
  • Instance ID : hackathonify-01

Hostname : "Prefix/Project ID:DB region:Instance ID"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment