Add the following code to your project's shard.yml under:
to use in production
- OR -
development_dependencies to use in development
Add this to your application's
dependencies: dotenv: github: gdotdesign/cr-dotenv
# Comments can be included for context # MY_VARIABLE=my-value # Empty Lines are also ignored # ANOTHER_VAR=awesome-value
To load a file named
require "dotenv" # The default file is ".env" Dotenv.load ".env-file"
See the API docs for more examples.