2013-03-30 155 views
0

我有一個網絡應用程序我目前正在處理,我剛剛遇到一個問題,系統完成後執行git push heroku master。在開發中,該應用程序工作正常。我已經將數據庫更改爲PostgreSQL,所以沒有問題推動。但推後,當我嘗試在網上看到的應用程序,它告訴我有一個錯誤,當我通過命令Heroku logs --tail搜索Heroku的日誌,這裏是我發現的錯誤:我將應用程序部署到heroku後的問題

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的一些東西,但我在開發中沒有類似的東西。

回答

0

你好像不關你的javascript_include_tag,嘗試添加%>

<%= javascript_include_tag %> 

你可以嘗試使用Chrome檢查的控制檯選項卡本地驗證這一點。看看你是否有任何JavaScript錯誤。

相關問題