0
나는 Rails 3 응용 프로그램을 Heroku에 밀어 넣었지만 브라우저에서 열려고 시도 할 때"응용 프로그램 오류 "가 발생합니다. '다음'에게 Heroku는 번들 간부 레일 콘솔을 실행 반환Rails 3 "Heroku에 배포 할 때"응용 프로그램 오류 "
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
Gemfile, or fold them in to your app as lib/myplugin/* and
config/initializers/myplugin.rb. See the release notes for more on this:
http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from
<top (required)> at /app/config/environment.rb:5)
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
Gemfile, or fold them in to your app as lib/myplugin/* and
config/initializers/myplugin.rb. See the release notes for more on this:
http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from
<top (required)> at /app/config/environment.rb:5)
/app/vendor/bundle/ruby/1.9.1/gems/activesupport-
3.2.13/lib/active_support/dependencies.rb:251:in `require':
/app/app/controllers/stripe_events_controller.rb:27: syntax error, unexpected
keyword_end (SyntaxError)
/app/app/controllers/stripe_events_controller.rb:46: syntax error, unexpected $end,
expecting keyword_end
from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `block in require'
from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency'
from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:359:in `require_or_load'
from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:313:in `depend_on'
from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:225:in `require_dependency'
from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/engine.rb:439:in `block (2 levels) in eager_load!'
from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/engine.rb:438:in `each'
from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/engine.rb:438:in `block in eager_load!'
from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/engine.rb:436:in `each'
from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/engine.rb:436:in `eager_load!'
from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/application/finisher.rb:53:in `block in <module:Finisher>'
from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/initializable.rb:30:in `instance_exec'
from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/initializable.rb:30:in `run'
from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/initializable.rb:55:in `block in run_initializers'
from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/initializable.rb:54:in `each'
from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/initializable.rb:54:in `run_initializers'
from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/application.rb:136:in `initialize!'
from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /app/config/environment.rb:5:in `<top (required)>'
from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `block in require'
from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency'
from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/application.rb:103:in `require_environment!'
from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/commands.rb:40:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
당신은 분명있을 것 같아
'
2014-05-12T17:19:12.592829+00:00 heroku[router]: at=error code=H10 desc="App crashed"
method=GET path=/ host=mycfi.herokuapp.com request_id=a486e0ad-450e-4fa0-8546-
33e9d76e171d fwd="208.191.153.66" dyno= connect= service= status=503 bytes=
2014-05-12T17:19:13.127416+00:00 heroku[router]: at=error code=H10 desc="App crashed"
method=GET path=/favicon.ico host=mycfi.herokuapp.com request_id=ba155c24-eadd-407c-
abf1-0e805fa17f82 fwd="208.191.153.66" dyno= connect= service= status=503 bytes=
실행 :
은'Heroku가 로그 '를 실행하면 다음과 반환 end '이 오류를 일으키는 어딘가에 있지만 나는 이것이 사실이 아니라고 확신합니다. 오류가 언급 한 코드 줄은 이전에 작동했기 때문에 어떤 일이 일어 났는지 확실하지 않습니다.
도움을 주시면 대단히 감사하겠습니다! 감사.
편집 1 : 여기 내 stripe_events_controller에서 코드를 참조합니다. 내가 실수로 남긴 쉼표 (주석 바로 앞에 있음)를 확인하십시오. 이런!
def parse_and_validate_event
@event = StripeEvent.new(event_id: params[:id], event_type: params[:type])
unless @event.save # attempts to save to db
if @event.valid? # checks to see if unique
render nothing: true, status: 400 # valid event, try again later
else
render nothing: true, # invalid event, move along
end
end
end
예. 거기에있을 필요가없는 쉼표 안에 왼쪽. 감사. – mattq
다행 당신은 그것을 분류 :) – catsby