How to define and use environment variable on GCP?

Hi @d_w

This was a year ago and I moved my instance to Heroku, so I don’t know if that’s still up-to-date. You can see that the node runtime is v12 for instance. Anyway, this is what my app.yaml looked like. I hope that can help:

runtime: nodejs12

instance_class: F2

env_variables:
  HOST: '0.0.0.0'
  NODE_ENV: 'production'
  ENV_PATH: './.env.prod'
  DATABASE_NAME: 'strapi'
  DATABASE_USERNAME: 'your_db_username_here'
  DATABASE_PASSWORD: 'your_db_password_here'
  INSTANCE_CONNECTION_NAME: 'your_instance_name'
  DB_SOCKET_PATH: '/cloudsql/your_instance_name'

beta_settings:
  cloud_sql_instances: 'cloud_sql_instance_name'