We are using GAE with Ruby flexible environment, and we're trying to deploy a rails app with staging configurations (i.e. RAILS_ENV=staging).
According to https://cloud.google.com/appengine/docs/flexible/ruby/configuring-your-app-with-app-yaml we should be able to set the value of RAILS_ENV configuring an app.yaml with:
env_variables: RAILS_ENV: 'staging' However, when we run:
gcloud app deploy A (temporary) Dockerfile is generated with
# Temporary. Will be moved to base image later. ENV RACK_ENV=production \ RAILS_ENV=production \ RAILS_SERVE_STATIC_FILES=true Which results in a deployment in the PRODUCTION environment (default value for RAILS_ENV).
Is this a bug or am I missing something?
 google-cloud-platform
google-cloud-platform