Hi there, I'm creating a nodejs app and I need to setup some non-interactive environment variables, so I can automate nodejs restarting in case of a failure.
Is there a right way to do it in Opalstack? Adding it into the ~/.bashrc ?
Thanks in advance
I think I answered my own question: the right way to do it is adding the env vars into the start script.
Setting environment variables in your start script is a reasonable approach.
You could also use dotenv or something similar if that's suitable for your application.