I am trying to add environment variables in my App Engine Standard NodeJs app, and I have found multiple ways, out of which one is to add them in app.yaml
using separate file(which we will not commit to repo), and second is to directly push .env
file while deploying to App engine (Not ignoring it).
I was just thinking what are the cons of the second step which is to directly push my .env
file(which I was also doing in App Engine Nodejs Flexible app)? Are there any major issues if I will do that.
Thanks.
No, there is no issue with it. You can consider it as your own server. No one will have access to your environments variables. So, it's safe.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.