-
I am running MySQL and adonis (v 4.1.0) in docker. I want the user to be able to supply their mail trap credentials in my .env file after running docker-compose up -d and want the changes to b reflected without having to restart my container. Please suggest how I can do this. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Yea.. You can't really change them after NodeJS app starts up. But you can change them in app with |
Beta Was this translation helpful? Give feedback.
Yea.. You can't really change them after NodeJS app starts up. But you can change them in app with
process.env.MAIL_USERNAME = 'hurrdurr'
. It might have some really odd side efects tho. It's usually not too good idea to change environment variables on the runtime