我有一个我目前正在开发的网络应用程序,我刚刚在系统完成执行 git push heroku master 后遇到了一个问题。在开发中,该应用程序运行良好。我已经将数据库更改为 PostgreSQL,所以推送没有问题。但是在推送之后,当我尝试在线查看应用程序时,它告诉我有一个错误,当我通过命令搜索 heroku 日志时Heroku logs --tail
,这是我发现的错误:
Completed 500 Internal Server Error in 866ms
at parse_error (/tmp/execjs20130330-2-1s2w7pb.js:1824:17)
at new JS_Parse_Error (/tmp/execjs20130330-2-1s2w7pb.js:1720:22)
ActionView::Template::Error (Unexpected character '#' (line: 11021, col: 1, pos: 312418)
Error
at js_error (/tmp/execjs20130330-2-1s2w7pb.js:1728:15)
at Object.semicolon [as 1] (/tmp/execjs20130330-2-1s2w7pb.js:2221:38)
at simple_statement (/tmp/execjs20130330-2-1s2w7pb.js:2362:35)
at /tmp/execjs20130330-2-1s2w7pb.js:2265:32
at Object.next_token [as input] (/tmp/execjs20130330-2-1s2w7pb.js:2070:17)
at next (/tmp/execjs20130330-2-1s2w7pb.js:2175:37)
at /tmp/execjs20130330-2-1s2w7pb.js:2753:32
(in /app/app/assets/javascripts/application.js)):
9: <body>
6: <%= javascript_include_tag
4: <title>Pinsvault</title>
我看不到去哪里修复,这似乎与 JavaScript 有关,但我在开发中没有类似的东西。