2012-12-08 4 views
3

Heroku에 내 앱을 배포하려고하면이 오류가 발생합니다. heroku run rake db:reset을 수행하기 전에 첫 번째 배포가 정상적으로 작동합니다. 다음은 오류가 있습니다. "죄송합니다.하지만 문제가 발생했습니다." 및 "찾고 있던 페이지가 존재하지 않습니다. 주소를 잘못 입력했거나 페이지가 이동했을 수 있습니다."Heroku : 찾고 있던 페이지가 존재하지 않습니다.

내 Heroku가 로그는 말한다 :

2012-12-08T11:40:54+00:00 app[web.1]: ActionView::Template::Error (bootstrap.css isn't precompiled): 
2012-12-08T11:40:54+00:00 app[web.1]:  9: <%= csrf_meta_tags %> 
2012-12-08T11:40:54+00:00 app[web.1]: 
2012-12-08T11:40:54+00:00 app[web.1]:  8: <%= javascript_include_tag "bootstrap", media: "all"%> 

어떤 사람이, 당신이 나를 도와 드릴까요?

답변

11

Heroku가 귀하의 자산이 사전 컴파일되지 않는다고 불평하는 것 같습니다. 나는 heroku의 레일에 대해 this tutorial을 읽었으며, 리소스 미리 컴파일 전용 섹션이 있습니다.

당신은 생산

#config/environments/production.rb 
config.assets.compile = true 
# Heroku also requires this to be false 
config.assets.initialize_on_precompile=false 

에 자산을 미리 컴파일 응용 프로그램을 알 수 있습니다 또는 당신은 레이크 작업

#before pushing to Heroku and then you can push 
rake assets:precompile 

#or after you've pushed to heroku 
heroku run rake assets:precompile 
를 사용하여 자산을 사전 컴파일 할 수 있습니다
관련 문제