Hi,

The install and postinstall steps do not happen in the same environment as
the serving environment, they are done in Google Container Builder.
Once the app is built, it is moved to the serving environment.
I would need to double check, but I do not think env variables defined in
app.yaml are injected in the build steps.

Could you tell us more about your use case?

Thanks
Steren
Product Manager
Google Cloud Platform

On Sun, May 6, 2018 at 9:00 AM Adnan Ibrišimbegović <[email protected]>
wrote:

> Using App Engine Flexible, nodeJS v8+.
> I have a npm postinstall script that requires some env variables from
> app.yaml, but these vars are seemingly not available at the time
> "postinstall" script is running.
>
> Can anyone point me to a documentation that explains what happens during
> deploy to App Engine,
> specifically, which services and variables become available in which order
> during deployment?
>
> Can someone explain at what point do env vars from app.yaml become
> available under "process.env"?
>
> Thank you.
>
> --
> 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 [email protected].
> To post to this group, send email to [email protected].
> 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/ad70ec56-293a-4956-a000-26e8bc4c8eeb%40googlegroups.com
> <https://groups.google.com/d/msgid/google-appengine/ad70ec56-293a-4956-a000-26e8bc4c8eeb%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
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/CANHKq5HZNcTJSQMa9fVJhK18y-baRSg0ic4SNyw%3DW0X1tBgNtQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to