从申请收到不完整的回复 [英] Incomplete response received from application

查看:51
本文介绍了从申请收到不完整的回复的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在测试环境数据库中使用 phusion 乘客部署我的 rails 应用程序.我在我的 database.yml 中配置了以下几行

I want to deploy my rails app using phusion passenger in test environment DB. I have configured the following lines in my database.yml

test:
  adapter: mysql2
  database: testdb
  username: testuser
  password: pass
  host: x.x.x.x

当我启动乘客passenger start -a x.x.x.x -p 3000 -d -e test"时,它开始工作.但是当我在浏览器中打开应用程序 URL 时,它应该出现类似从应用程序收到的不完整响应"的错误.不知道会有什么问题?我在 SO 中搜索得很好.只有他们提供了生产模式的解决方案.但我想在测试模式下运行应用程序.我能够在开发模式下运行.当我尝试在测试模式下运行时,它只显示错误.请帮助摆脱这个问题.提前致谢

when I start the passenger "passenger start -a x.x.x.x -p 3000 -d -e test" it started working. but when I open the application URL in browser it should me an error like "Incomplete response received from application". I don't know what will be the problem? I have searched well in SO. only they have provide solution for production mode. but I want to run the application in test mode. I am able to run in development mode. when I try to run in test mode only it showed the error. please help to get rid from this problem. Thanks in advance

推荐答案

别忘了在你的生产服务器上制作一个秘钥

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

$ rake secret

并在您的config/secrets.yml"中定义它

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

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

问候

这篇关于从申请收到不完整的回复的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆