Heroku本地的byebug /调试器坏了

时间:2015-10-21 17:56:44

标签: ruby-on-rails heroku foreman heroku-toolbelt laravel-dotenv

我一直在使用Heroku Toolbelt" Heroku local"命令以便在本地加载环境变量。然而,这打破了。使用Heroku本地命令时,我无法进入(byebug)提示符。结果,我被迫退出Heroku本地并使用" rails s运行我的服务器。"然而,这是一个问题,因为我的环境变量不再加载。

Heroku本地文档:https://devcenter.heroku.com/articles/heroku-local Byebug文档:https://github.com/deivid-rodriguez/byebug 加载Env变量概述:http://www.gotealeaf.com/blog/managing-environment-configuration-variables-in-rails

1 个答案:

答案 0 :(得分:1)

安装dotenv-rails gem,它可以完美地加载环境变量而不会出现上述问题。只需停止使用Heroku本地服务器并使用" rails s"为了加载环境变量。

您将不再使用此方法加载Procfile作为运行服务器的一部分。