新手问题 rails 4.1.1 下启动 rails s secret_key_base 设置问题

a167651202 · May 29, 2014 · Last by a167651202 replied at May 29, 2014 · 3382 hits

今天使用 RAILS_ENV=production rails s production 模式启动 rails s 在浏览器中提示 我尝试执行

`RAILS_ENV=production rake secret

然后把所获得的 secret_key_base 添加到 config/secrets.yml 下。依然报错,请问大家如何解决? ruby 2.0.0 rails 4.1.1

贴下 config/secrets.yml 这个。

#1 楼 @zgm development 模式没有问题

production 环境没加啊。

#3 楼 @zgm 我给去掉了。。。

#3 楼 @zgm 谢谢,哈,刚解决了

You need to Sign in before reply, if you don't have an account, please Sign up first.