0

我是 Rails 的新手,对 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)
4

1 回答 1

1

你是对的,这似乎是一个 CSS 语法错误。

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

意味着 CSS 编译器期待一个左括号“{”但得到一个右括号“}”并且不知道这意味着什么。尝试使用 ctrl+f 或 command+f 在您的代码中查找“...abel { font-s ”,看看是否存在语法错误。

希望这可以帮助!:)

于 2013-06-25T19:44:17.377 回答