Ruby on rails Heroku Rails应用程序将不会启动

Ruby on rails Heroku Rails应用程序将不会启动,ruby-on-rails,postgresql,heroku,Ruby On Rails,Postgresql,Heroku,我成功地将应用程序部署到Heroku。我为联系人表单添加了一些代码,现在应用程序将不会启动。奇怪的是,如果我取出联系人表单代码,它仍然不会启动。我收到的Heroku日志错误有: 2016-02-05T02:02:11.535460+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.5.1/lib/rails/commands.rb:17:in `<top (required)>' 20

我成功地将应用程序部署到Heroku。我为联系人表单添加了一些代码,现在应用程序将不会启动。奇怪的是,如果我取出联系人表单代码,它仍然不会启动。我收到的Heroku日志错误有:

2016-02-05T02:02:11.535460+00:00 app[web.1]:     from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.5.1/lib/rails/commands.rb:17:in `<top (required)>'
2016-02-05T02:02:11.535461+00:00 app[web.1]:     from bin/rails:9:in `<main>'
2016-02-05T02:02:12.518255+00:00 heroku[web.1]: State changed from starting to crashed
2016-02-05T02:02:12.496744+00:00 heroku[web.1]: Process exited with status 1
2016-02-05T02:02:14.019377+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=camdhall.herokuapp.com request_id=f0b71059-686b-46f4-9e69-2e62d55ca998 fwd="216.165.95.2" dyno= connect= service= status=503 bytes=

我根本不知道出了什么事。我试着重新安装postgres,重新启动应用程序,运行rakedb:migrate并检查代码是否有拼写错误,但我不知所措。它在我的本地安装程序上运行,但不在生产中。

请验证您的gem文件中的邮件格式gem是否可用于生产。另外,在本地以生产模式启动rails服务器以在本地重现问题。。。非常感谢。我把它放在我的开发小组里,从来没有注意到!多痛苦啊。
/app/app/models/contact.rb:1:in `<top (required)>': uninitialized constant MailForm (NameError)
    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.5.1/lib/rails/engine.rb:472:in `block (2 levels) in eager_load!'
    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.5.1/lib/rails/engine.rb:471:in `each'
    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.5.1/lib/rails/engine.rb:471:in `block in eager_load!'
    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.5.1/lib/rails/engine.rb:469:in `each'
    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.5.1/lib/rails/engine.rb:469:in `eager_load!'
    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.5.1/lib/rails/engine.rb:346:in `eager_load!'
    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.5.1/lib/rails/application/finisher.rb:56:in `each'
    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.5.1/lib/rails/application/finisher.rb:56:in `block in <module:Finisher>'
    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.5.1/lib/rails/initializable.rb:30:in `instance_exec'
    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.5.1/lib/rails/initializable.rb:30:in `run'
    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.5.1/lib/rails/initializable.rb:55:in `block in run_initializers'
    from /app/vendor/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:226:in `block in tsort_each'
    from /app/vendor/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:348:in `block (2 levels) in each_strongly_connected_component'
    from /app/vendor/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:429:in `each_strongly_connected_component_from'
    from /app/vendor/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:347:in `block in each_strongly_connected_component'
    from /app/vendor/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:345:in `each'
    from /app/vendor/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:345:in `call'
    from /app/vendor/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:345:in `each_strongly_connected_component'
    from /app/vendor/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:224:in `tsort_each'
    from /app/vendor/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:203:in `tsort_each'
    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.5.1/lib/rails/initializable.rb:54:in `run_initializers'
    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.5.1/lib/rails/application.rb:352:in `initialize!'
    from /app/config/environment.rb:5:in `<top (required)>'
    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.5.1/lib/rails/application.rb:328:in `require'
    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.5.1/lib/rails/application.rb:328:in `require_environment!'
    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.5.1/lib/rails/commands/commands_tasks.rb:142:in `require_application_and_environment!'
    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.5.1/lib/rails/commands/commands_tasks.rb:67:in `console'
    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.5.1/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.5.1/lib/rails/commands.rb:17:in `<top (required)>'
    from /app/bin/rails:9:in `require'
    from /app/bin/rails:9:in `<main>'
GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed