Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果RACK_ENV设置为生产,那么它工作正常。如果我们将其设置为 staging by
RACK_ENV
heroku config:set RACK_ENV=myapp
然后我们看到缓存错误Session::DalliStore#get: Unable to unmarshal value: undefined class/module PiFinancialPlannersFact
Session::DalliStore#get: Unable to unmarshal value: undefined class/module PiFinancialPlannersFact
我想设置RACK_ENV=myapp,以便可以使用 config.yml 的暂存部分,任何人都可以告诉我。
RACK_ENV=myapp
将 .env 与 Foreman 一起使用怎么样?
另请参阅https://devcenter.heroku.com/articles/config-vars