简体   繁体   English

我不明白这个SyntaxError。 为什么/ app / app / ...? 它发生在Heroku上,适用于rails服务器

[英]I don't understand this SyntaxError. Why /app/app/…? It happens on Heroku, works on rails server

My app works fine on rails server but when I deploy it on Heroku I get this SyntaxError . 我的应用程序在rails server上正常工作,但是当我在Heroku上部署它时,我得到了这个SyntaxError The strangest thing is that I don't have any /app/app directory. 最奇怪的是我没有任何/ app / app目录。 Why is it twice? 为什么两次?

You can check all the code here . 您可以在此处检查所有代码。

The /app root is something that heroku does (just interpret the first /app as the absolute path to your app). /app root是heroku所做的事情(只需将第一个/app解释为/app的绝对路径)。 That's not the issue here, instead it's that you added a whitespace where no whitespace is allowed: 这不是问题,而是你添加了一个不允许空格的空格:

<%= form_tag (some, expression, here) do   # breaks
<%= form_tag(some, expression, here) do    # compiles

This shouldn't have worked on your machine in the first place (maybe previous Ruby versions accepted that Syntax, but Ruby 1.9 won't for sure). 这不应该在您的机器上工作(可能以前的Ruby版本接受了Syntax,但Ruby 1.9不能确定)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 手动运行服务器时,为什么不能连接到Heroku Rails应用程序? - Why can't I connect to my Heroku rails app when I run the server manually? 我的应用程序在Heroku上崩溃,我听不懂Heroku日志 - My app crashes on Heroku, and I can't understand Heroku logs 尝试启动Rails应用-出现很多我不明白的错误 - Trying to start Rails app - get a lot of errors I don't understand Rails App中的Heroku / Zurb Foundation Sass SyntaxError - Heroku/Zurb Foundation Sass SyntaxError in Rails App Rails 4-应用程序可在本地运行,但不能在Heroku上运行 - Rails 4 - App works locally, but not on Heroku 为什么我不理解Rails从教程中验证在线状态? - Why don't I understand the Rails validates presence from tutorial? Heroku:Rails应用程序可在本地运行,但在Heroku上崩溃 - Heroku: Rails app works locally but crashes on heroku Rails应用程序可在本地服务器上运行,但最重要的页面在Heroku上无法运行 - Rails app works on local server but the most important page won't work on Heroku 在 Heroku 路由上带有 React 应用程序的 Rails 在刷新时不起作用 - Rails with React app on Heroku routes don't work on refresh 我的Heroku应用崩溃了(错误H10),我不知道为什么 - My Heroku app is crashing (error H10) and I don't know why
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM