heroku部署错误
我的 Rails 应用程序在我的本地计算机上运行良好,但在 Heroku 上它显示此错误:
2011-03-27T13:21:45-07:00 app[web.1]: /app/.bundle/gems/ruby/1.8/gems/activesupp
ort-3.0.4/lib/active_support/dependencies.rb:239:in `require': /app/app/controll
ers/home_controller.rb:14: syntax error, unexpected kEND, expecting $end (Syntax
Error)
What does kEND and $end Means?
我该如何解决这个问题?
谢谢,
Oded
编辑:
控制器中的第 14 行是 - end
。
我的代码中没有缺少或有太多 - end
。
My rails application works fine on my local machine, but on heroku it displays this error:
2011-03-27T13:21:45-07:00 app[web.1]: /app/.bundle/gems/ruby/1.8/gems/activesupp
ort-3.0.4/lib/active_support/dependencies.rb:239:in `require': /app/app/controll
ers/home_controller.rb:14: syntax error, unexpected kEND, expecting $end (Syntax
Error)
What does kEND and $end means?
How can I solve this?
Thanks,
Oded
Edit:
In line 14 in the controller is - end
.
I'm not missing or have too many - end
in my code.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
解决了。问题是控制器中有一些希伯来语文本。
奇怪的是控制器是utf8格式的。
我猜 heroku 可以读希伯来语。
Solved it. The problem was that there was some Hebrew text in the controller.
The weird thing is that the controller was in utf8.
I guess that heroku can read hebrew.
检查第 14 行的家庭控制器 - 您可能在某处缺少
}
、)
或end
。如果无法修复错误,请粘贴一些代码。
Check the home controller on line 14 - you're probably missing a
}
,)
, or anend
somewhere.If you can't fix the error, paste some code.