use dotenv for development env

When creating the application I get a problem. Shopify not authorize my app, because client_id was not send in params. I have investigated and discovered dotenv not set ENV variables.
https://remino.net/rails-dotenv-env-vars/
> This will make sure to only load the gem if its installed, so it will load it on development, but will not raise an error on production. 
should I placed this code to somewhere else?