2013-06-25 79 views
0

我是新來的Rails,Heroku非常新。將我的本地應用程序與數據庫部署到Heroku

我剛剛上傳我的應用程序到Heroku。

但是當我打開網站時,我只看到這個錯誤信息; 「我們很抱歉,但是出現了一些問題。」

所以我的heroku logs命令,這裏是日誌。
它有事情做與CSS文件,但我不能明白...

2013-06-25T19:19:17.196893+00:00 app[web.1]: [2013-06-25 19:19:17] INFO ruby 2.0.0 (2013-05-14) [x86_64-linux] 
2013-06-25T19:19:17.196893+00:00 app[web.1]: [2013-06-25 19:19:17] INFO WEBrick 1.3.1 
2013-06-25T19:19:17.197592+00:00 app[web.1]: [2013-06-25 19:19:17] INFO WEBrick::HTTPServer#start: pid=2 port=45226 
2013-06-25T19:19:17.771088+00:00 heroku[web.1]: State changed from starting to up 
2013-06-25T19:20:03.828188+00:00 app[web.1]: => Rails 3.2.13 application starting in production on http://0.0.0.0:45226 
2013-06-25T19:20:03.828188+00:00 app[web.1]: => Ctrl-C to shutdown server 
2013-06-25T19:20:03.828188+00:00 app[web.1]: => Booting WEBrick 
2013-06-25T19:20:03.828188+00:00 app[web.1]: => Call with -d to detach 
2013-06-25T19:20:03.828188+00:00 app[web.1]: Started GET "/" for 68.45.84.42 at 2013-06-25 19:20:03 +0000 
2013-06-25T19:20:08.600921+00:00 app[web.1]: 
2013-06-25T19:20:08.600921+00:00 app[web.1]: ActionView::Template::Error (Invalid CSS after "...abel { font-s ": expected "{", was "}" 
2013-06-25T19:20:08.600921+00:00 app[web.1]:  9: <meta name="description" content="fatihnetwork.com | fatih universitesi ogrencileri bulusma platformu" /> 
2013-06-25T19:20:08.600921+00:00 app[web.1]:  15: </head> 
2013-06-25T19:20:08.600921+00:00 app[web.1]: (in /app/app/assets/stylesheets/application.css)): 
2013-06-25T19:20:08.601453+00:00 app[web.1]: Compiled omniauth_callbacks.css (2ms) (pid 2) 
2013-06-25T19:20:08.600921+00:00 app[web.1]:  10: <meta name="keywords" content="fatih universitesi, fatih, fatih ¸niversitesi ¸niversite, foursquare t¸rkiye, foursquare, four square, facebook, facebook t¸rkiye" /> 
2013-06-25T19:20:08.600921+00:00 app[web.1]:  13: <%= javascript_include_tag "application" %> 
2013-06-25T19:20:08.601131+00:00 app[web.1]: 
2013-06-25T19:20:08.601453+00:00 app[web.1]: Processing by HomeController#index as HTML 
2013-06-25T19:20:08.601453+00:00 app[web.1]: Rendered home/index.html.erb within layouts/application (4.9ms) 
2013-06-25T19:20:08.601453+00:00 app[web.1]: Compiled home.css (119ms) (pid 2) 
2013-06-25T19:20:08.600921+00:00 app[web.1]:  12: <%= stylesheet_link_tag "application", :media => "all" %> 
2013-06-25T19:20:08.601131+00:00 app[web.1]: app/views/layouts/application.html.erb:12:in `_app_views_layouts_application_html_erb__4210444077502940588_70087393743220' 
2013-06-25T19:20:08.601453+00:00 app[web.1]: Compiled application.css (4111ms) (pid 2) 
2013-06-25T19:20:08.600921+00:00 app[web.1]:  11: <meta name="Copyright" content="" /> 
2013-06-25T19:20:08.600921+00:00 app[web.1]:  14: <%= csrf_meta_tags %> 
2013-06-25T19:20:08.601131+00:00 app[web.1]: 
2013-06-25T19:20:08.601453+00:00 app[web.1]: Completed 500 Internal Server Error in 4241ms 
2013-06-25T19:20:08.601453+00:00 app[web.1]: Compiled active_admin.css (3753ms) (pid 2) 
+0

在推送到Heroku之前,您是否已經成功地在本地進行了測試? –

+0

是的,它在本地服務器上正常工作。 – Efe

回答

1

你說得對,這似乎是一個CSS語法錯誤。

ActionView::Template::Error (Invalid CSS after "...abel { font-s ": expected "{", was "}" 

意味着CSS編譯器期待一個左括號「{」而不是一個左括號「}」,並不知道這意味着什麼。嘗試按Ctrl + F或命令+ f在代碼中查找「... abel {font-s」,並查看是否存在語法錯誤。

希望這會有所幫助! :)

+0

我也這麼認爲,但我無法在application.css中的任何位置找到錯誤。 – Efe

+0

要清楚,我每次更新應用程序時都要運行'git push heroku master'命令嗎? – Efe

+0

只要推一下就行不通。您需要將更改添加到索引,然後提交這些更改並最終推送它們。 – bluehallu

相關問題