2012-11-19 3 views
1

문제는 내가 SQLite3을 사용하고 있다고 생각했기 때문에 PostgreSQL로 마이그레이션했지만 문제는 지속됩니다. 응용 프로그램은 로컬에서 잘 작동합니다. Heroku가 열려으로 나는 그것이 나에게 다음과 같은 오류를 제공, 내 응용 프로그램을 엽니 다레일 : Heroku 처음 배포 실패

Application Error. An error occurred in the application and your page could not be served. Please try again in a few moments. If you are the application owner, check your logs for details.. 

내가 로그를 보면 해상도를 찾기 위해 노력했지만 실패, 그래서 누군가의 도움이 필요합니다. 여기에 내 기록이 있으며 도움을 주셔서 감사합니다! 처음 배포자에 대한

2012-11-19T00:55:37+00:00 heroku[web.1]: Starting process with command `bundle exec thin start -R config.ru -e production -p 3545` 
2012-11-19T00:55:39+00:00 app[web.1]: DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your 
the release notes for more on this: http://weblog.rubyonrails.org/2012/01/04/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/config/environment.rb:5) 
2012-11-19T00:55:39+00:00 app[web.1]: DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your 
the release notes for more on this: http://weblog.rubyonrails.org/2012/01/04/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/config/environment.rb:5) 
2012-11-19T00:55:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.1/lib/rails/application.rb:136:in `initialize!' 
2012-11-19T00:55:41+00:00 app[web.1]: /app/config/initializers/formtastic.rb:2:in `<top (required)>': uninitialized constant Formtastic (NameError) 
2012-11-19T00:55:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.1/lib/rails/engine.rb:588:in `block (2 levels) in <class:Engine>' 
2012-11-19T00:55:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.1/lib/rails/initializable.rb:30:in `run' 
2012-11-19T00:55:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.1/lib/rails/engine.rb:587:in `each' 
2012-11-19T00:55:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.1/lib/rails/initializable.rb:55:in `block in run_initializers' 
2012-11-19T00:55:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.1/lib/rails/initializable.rb:30:in `instance_exec' 
2012-11-19T00:55:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.1/lib/rails/engine.rb:587:in `block in <class:Engine>' 
2012-11-19T00:55:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.1/lib/rails/initializable.rb:54:in `each' 
2012-11-19T00:55:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.1/lib/rails/initializable.rb:54:in `run_initializers' 
2012-11-19T00:55:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.1/lib/rails/railtie/configurable.rb:30:in `method_missing' 
2012-11-19T00:55:41+00:00 app[web.1]: from /app/config/environment.rb:5:in `<top (required)>' 

2012-11-19T00:55:41+00:00 app[web.1]: from config.ru:3:in `require' 
2012-11-19T00:55:41+00:00 app[web.1]: from config.ru:3:in `block in <main>' 
2012-11-19T00:55:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:51:in `instance_eval' 
2012-11-19T00:55:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:51:in `initialize' 
2012-11-19T00:55:41+00:00 app[web.1]: from config.ru:1:in `new' 
2012-11-19T00:55:41+00:00 app[web.1]: from config.ru:1:in `<main>' 
2012-11-19T00:55:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.0/lib/rack/adapter/loader.rb:33:in `eval' 
2012-11-19T00:55:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.0/lib/rack/adapter/loader.rb:33:in `load' 
2012-11-19T00:55:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.0/lib/thin/controllers/controller.rb:181:in `load_rackup_config' 
2012-11-19T00:55:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.0/lib/thin/runner.rb:187:in `run_command' 
2012-11-19T00:55:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.0/lib/thin/runner.rb:152:in `run!' 
2012-11-19T00:55:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.0/bin/thin:6:in `<top (required)>' 
2012-11-19T00:55:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/bin/thin:19:in `load' 

2012-11-19T00:55:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/bin/thin:19:in `<main>' 
2012-11-19T00:55:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.0/lib/thin/controllers/controller.rb:71:in `start' 
2012-11-19T00:55:42+00:00 heroku[web.1]: Process exited with status 1 
2012-11-19T00:56:34+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=fast-savannah-6843.herokuapp.com fwd= dyno= queue= wait= connect= service= status=503 bytes= 
2012-11-19T00:56:34+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=fast-savannah-6843.herokuapp.com fwd= dyno= queue= wait= connect= service= status=503 bytes= 
2012-11-19T00:57:44+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=fast-savannah-6843.herokuapp.com fwd= dyno= queue= wait= connect= service= status=503 bytes= 
2012-11-19T00:57:44+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=fast-savannah-6843.herokuapp.com fwd= dyno= queue= wait= connect= service= status=503 bytes= 
+0

gemfile에 Formtastic이 포함되어 있습니까? – rjz

+0

예! 그룹 : assets do gem 'sass-rails', '~> 3.2.3' gem '커피 레일', '~> 3.2.1' gem 'bootstrap-sass' gem 'formtastic-bootstrap' –

+0

Have 레일즈 서버를 실행하기 전에 번들 설치를 시도 했습니까? –

답변

5

, 여기에 내가 가진 문제가 있고, 내가 그들을 해결 방법 :

1. RailsInstaller와 Heroku가 툴 벨트는 완벽하게 호환되지 않습니다 : 문제가 발생하면 Heroku toolbelt를 설치 한 후에는 railsinstaller 및 heroku toolbelt를 모두 삭제하고 railsinstaller를 다시 설치하는 것이 좋습니다. 그런 다음 보석 파일에 gem 'heroku'을 추가하고 번들 설치를 실행하십시오. 내 앱을 성공적으로 배포하기 위해 추가 물건이 필요하지 않았습니다. Heroku Toolbelt가 루비 1.9.2 v를 설치하고 사용자 환경 설정에 잘못된 경로를 추가합니다. 예를 들어 C : RailsInstaller : Ruby1.9.3에서이 PATH를 올바른 위치로 수동으로 수정할 수 있습니다. 그러나 모든 것을 다시 설치하는 것이 더 쉬웠습니다. 당신이 그것을 수행하는 방법을 모르는 경우 this를 수행

2. 당신은 sqlite3를에서 PostgreSQL을로 마이그레이션해야합니다.

3. 마지막으로 응용 프로그램을 배포하려면 Heroku 자습서를 따르십시오. this을 따르십시오. "개체가 존재하지 않습니다"라는 줄에 따라 오류가 발생하면 heroku run rake db:migrate을 실행 해보십시오.

행운을 빌어 요!