Dotenv as a shard for Crystal
Add this to your application's shard.yml
:
dependencies:
dotenv:
github: feifanzhou/crystal_dotenv
branch: master
Run shards update
to install
require "dotenv"
...
Specify environment variables in a .env
file.
Credits to ericboehs for the original gist