Reputation: 334
I've been using the Heroku Toolbelt's "Heroku local" command in order to load environmental variables locally. However, this breaks byebug. I am not able to get to a (byebug) prompt when using the Heroku local command. As a result, I'm forced to quit Heroku local and run my server with "rails s." This is a problem however, as my environmental variables are no longer loading.
Heroku Local Documentation: https://devcenter.heroku.com/articles/heroku-local Byebug Documentation: https://github.com/deivid-rodriguez/byebug Overview of loading Env Variables: http://www.gotealeaf.com/blog/managing-environment-configuration-variables-in-rails
Upvotes: 3
Views: 879
Reputation: 334
Install the dotenv-rails gem which loads environmental variables perfectly without the issues above. Simply stop using Heroku local and run your server with "rails s" in order to load environmental variables.
You will no longer load your Procfile as a part of running your server with this approach.
Upvotes: 1