Ruby On Rails, Bootstrap 및 Spree를 사용하여 앱을 만들고 있습니다. 내 로컬 호스트에서 잘 작동하는 모든 것을 가지고 있지만 Heroku를 누르면 "죄송하지만 뭔가 잘못되었습니다."라는 오류 메시지가 나타납니다. 나는 "/ store"를 잘로드하는 주소에 추가 할 때 Heroku의 상점 영역에 액세스 할 수 있지만 홈 페이지는 오류 메시지와 함께로드됩니다. 내가 Heroku가 로그를 실행하면 나는이를 참조하십시오Spree를 사용하는 부트 스트랩은 로컬에서는 작동하지만 Heroku에서는 작동하지 않습니다.
Processing by PagesController#home as HTML
2013-04-19T16:03:19.156092+00:00 app[web.1]: Rendered pages/home.html.erb within layouts/application (100.2ms)
2013-04-19T16:03:19.156092+00:00 app[web.1]: Compiled jquery.alerts/jquery.alerts.css (145ms) (pid 2)
2013-04-19T16:03:19.156092+00:00 app[web.1]: Compiled jquery.alerts/jquery.alerts.spree.css (0ms) (pid 2)
2013-04-19T16:03:19.156092+00:00 app[web.1]: Compiled responsive-tables.css (0ms) (pid 2)
2013-04-19T16:03:19.156092+00:00 app[web.1]: Compiled normalize.css (0ms) (pid 2)
2013-04-19T16:03:19.156092+00:00 app[web.1]: Compiled skeleton.css (0ms) (pid 2)
2013-04-19T16:03:19.156092+00:00 app[web.1]: Compiled jquery-ui.datepicker.css (259ms) (pid 2)
2013-04-19T16:03:19.156092+00:00 app[web.1]: Compiled jquery.powertip.css (0ms) (pid 2)
2013-04-19T16:03:19.156092+00:00 app[web.1]: Compiled select2.css (2728ms) (pid 2)
2013-04-19T16:03:19.156538+00:00 app[web.1]: Compiled admin/spree_admin.css (1552ms) (pid 2)
2013-04-19T16:03:19.156538+00:00 app[web.1]: Compiled admin/spree_core.css (4771ms) (pid 2)
2013-04-19T16:03:19.156538+00:00 app[web.1]: Compiled admin/spree_promo.css (1ms) (pid 2)
2013-04-19T16:03:19.156538+00:00 app[web.1]: Compiled admin/all.css (4785ms) (pid 2)
2013-04-19T16:03:19.156538+00:00 app[web.1]: Compiled pages.css (0ms) (pid 2)
2013-04-19T16:03:19.156538+00:00 app[web.1]: Compiled store/screen.css (600ms) (pid 2)
2013-04-19T16:03:19.156538+00:00 app[web.1]: Compiled store/spree_core.css (609ms) (pid 2)
2013-04-19T16:03:19.156538+00:00 app[web.1]: Compiled store/spree_promo.css (11ms) (pid 2)
2013-04-19T16:03:19.156538+00:00 app[web.1]: Compiled store/all.css (631ms) (pid 2)
2013-04-19T16:03:19.156538+00:00 app[web.1]: Completed 500 Internal Server Error in 5726ms
2013-04-19T16:03:19.149366+00:00 app[web.1]:
2013-04-19T16:03:19.149366+00:00 app[web.1]: ActionView::Template::Error (File to import not found or unreadable: bootstrap.
2013-04-19T16:03:19.149366+00:00 app[web.1]: Load path: /app
2013-04-19T16:03:19.149366+00:00 app[web.1]: 2: <html>
2013-04-19T16:03:19.149366+00:00 app[web.1]: 7: <%= csrf_meta_tags %>
2013-04-19T16:03:19.149842+00:00 app[web.1]: 8: </head>
2013-04-19T16:03:19.149366+00:00 app[web.1]: 4: <title>Sample App</title>
2013-04-19T16:03:19.149842+00:00 app[web.1]: app/assets/stylesheets/styles.css.scss:5
2013-04-19T16:03:19.149842+00:00 app[web.1]: app/views/layouts/application.html.erb:5:in `_2bef37236eb3fbbf2665a458326374e1'
2013-04-19T16:03:19.149366+00:00 app[web.1]: 5: <%= stylesheet_link_tag "application", :media => "all" %>
2013-04-19T16:03:19.149366+00:00 app[web.1]: 6: <%= javascript_include_tag "application" %>
2013-04-19T16:03:19.149366+00:00 app[web.1]: (in /app/app/assets/stylesheets/styles.css.scss)):
2013-04-19T16:03:19.149366+00:00 app[web.1]: 3: <head>
2013-04-19T16:03:19.157636+00:00 heroku[router]: at=info method=GET path=/ host=guarded-headland-2911.herokuapp.com fwd="98.154.183.5" dyno=web.1 connect=6ms service=6092ms status=500 bytes=643
2013-04-19T16:03:27.655609+00:00 heroku[web.1]: Stopping remaining processes with SIGKILL
2013-04-19T16:03:27.655609+00:00 heroku[web.1]: Error R12 (Exit timeout) -> At least one process failed to exit within 10 seconds of SIGTERM
2013-04-19T16:03:29.492003+00:00 heroku[web.1]: Process exited with status 137
2013-04-19T16:08:01.494500+00:00 app[web.1]: Started GET "/" for 98.154.183.5 at 2013-04-19 16:08:01 +0000
2013-04-19T16:08:01.526972+00:00 app[web.1]:
2013-04-19T16:08:01.526972+00:00 app[web.1]: ActionView::Template::Error (File to import not found or unreadable: bootstrap.
2013-04-19T16:08:01.526972+00:00 app[web.1]: Load path: /app
2013-04-19T16:08:01.526972+00:00 app[web.1]: (in /app/app/assets/stylesheets/styles.css.scss)):
2013-04-19T16:08:01.526972+00:00 app[web.1]: 2: <html>
2013-04-19T16:08:01.526972+00:00 app[web.1]: 5: <%= stylesheet_link_tag "application", :media => "all" %>
2013-04-19T16:08:01.526972+00:00 app[web.1]: 7: <%= csrf_meta_tags %>
2013-04-19T16:08:01.526972+00:00 app[web.1]: 6: <%= javascript_include_tag "application" %>
2013-04-19T16:08:01.527299+00:00 app[web.1]: Completed 500 Internal Server Error in 20ms
2013-04-19T16:08:01.526972+00:00 app[web.1]: 3: <head>
2013-04-19T16:08:01.526972+00:00 app[web.1]: 4: <title>Sample App</title>
2013-04-19T16:08:01.527299+00:00 app[web.1]:
2013-04-19T16:08:01.527299+00:00 app[web.1]:
2013-04-19T16:08:01.527299+00:00 app[web.1]: app/assets/stylesheets/styles.css.scss:5
2013-04-19T16:08:01.527299+00:00 app[web.1]: Processing by PagesController#home as HTML
2013-04-19T16:08:01.527299+00:00 app[web.1]: 8: </head>
2013-04-19T16:08:01.527299+00:00 app[web.1]: app/views/layouts/application.html.erb:5:in `_2be
f37236eb3fbbf2665a458326374e1'
2013-04-19T16:08:01.527299+00:00 app[web.1]: Rendered pages/home.html.erb within layouts/application (0.2ms)
2013-04-19T16:08:01.536160+00:00 heroku[router]: at=info method=GET path=/ host=guarded-headland-2911.herokuapp.com fwd="98.154.183.5" dyno=web.1 connect=9ms service=82ms status=500 bytes=643
내 스타일의 application.css 파일은 다음과 같다 :
source 'https://rubygems.org'
gem 'rails', '3.2.13'
gem 'jquery-rails'
gem 'spree', '1.3.2'
gem 'spree_gateway', :github => 'spree/spree_gateway', :branch => '1-3-stable'
gem 'spree_auth_devise', :github => 'spree/spree_auth_devise', :branch => '1-3-stable'
group :production do
gem 'pg'
end
group :development, :test do
gem 'sqlite3'
end
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
gem 'uglifier', '>= 1.0.3'
gem 'bootstrap-sass', '~> 2.3.1'
end
귀하의 Gemfile은 어떤 모습입니까? 나는 이것이 당신의 css 파일에 적절한 파일 타입 이름이 없다는 사실과 관련이 있다고 생각한다. – jason328
내 gemfile을 게시했습니다. 나는 레일을 사용하는 것에 매우 익숙하다. CSS 파일의 이름을 올바르게 지정하려면 어떻게합니까? 도와 줘서 고마워. – ERO310
이 질문은 헛되지 않을 수 있습니다. 그러나 자산 파일에서 Spree가 임의로 CSS 파일을 만들었습니까? – jason328