Rails: Production Rails console won't start

后端 未结 4 674
挽巷
挽巷 2021-02-04 16:34

Everything works fine on my OS X development laptop.

Deploy the app to production and it runs and displays data as expected.

However, when I try to run the Rails

4条回答
  •  礼貌的吻别
    2021-02-04 16:49

    You can also solve this by appending the --environment=production argument to the rails c or rails console command

    rails c --environment=production
    

    That's all.

    I hope this helps

提交回复
热议问题