When running a play application from IntelliJ, VM parameters and environment variables greyed out in run configuration when 'Use sbt shell' checked. How can I pass an env variable to the sbt task, other then unchecking the 'run as sbt task' checkbox or setting the env variable globally on the machine?
Been there. Use .env file and add plugin: https://github.com/mefellows/sbt-dotenv to your project. Working for me great.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With