Tuesday, 1 January 2019

How to Deploy Node App with Special Environments and .env Variables

Hey everyone! Happy New Year!I'm quite new to deployment in Node. I'm working on an application that has a database for a side project and my .env file seems to have a lot of variables.Everything works well locally, but I'd like to deploy my app to Heroku or Elastic Beanstalk and I'm unaware of the best way to handle .env variables for different development environments.I also don't think it would be safe to push these .env files to github so I have them if preferred by git.It's the first time I'm building and deploying anything with a lot of environment variables and I'd like to have special environments like test, development, and production environments. I'd appreciate any ideas on how to best deal with security of the .env's and with different environment setups.

Submitted January 02, 2019 at 02:55AM by jbakebwa

No comments:

Post a Comment