Incomplete response received from application

▼魔方 西西 提交于 2019-12-02 12:31:56

don't forget make a secret key in your production server

$ rake secret

and define it in your "config/secrets.yml"

production:
  secret_key_base: "your key result from rake secret command "

Greeting

Your Production Rails_env is not setup properly.

To solve this issue open file sudo nano /etc/nginx/sites-available/default and change the rails_evn to development.

if you want to solve this issue in Production environment. Edit file /rails_application/config/secrets/yml and set the production secret_key_base what you can generate running rake secret in your terminal.

And restart your nginx server. using command sudo service nginx restart

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!