I have an issue with a node js app engine project, where the main 
script/server.js receives the environment variables just fine. but the 
"postinstall" doesn't.

{
  "name": "citation-generator",
  "version": "4.1.0",
  "main": "server.js",
  "scripts": {
    "start": "node server.js",
    "postinstall": "gulp --production"
  },
...
}


Gulp doesn't receive the custom env variables i set on app.yaml, in fact i 
tested it by logging process.env from gulp.js and it's just the generic 
variables on a linux environment.

my app.yaml:




runtime: nodejs
env: flex


manual_scaling:
  instances: 1
resources:
  cpu: 1
  memory_gb: 0.5
  disk_size_gb: 10


env_variables:
  FOO: "BAR"


handlers:
- url: /.*
  script: auto
  secure: always
  redirect_http_response_code: 301


-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/46e733ba-c2bf-4e83-8b19-760bb4503104%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to