I currently use supervisor to run my node.js app when developing locally. This has been great, but I currently store all my configs in my .bash_profile, I want to move them to a .env file.
Is there a way to get the environment loading features of foreman with the file watching features of supervisor?
One option is to add it to my Procfile like this, but I suspect that will mess up Heroku.
`local: supervisor web.js`
This is the solution I put together and it works great.
Install Rerun and Rb-fsevent.
Install Foreman if you have not already.
Put your environment variables in
.envin the root of your project.Don’t forget to add
.envto your.gitignore, don’t want that sensitive info in your codeHere is what my
Procfilelooks likeNow just start like this
Extra Credit, create an alias