FactoryGirl helper causing Heroku to fail - ruby-on-rails

My Heroku app is crashing because of a 'missing helper file helpers/factory_girl.rb', even though it works on local and FactoryGirl is only installed in my Gemfile test group.
Why is Heroku asking for my FactoryGirl helper when it's not needed in development and isn't specified as a production gem?
What is helpers/factory_girl.rb supposed to look like? I searched online and couldn't find anything. Would a completely blank file work?
I am running Rails 3.2.13, Ruby 2.0.0-p481, and factory_girl_rails 4.4.1.
Gemfile:
group :test do
gem "factory_girl_rails", ">= 4.0"
end
Heroku logs:
2015-01-31T02:16:01.071477+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:317:in `rescue in depend_on': Missing helper file helpers/factory_girl.rb (LoadError)
2015-01-31T02:16:01.071484+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:312:in `depend_on'
2015-01-31T02:16:01.071515+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/abstract_controller/helpers.rb:135:in `block in modules_for_helpers'
2015-01-31T02:16:01.071524+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/abstract_controller/helpers.rb:131:in `modules_for_helpers'
2015-01-31T02:16:01.071522+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/abstract_controller/helpers.rb:131:in `map!'
2015-01-31T02:16:01.071487+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:225:in `require_dependency'
2015-01-31T02:16:01.071526+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_controller/metal/helpers.rb:92:in `modules_for_helpers'
2015-01-31T02:16:01.071530+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_controller/railties/paths.rb:18:in `block (2 levels) in with'
2015-01-31T02:16:01.071533+00:00 app[web.1]: from /app/app/controllers/application_controller.rb:4:in `<top (required)>'
2015-01-31T02:16:01.071535+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
2015-01-31T02:16:01.071537+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `block in require'
2015-01-31T02:16:01.071528+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/abstract_controller/helpers.rb:95:in `helper'
2015-01-31T02:16:01.071538+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency'
2015-01-31T02:16:01.071540+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
2015-01-31T02:16:01.071581+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
2015-01-31T02:16:01.071570+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:502:in `load_missing_constant'
2015-01-31T02:16:01.071572+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:192:in `block in const_missing'
2015-01-31T02:16:01.071574+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:190:in `each'
2015-01-31T02:16:01.071576+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:190:in `const_missing'
2015-01-31T02:16:01.071583+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_suppor
t/dependencies.rb:251:in `block in require'
2015-01-31T02:16:01.071578+00:00 app[web.1]: from /app/app/controllers/activations_controller.rb:1:in `<top (required)>'
2015-01-31T02:16:01.071550+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:359:in `require_or_load'
2015-01-31T02:16:01.071647+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/engine.rb:436:in `eager_load!'
2015-01-31T02:16:01.071633+00:00 app[web.1]: 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!'
2015-01-31T02:16:01.071622+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency'
2015-01-31T02:16:01.071625+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
2015-01-31T02:16:01.071627+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:359:in `require_or_load'
2015-01-31T02:16:01.071629+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:313:in `depend_on'
2015-01-31T02:16:01.071631+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:225:in `require_dependency'
2015-01-31T02:16:01.071640+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/engine.rb:438:in `each'
2015-01-31T02:16:01.071642+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/engine.rb:438:in `block in eager_load!'
2015-01-31T02:16:01.071644+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/engine.rb:436:in `each'
2015-01-31T02:16:01.071648+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/application/finisher.rb:53:in `block in <module:Finisher>'
2015-01-31T02:16:01.071654+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/initializable.rb:55:in `block in run_initializers'
2015-01-31T02:16:01.071650+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/initializable.rb:30:in `instance_exec'
2015-01-31T02:16:01.071652+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/initializable.rb:30:in `run'
2015-01-31T02:16:01.071656+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/initializable.rb:54:in `each'
2015-01-31T02:16:01.071658+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/initializable.rb:54:in `run_initializers'
2015-01-31T02:16:01.071659+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/application.rb:136:in `initialize!'
2015-01-31T02:16:01.071661+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/railtie/configurable.rb:30:in `method_missing'
2015-01-31T02:16:01.071688+00:00 app[web.1]: from /app/config/environment.rb:5:in `<top (required)>'
2015-01-31T02:16:01.071690+00:00 app[web.1]: from /app/config.ru:3:in `require'
2015-01-31T02:16:01.071692+00:00 app[web.1]: from /app/config.ru:3:in `block in <main>'
2015-01-31T02:16:01.071693+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.5/lib/rack/builder.rb:51:in `instance_eval'
2015-01-31T02:16:01.071695+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.5/lib/rack/builder.rb:51:in `initialize'
2015-01-31T02:16:01.071698+00:00 app[web.1]: from /app/config.ru:1:in `new'
2015-01-31T02:16:01.071699+00:00 app[web.1]: from /app/config.ru:1:in `<main>'
2015-01-31T02:16:01.071701+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.6.2/lib/rack/adapter/loader.rb:33:in `eval'
2015-01-31T02:16:01.071703+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.6.2/lib/rack/adapter/loader.rb:33:in `load'
2015-01-31T02:16:01.071705+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.6.2/lib/rack/adapter/loader.rb:42:in `for'
2015-01-31T02:16:01.071707+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.6.2/lib/thin/controllers/controller.rb:170:in `load_adapter'
2015-01-31T02:16:01.071709+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.6.2/lib/thin/controllers/controller.rb:74:in `start'
2015-01-31T02:16:01.071711+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.6.2/lib/thin/runner.rb:199:in `run_command'
2015-01-31T02:16:01.071713+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.6.2/lib/thin/runner.rb:155:in `run!'
2015-01-31T02:16:01.071715+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.6.2/bin/thin:6:in `<top (required)>'
2015-01-31T02:16:01.071717+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/bin/thin:19:in `load'
2015-01-31T02:16:01.071719+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/bin/thin:19:in `<main>'
2015-01-31T02:16:01.971364+00:00 heroku[web.1]: Process exited with status 1
2015-01-31T02:16:01.976052+00:00 heroku[web.1]: State changed from starting to crashed

I think heroku's RAILS_ENV is production as below.
$ heroku config
=== app_name Config Vars
CLEARDB_DATABASE_URL: mysql://...
DATABASE_URL: mysql2://...
LANG: en_US.UTF-8
RACK_ENV: production
RAILS_ENV: production
SECRET_KEY_BASE: ....
That's why factory_girl in test group doesn't work well on heroku.
One of solution is just add production group. But, it not good idea.
group :test, :production do
gem "factory_girl_rails", ">= 4.0"
end
I think if you just load test data on heroku for test, I suggets as below.
# run to load test data
rake db:data_import
# test data import rake file
# deta_import.rb
if Rails.env.production?
require "factory_girl_rails"
FactoryGirl.find_definitions
end
... test data import with FactoryGirl ...

Related

Rails App works locally but crashes when deploying to heroku

I'm trying to open my rails application through heroku after its been deployed to heroku but keep getting an application error and cant figure it out. This is my full error message:
2020-03-28T05:36:08.883484+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-6.0.2.2/lib/rails/commands.rb:18:in `<main>'
2020-03-28T05:36:08.883487+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
2020-03-28T05:36:08.883490+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
2020-03-28T05:36:08.883493+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
2020-03-28T05:36:08.883514+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
2020-03-28T05:36:08.883514+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
2020-03-28T05:36:08.883515+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:325:in `block in require'
2020-03-28T05:36:08.883515+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:291:in `load_dependency'
2020-03-28T05:36:08.883518+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:325:in `require'
2020-03-28T05:36:08.883527+00:00 app[web.1]: from bin/rails:4:in `<main>'
2020-03-28T05:36:09.000809+00:00 heroku[web.1]: State changed from starting to crashed
2020-03-28T05:36:08.983756+00:00 heroku[web.1]: Process exited with status 1
2020-03-28T05:45:46.000000+00:00 app[api]: Build started by user gavinsmyth1998#gmail.com
2020-03-28T05:47:05.219450+00:00 app[api]: Deploy 371fbb06 by user gavinsmyth1998#gmail.com
2020-03-28T05:47:05.219450+00:00 app[api]: Release v8 created by user gavinsmyth1998#gmail.com
2020-03-28T05:47:06.240929+00:00 heroku[web.1]: State changed from crashed to starting
2020-03-28T05:47:11.000000+00:00 app[api]: Build succeeded
2020-03-28T05:47:12.913174+00:00 heroku[web.1]: Starting process with command `bin/rails server -p 53780 -e production`
2020-03-28T05:47:18.871183+00:00 app[web.1]: DEPRECATION WARNING: Including LoggerSilence is deprecated and will be removed in Rails 6.1. Please use `ActiveSupport::LoggerSilence` instead (called from <main> at /app/config/application.rb:7)
2020-03-28T05:47:18.900508+00:00 app[web.1]: => Booting Puma
2020-03-28T05:47:18.900510+00:00 app[web.1]: => Rails 6.0.2.2 application starting in production
2020-03-28T05:47:18.900511+00:00 app[web.1]: => Run `rails server --help` for more startup options
2020-03-28T05:47:20.753020+00:00 app[web.1]: Exiting
2020-03-28T05:47:20.753201+00:00 app[web.1]: /app/app/unit_converter/lib/unit_converter.rb:2:in `<main>': UnitConverter is not a module (TypeError)
2020-03-28T05:47:20.753225+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
2020-03-28T05:47:20.753226+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
2020-03-28T05:47:20.753228+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
2020-03-28T05:47:20.753246+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
2020-03-28T05:47:20.753248+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
2020-03-28T05:47:20.753264+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.3.0/lib/zeitwerk/kernel.rb:16:in `require'
2020-03-28T05:47:20.753265+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.3.0/lib/zeitwerk/loader.rb:381:in `const_get'
2020-03-28T05:47:20.753282+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.3.0/lib/zeitwerk/loader.rb:381:in `block (2 levels) in eager_load'
2020-03-28T05:47:20.753283+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.3.0/lib/zeitwerk/loader.rb:723:in `block in ls'
2020-03-28T05:47:20.753299+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.3.0/lib/zeitwerk/loader.rb:720:in `foreach'
2020-03-28T05:47:20.753299+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.3.0/lib/zeitwerk/loader.rb:720:in `ls'
2020-03-28T05:47:20.753315+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.3.0/lib/zeitwerk/loader.rb:376:in `block in eager_load'
2020-03-28T05:47:20.753315+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.3.0/lib/zeitwerk/loader.rb:368:in `synchronize'
2020-03-28T05:47:20.753317+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.3.0/lib/zeitwerk/loader.rb:368:in `eager_load'
2020-03-28T05:47:20.753333+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.3.0/lib/zeitwerk/loader.rb:483:in `each'
2020-03-28T05:47:20.753334+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.3.0/lib/zeitwerk/loader.rb:483:in `eager_load_all'
2020-03-28T05:47:20.753336+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-6.0.2.2/lib/rails/application/finisher.rb:122:in `block in <module:Finisher>'
2020-03-28T05:47:20.753352+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-6.0.2.2/lib/rails/initializable.rb:32:in `instance_exec'
2020-03-28T05:47:20.753352+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-6.0.2.2/lib/rails/initializable.rb:32:in `run'
2020-03-28T05:47:20.753354+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-6.0.2.2/lib/rails/initializable.rb:61:in `block in run_initializers'
2020-03-28T05:47:20.753375+00:00 app[web.1]: from /app/vendor/ruby-2.6.5/lib/ruby/2.6.0/tsort.rb:228:in `block in tsort_each'
2020-03-28T05:47:20.753378+00:00 app[web.1]: from /app/vendor/ruby-2.6.5/lib/ruby/2.6.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
2020-03-28T05:47:20.753381+00:00 app[web.1]: from /app/vendor/ruby-2.6.5/lib/ruby/2.6.0/tsort.rb:431:in `each_strongly_connected_component_from'
2020-03-28T05:47:20.753382+00:00 app[web.1]: from /app/vendor/ruby-2.6.5/lib/ruby/2.6.0/tsort.rb:349:in `block in each_strongly_connected_component'
2020-03-28T05:47:20.753385+00:00 app[web.1]: from /app/vendor/ruby-2.6.5/lib/ruby/2.6.0/tsort.rb:347:in `each'
2020-03-28T05:47:20.753387+00:00 app[web.1]: from /app/vendor/ruby-2.6.5/lib/ruby/2.6.0/tsort.rb:347:in `call'
2020-03-28T05:47:20.753406+00:00 app[web.1]: from /app/vendor/ruby-2.6.5/lib/ruby/2.6.0/tsort.rb:347:in `each_strongly_connected_component'
2020-03-28T05:47:20.753406+00:00 app[web.1]: from /app/vendor/ruby-2.6.5/lib/ruby/2.6.0/tsort.rb:226:in `tsort_each'
2020-03-28T05:47:20.753408+00:00 app[web.1]: from /app/vendor/ruby-2.6.5/lib/ruby/2.6.0/tsort.rb:205:in `tsort_each'
2020-03-28T05:47:20.753424+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-6.0.2.2/lib/rails/initializable.rb:60:in `run_initializers'
2020-03-28T05:47:20.753424+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-6.0.2.2/lib/rails/application.rb:363:in `initialize!'
2020-03-28T05:47:20.753440+00:00 app[web.1]: from /app/config/environment.rb:5:in `<main>'
2020-03-28T05:47:20.753440+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
2020-03-28T05:47:20.753457+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
2020-03-28T05:47:20.753459+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
2020-03-28T05:47:20.753476+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
2020-03-28T05:47:20.753476+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
2020-03-28T05:47:20.753493+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.3.0/lib/zeitwerk/kernel.rb:23:in `require'
2020-03-28T05:47:20.753495+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:325:in `block in require'
2020-03-28T05:47:20.753511+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:291:in `load_dependency'
2020-03-28T05:47:20.753513+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:325:in `require'
2020-03-28T05:47:20.753529+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:49:in `require_relative'
2020-03-28T05:47:20.753530+00:00 app[web.1]: from config.ru:3:in `block in <main>'
2020-03-28T05:47:20.753550+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/rack-2.2.2/lib/rack/builder.rb:116:in `eval'
2020-03-28T05:47:20.753550+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/rack-2.2.2/lib/rack/builder.rb:116:in `new_from_string'
2020-03-28T05:47:20.753553+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/rack-2.2.2/lib/rack/builder.rb:105:in `load_file'
2020-03-28T05:47:20.753556+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/rack-2.2.2/lib/rack/builder.rb:66:in `parse_file'
2020-03-28T05:47:20.753577+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/rack-2.2.2/lib/rack/server.rb:349:in `build_app_and_options_from_config'
2020-03-28T05:47:20.753577+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/rack-2.2.2/lib/rack/server.rb:249:in `app'
2020-03-28T05:47:20.753579+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/rack-2.2.2/lib/rack/server.rb:422:in `wrapped_app'
2020-03-28T05:47:20.753598+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/rack-2.2.2/lib/rack/server.rb:312:in `block in start'
2020-03-28T05:47:20.753600+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/rack-2.2.2/lib/rack/server.rb:379:in `handle_profiling'
2020-03-28T05:47:20.753616+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/rack-2.2.2/lib/rack/server.rb:311:in `start'
2020-03-28T05:47:20.753618+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-6.0.2.2/lib/rails/commands/server/server_command.rb:39:in `start'
2020-03-28T05:47:20.753634+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-6.0.2.2/lib/rails/commands/server/server_command.rb:147:in `block in perform'
2020-03-28T05:47:20.753635+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-6.0.2.2/lib/rails/commands/server/server_command.rb:138:in `tap'
2020-03-28T05:47:20.753651+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-6.0.2.2/lib/rails/commands/server/server_command.rb:138:in `perform'
2020-03-28T05:47:20.753651+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/thor-1.0.1/lib/thor/command.rb:27:in `run'
2020-03-28T05:47:20.753667+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/thor-1.0.1/lib/thor/invocation.rb:127:in `invoke_command'
2020-03-28T05:47:20.753668+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/thor-1.0.1/lib/thor.rb:392:in `dispatch'
2020-03-28T05:47:20.753684+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-6.0.2.2/lib/rails/command/base.rb:69:in `perform'
2020-03-28T05:47:20.753685+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-6.0.2.2/lib/rails/command.rb:46:in `invoke'
2020-03-28T05:47:20.753701+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-6.0.2.2/lib/rails/commands.rb:18:in `<main>'
2020-03-28T05:47:20.753702+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
2020-03-28T05:47:20.753722+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
2020-03-28T05:47:20.753722+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
2020-03-28T05:47:20.753725+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
2020-03-28T05:47:20.753728+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
2020-03-28T05:47:20.753748+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:325:in `block in require'
2020-03-28T05:47:20.753748+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:291:in `load_dependency'
2020-03-28T05:47:20.753750+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:325:in `require'
2020-03-28T05:47:20.753767+00:00 app[web.1]: from bin/rails:4:in `<main>'
2020-03-28T05:47:20.930773+00:00 heroku[web.1]: State changed from starting to crashed
2020-03-28T05:47:20.934097+00:00 heroku[web.1]: State changed from crashed to starting
2020-03-28T05:47:20.911352+00:00 heroku[web.1]: Process exited with status 1
2020-03-28T05:47:28.215815+00:00 heroku[web.1]: Starting process with command `bin/rails server -p 11530 -e production`
2020-03-28T05:47:34.875311+00:00 app[web.1]: DEPRECATION WARNING: Including LoggerSilence is deprecated and will be removed in Rails 6.1. Please use `ActiveSupport::LoggerSilence` instead (called from <main> at /app/config/application.rb:7)
2020-03-28T05:47:34.899134+00:00 app[web.1]: => Booting Puma
2020-03-28T05:47:34.899138+00:00 app[web.1]: => Rails 6.0.2.2 application starting in production
2020-03-28T05:47:34.899139+00:00 app[web.1]: => Run `rails server --help` for more startup options
2020-03-28T05:47:36.057620+00:00 heroku[web.1]: State changed from starting to crashed
2020-03-28T05:47:35.944829+00:00 app[web.1]: Exiting
2020-03-28T05:47:35.944955+00:00 app[web.1]: /app/app/unit_converter/lib/unit_converter.rb:2:in `<main>': UnitConverter is not a module (TypeError)
2020-03-28T05:47:35.944979+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
2020-03-28T05:47:35.944980+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
2020-03-28T05:47:35.944980+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
2020-03-28T05:47:35.944981+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
2020-03-28T05:47:35.944993+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
2020-03-28T05:47:35.944994+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.3.0/lib/zeitwerk/kernel.rb:16:in `require'
2020-03-28T05:47:35.944997+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.3.0/lib/zeitwerk/loader.rb:381:in `const_get'
2020-03-28T05:47:35.944997+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.3.0/lib/zeitwerk/loader.rb:381:in `block (2 levels) in eager_load'
2020-03-28T05:47:35.944997+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.3.0/lib/zeitwerk/loader.rb:723:in `block in ls'
2020-03-28T05:47:35.944998+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.3.0/lib/zeitwerk/loader.rb:720:in `foreach'
2020-03-28T05:47:35.944998+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.3.0/lib/zeitwerk/loader.rb:720:in `ls'
2020-03-28T05:47:35.945001+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.3.0/lib/zeitwerk/loader.rb:376:in `block in eager_load'
2020-03-28T05:47:35.945003+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.3.0/lib/zeitwerk/loader.rb:368:in `synchronize'
2020-03-28T05:47:35.945005+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.3.0/lib/zeitwerk/loader.rb:368:in `eager_load'
2020-03-28T05:47:35.945007+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.3.0/lib/zeitwerk/loader.rb:483:in `each'
2020-03-28T05:47:35.945010+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.3.0/lib/zeitwerk/loader.rb:483:in `eager_load_all'
2020-03-28T05:47:35.945035+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-6.0.2.2/lib/rails/application/finisher.rb:122:in `block in <module:Finisher>'
2020-03-28T05:47:35.945036+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-6.0.2.2/lib/rails/initializable.rb:32:in `instance_exec'
2020-03-28T05:47:35.945036+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-6.0.2.2/lib/rails/initializable.rb:32:in `run'
2020-03-28T05:47:35.945036+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-6.0.2.2/lib/rails/initializable.rb:61:in `block in run_initializers'
2020-03-28T05:47:35.945037+00:00 app[web.1]: from /app/vendor/ruby-2.6.5/lib/ruby/2.6.0/tsort.rb:228:in `block in tsort_each'
2020-03-28T05:47:35.945040+00:00 app[web.1]: from /app/vendor/ruby-2.6.5/lib/ruby/2.6.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
2020-03-28T05:47:35.945040+00:00 app[web.1]: from /app/vendor/ruby-2.6.5/lib/ruby/2.6.0/tsort.rb:431:in `each_strongly_connected_component_from'
2020-03-28T05:47:35.945043+00:00 app[web.1]: from /app/vendor/ruby-2.6.5/lib/ruby/2.6.0/tsort.rb:349:in `block in each_strongly_connected_component'
2020-03-28T05:47:35.945046+00:00 app[web.1]: from /app/vendor/ruby-2.6.5/lib/ruby/2.6.0/tsort.rb:347:in `each'
2020-03-28T05:47:35.945049+00:00 app[web.1]: from /app/vendor/ruby-2.6.5/lib/ruby/2.6.0/tsort.rb:347:in `call'
2020-03-28T05:47:35.945051+00:00 app[web.1]: from /app/vendor/ruby-2.6.5/lib/ruby/2.6.0/tsort.rb:347:in `each_strongly_connected_component'
2020-03-28T05:47:35.945054+00:00 app[web.1]: from /app/vendor/ruby-2.6.5/lib/ruby/2.6.0/tsort.rb:226:in `tsort_each'
2020-03-28T05:47:35.945056+00:00 app[web.1]: from /app/vendor/ruby-2.6.5/lib/ruby/2.6.0/tsort.rb:205:in `tsort_each'
2020-03-28T05:47:35.945058+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-6.0.2.2/lib/rails/initializable.rb:60:in `run_initializers'
2020-03-28T05:47:35.945080+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-6.0.2.2/lib/rails/application.rb:363:in `initialize!'
2020-03-28T05:47:35.945082+00:00 app[web.1]: from /app/config/environment.rb:5:in `<main>'
2020-03-28T05:47:35.945082+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
2020-03-28T05:47:35.945083+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
2020-03-28T05:47:35.945086+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
2020-03-28T05:47:35.945087+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
2020-03-28T05:47:35.945087+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
2020-03-28T05:47:35.945089+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.3.0/lib/zeitwerk/kernel.rb:23:in `require'
2020-03-28T05:47:35.945092+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:325:in `block in require'
2020-03-28T05:47:35.945094+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:291:in `load_dependency'
2020-03-28T05:47:35.945096+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:325:in `require'
2020-03-28T05:47:35.945100+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:49:in `require_relative'
2020-03-28T05:47:35.945102+00:00 app[web.1]: from config.ru:3:in `block in <main>'
2020-03-28T05:47:35.945104+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/rack-2.2.2/lib/rack/builder.rb:116:in `eval'
2020-03-28T05:47:35.945127+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/rack-2.2.2/lib/rack/builder.rb:116:in `new_from_string'
2020-03-28T05:47:35.945128+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/rack-2.2.2/lib/rack/builder.rb:105:in `load_file'
2020-03-28T05:47:35.945128+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/rack-2.2.2/lib/rack/builder.rb:66:in `parse_file'
2020-03-28T05:47:35.945129+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/rack-2.2.2/lib/rack/server.rb:349:in `build_app_and_options_from_config'
2020-03-28T05:47:35.945132+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/rack-2.2.2/lib/rack/server.rb:249:in `app'
2020-03-28T05:47:35.945132+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/rack-2.2.2/lib/rack/server.rb:422:in `wrapped_app'
2020-03-28T05:47:35.945135+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/rack-2.2.2/lib/rack/server.rb:312:in `block in start'
2020-03-28T05:47:35.945137+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/rack-2.2.2/lib/rack/server.rb:379:in `handle_profiling'
2020-03-28T05:47:35.945139+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/rack-2.2.2/lib/rack/server.rb:311:in `start'
2020-03-28T05:47:35.945141+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-6.0.2.2/lib/rails/commands/server/server_command.rb:39:in `start'
2020-03-28T05:47:35.945163+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-6.0.2.2/lib/rails/commands/server/server_command.rb:147:in `block in perform'
2020-03-28T05:47:35.945164+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-6.0.2.2/lib/rails/commands/server/server_command.rb:138:in `tap'
2020-03-28T05:47:35.945164+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-6.0.2.2/lib/rails/commands/server/server_command.rb:138:in `perform'
2020-03-28T05:47:35.945164+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/thor-1.0.1/lib/thor/command.rb:27:in `run'
2020-03-28T05:47:35.945167+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/thor-1.0.1/lib/thor/invocation.rb:127:in `invoke_command'
2020-03-28T05:47:35.945168+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/thor-1.0.1/lib/thor.rb:392:in `dispatch'
2020-03-28T05:47:35.945171+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-6.0.2.2/lib/rails/command/base.rb:69:in `perform'
2020-03-28T05:47:35.945171+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-6.0.2.2/lib/rails/command.rb:46:in `invoke'
2020-03-28T05:47:35.945174+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-6.0.2.2/lib/rails/commands.rb:18:in `<main>'
2020-03-28T05:47:35.945176+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
2020-03-28T05:47:35.945197+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
2020-03-28T05:47:35.945198+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
2020-03-28T05:47:35.945198+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
2020-03-28T05:47:35.945198+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
2020-03-28T05:47:35.945201+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:325:in `block in require'
2020-03-28T05:47:35.945201+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:291:in `load_dependency'
2020-03-28T05:47:35.945203+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:325:in `require'
2020-03-28T05:47:35.945207+00:00 app[web.1]: from bin/rails:4:in `<main>'
2020-03-28T05:47:36.041261+00:00 heroku[web.1]: Process exited with status 1
I've pushed it up to github and done this command to link it with heroku:
git push heroku master
I've also done
heroku run rake db:migrate
I've been trying to figure it out for a while now but no luck. I know it probably has something to do with this but don't know why:
/app/app/unit_converter/lib/unit_converter.rb:2:in `<main>': UnitConverter is not a module (TypeError)
These are the only two places that I can see UnitConverter being used. The gem I created:
require 'singleton'
module UnitConverter
class ConversionError < StandardError
end
class Weight
include Singleton
# lookup table
CONVERSIONS = {
kg: {
pounds: 2.20462,
stone: 0.157473,
},
pounds: {
kg: 0.453592,
stone: 0.0714286
},
stone: {
kg: 6.35029,
pounds: 14
}
}
weight = Weight.instance
def convert(value, from, to:)
raise ConversionError, "Value is not numeric" unless value.is_a? Numeric
raise ConversionError, "Value #{value} is not positive" unless value >= 0
"#{value * conversion_ratio(from, to) }#{to.to_s}"
end
def conversions(value, unit)
CONVERSIONS[unit].keys.map do |other_unit|
convert(value, unit, to: other_unit)
end
end
private
def conversion_ratio(from, to)
begin
CONVERSIONS.fetch(from).fetch(to)
rescue KeyError
raise ConversionError, "Cannot convert #{from.to_s} to #{to.to_s}"
end
end
end
end
and when Im calling it in another class:
def converter
#input1 = params[:value]
#input2 = params[:unit]
#result = ::UnitConverter::Weight.instance.conversions(#input1.to_i, #input2.to_sym)
#measurements = Measurement.where(:user_id => current_user.id)
cookies[:email] = current_user.email
#email = cookies[:email]
render :index
end
Any suggestions?

Rails Heroku Application Error on Heroku Open

I am trying to start my Heroku app (Rails 6 / Postgres) by using heroku open, but I am encountering an 'Application Error'.
Earlier I was having issues with rails credentials, but I deleted and regenerated them and am no longer seeing the same errors as before.
EDIT:
Again, I ran rm credentials.yml.enc and EDITOR='subl -w' rails credentials:edit (just running rails edit:credentials prompts you to use an editor) and I got the following:
DEPRECATION WARNING: Including LoggerSilence is deprecated and will be removed in Rails 6.1. Please use `ActiveSupport::LoggerSilence` instead (called from <main> at /Users/spencer_kier/life-school-landing/config/application.rb:7)
File encrypted and saved.
And then I added, committed and pushed to Github, then ran heroku open and got the following (note that when I run heroku local everything is fine):
2019-09-28T23:03:08.902322+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.0/lib/active_support/dependencies.rb:291:in `load_dependency'
2019-09-28T23:03:08.902326+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.0/lib/active_support/dependencies.rb:325:in `require'
2019-09-28T23:03:08.90233+00:00 app[web.1]: from bin/rails:9:in `<main>'
2019-09-28T23:03:09.002478+00:00 heroku[web.1]: Process exited with status 1
2019-09-28T23:03:09.055408+00:00 heroku[web.1]: State changed from starting to crashed
2019-09-28T23:03:09.05902+00:00 heroku[web.1]: State changed from crashed to starting
2019-09-28T23:03:15.860009+00:00 heroku[web.1]: Starting process with command `bin/rails server -p 58084 -e production`
2019-09-28T23:03:21.559329+00:00 heroku[web.1]: source=web.1 dyno=heroku.147843998.1c5871c6-e4e4-4f6c-8895-730f9331ed93 sample#memory_total=96.64MB sample#memory_rss=71.09MB sample#memory_cache=25.56MB sample#memory_swap=0.00MB sample#memory_pgpgin=34691pages sample#memory_pgpgout=9950pages sample#memory_quota=512.00MB
2019-09-28T23:03:21.327298+00:00 app[web.1]: DEPRECATION WARNING: Including LoggerSilence is deprecated and will be removed in Rails 6.1. Please use `ActiveSupport::LoggerSilence` instead (called from <main> at /app/config/application.rb:7)
2019-09-28T23:03:21.356216+00:00 app[web.1]: => Booting Puma
2019-09-28T23:03:21.356221+00:00 app[web.1]: => Rails 6.0.0 application starting in production
2019-09-28T23:03:21.356223+00:00 app[web.1]: => Run `rails server --help` for more startup options
2019-09-28T23:03:22.441468+00:00 app[web.1]: Exiting
2019-09-28T23:03:22.441762+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.0/lib/active_support/message_encryptor.rb:206:in `rescue in _decrypt': ActiveSupport::MessageEncryptor::InvalidMessage (ActiveSupport::MessageEncryptor::InvalidMessage)
2019-09-28T23:03:22.441792+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.0/lib/active_support/message_encryptor.rb:183:in `_decrypt'
2019-09-28T23:03:22.441823+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.0/lib/active_support/message_encryptor.rb:157:in `decrypt_and_verify'
2019-09-28T23:03:22.441853+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.0/lib/active_support/messages/rotator.rb:21:in `decrypt_and_verify'
2019-09-28T23:03:22.441879+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.0/lib/active_support/encrypted_file.rb:80:in `decrypt'
2019-09-28T23:03:22.441907+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.0/lib/active_support/encrypted_file.rb:43:in `read'
2019-09-28T23:03:22.441936+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.0/lib/active_support/encrypted_configuration.rb:21:in `read'
2019-09-28T23:03:22.441963+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.0/lib/active_support/encrypted_configuration.rb:33:in `config'
2019-09-28T23:03:22.44199+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.0/lib/active_support/encrypted_configuration.rb:38:in `options'
2019-09-28T23:03:22.442017+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.0/lib/active_support/core_ext/module/delegation.rb:297:in `method_missing'
2019-09-28T23:03:22.442046+00:00 app[web.1]: from (erb):12:in `<main>'
2019-09-28T23:03:22.442074+00:00 app[web.1]: from /app/vendor/ruby-2.6.3/lib/ruby/2.6.0/erb.rb:901:in `eval'
2019-09-28T23:03:22.442102+00:00 app[web.1]: from /app/vendor/ruby-2.6.3/lib/ruby/2.6.0/erb.rb:901:in `result'
2019-09-28T23:03:22.442131+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activestorage-6.0.0/lib/active_storage/engine.rb:111:in `block (2 levels) in <class:Engine>'
2019-09-28T23:03:22.44216+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.0/lib/active_support/lazy_load_hooks.rb:72:in `class_eval'
2019-09-28T23:03:22.442189+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.0/lib/active_support/lazy_load_hooks.rb:72:in `block in execute_hook'
2019-09-28T23:03:22.442218+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.0/lib/active_support/lazy_load_hooks.rb:62:in `with_execution_control'
2019-09-28T23:03:22.442245+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.0/lib/active_support/lazy_load_hooks.rb:67:in `execute_hook'
2019-09-28T23:03:22.442273+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.0/lib/active_support/lazy_load_hooks.rb:52:in `block in run_load_hooks'
2019-09-28T23:03:22.442302+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.0/lib/active_support/lazy_load_hooks.rb:51:in `each'
2019-09-28T23:03:22.442333+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.0/lib/active_support/lazy_load_hooks.rb:51:in `run_load_hooks'
2019-09-28T23:03:22.442359+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activestorage-6.0.0/app/models/active_storage/blob.rb:278:in `<main>'
2019-09-28T23:03:22.442391+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require'
2019-09-28T23:03:22.442419+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi'
2019-09-28T23:03:22.442447+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
2019-09-28T23:03:22.442488+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require_with_bootsnap_lfi'
2019-09-28T23:03:22.442491+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
2019-09-28T23:03:22.442496+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.1.10/lib/zeitwerk/kernel.rb:16:in `require'
2019-09-28T23:03:22.442497+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.1.10/lib/zeitwerk/loader.rb:355:in `const_get'
2019-09-28T23:03:22.442499+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.1.10/lib/zeitwerk/loader.rb:355:in `block (2 levels) in eager_load'
2019-09-28T23:03:22.442518+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.1.10/lib/zeitwerk/loader.rb:679:in `block in ls'
2019-09-28T23:03:22.44252+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.1.10/lib/zeitwerk/loader.rb:676:in `foreach'
2019-09-28T23:03:22.442525+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.1.10/lib/zeitwerk/loader.rb:676:in `ls'
2019-09-28T23:03:22.442528+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.1.10/lib/zeitwerk/loader.rb:346:in `block in eager_load'
2019-09-28T23:03:22.442529+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.1.10/lib/zeitwerk/loader.rb:338:in `synchronize'
2019-09-28T23:03:22.442531+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.1.10/lib/zeitwerk/loader.rb:338:in `eager_load'
2019-09-28T23:03:22.442533+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.1.10/lib/zeitwerk/loader.rb:449:in `each'
2019-09-28T23:03:22.442538+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.1.10/lib/zeitwerk/loader.rb:449:in `eager_load_all'
2019-09-28T23:03:22.44254+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-6.0.0/lib/rails/application/finisher.rb:122:in `block in <module:Finisher>'
2019-09-28T23:03:22.442542+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-6.0.0/lib/rails/initializable.rb:32:in `instance_exec'
2019-09-28T23:03:22.442546+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-6.0.0/lib/rails/initializable.rb:32:in `run'
2019-09-28T23:03:22.442548+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-6.0.0/lib/rails/initializable.rb:61:in `block in run_initializers'
2019-09-28T23:03:22.442572+00:00 app[web.1]: from /app/vendor/ruby-2.6.3/lib/ruby/2.6.0/tsort.rb:228:in `block in tsort_each'
2019-09-28T23:03:22.442574+00:00 app[web.1]: from /app/vendor/ruby-2.6.3/lib/ruby/2.6.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
2019-09-28T23:03:22.442577+00:00 app[web.1]: from /app/vendor/ruby-2.6.3/lib/ruby/2.6.0/tsort.rb:431:in `each_strongly_connected_component_from'
2019-09-28T23:03:22.44258+00:00 app[web.1]: from /app/vendor/ruby-2.6.3/lib/ruby/2.6.0/tsort.rb:349:in `block in each_strongly_connected_component'
2019-09-28T23:03:22.442584+00:00 app[web.1]: from /app/vendor/ruby-2.6.3/lib/ruby/2.6.0/tsort.rb:347:in `each'
2019-09-28T23:03:22.442602+00:00 app[web.1]: from /app/vendor/ruby-2.6.3/lib/ruby/2.6.0/tsort.rb:347:in `call'
2019-09-28T23:03:22.442604+00:00 app[web.1]: from /app/vendor/ruby-2.6.3/lib/ruby/2.6.0/tsort.rb:347:in `each_strongly_connected_component'
2019-09-28T23:03:22.442607+00:00 app[web.1]: from /app/vendor/ruby-2.6.3/lib/ruby/2.6.0/tsort.rb:226:in `tsort_each'
2019-09-28T23:03:22.44261+00:00 app[web.1]: from /app/vendor/ruby-2.6.3/lib/ruby/2.6.0/tsort.rb:205:in `tsort_each'
2019-09-28T23:03:22.442613+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-6.0.0/lib/rails/initializable.rb:60:in `run_initializers'
2019-09-28T23:03:22.442664+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-6.0.0/lib/rails/application.rb:363:in `initialize!'
2019-09-28T23:03:22.442666+00:00 app[web.1]: from /app/config/environment.rb:5:in `<main>'
2019-09-28T23:03:22.442668+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require'
2019-09-28T23:03:22.44267+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi'
2019-09-28T23:03:22.442671+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
2019-09-28T23:03:22.442673+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require_with_bootsnap_lfi'
2019-09-28T23:03:22.442674+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
2019-09-28T23:03:22.442676+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.1.10/lib/zeitwerk/kernel.rb:23:in `require'
2019-09-28T23:03:22.442677+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.0/lib/active_support/dependencies.rb:325:in `block in require'
2019-09-28T23:03:22.442681+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.0/lib/active_support/dependencies.rb:291:in `load_dependency'
2019-09-28T23:03:22.442683+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.0/lib/active_support/dependencies.rb:325:in `require'
2019-09-28T23:03:22.442684+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:48:in `require_relative'
2019-09-28T23:03:22.442686+00:00 app[web.1]: from config.ru:3:in `block in <main>'
2019-09-28T23:03:22.442687+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/rack-2.0.7/lib/rack/builder.rb:55:in `instance_eval'
2019-09-28T23:03:22.442691+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/rack-2.0.7/lib/rack/builder.rb:55:in `initialize'
2019-09-28T23:03:22.442692+00:00 app[web.1]: from config.ru:in `new'
2019-09-28T23:03:22.442694+00:00 app[web.1]: from config.ru:in `<main>'
2019-09-28T23:03:22.442697+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/rack-2.0.7/lib/rack/builder.rb:49:in `eval'
2019-09-28T23:03:22.4427+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/rack-2.0.7/lib/rack/builder.rb:49:in `new_from_string'
2019-09-28T23:03:22.442725+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/rack-2.0.7/lib/rack/builder.rb:40:in `parse_file'
2019-09-28T23:03:22.442727+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/rack-2.0.7/lib/rack/server.rb:319:in `build_app_and_options_from_config'
2019-09-28T23:03:22.442732+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/rack-2.0.7/lib/rack/server.rb:219:in `app'
2019-09-28T23:03:22.442735+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/rack-2.0.7/lib/rack/server.rb:354:in `wrapped_app'
2019-09-28T23:03:22.44274+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/rack-2.0.7/lib/rack/server.rb:283:in `start'
2019-09-28T23:03:22.442742+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-6.0.0/lib/rails/commands/server/server_command.rb:39:in `start'
2019-09-28T23:03:22.442746+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-6.0.0/lib/rails/commands/server/server_command.rb:147:in `block in perform'
2019-09-28T23:03:22.44275+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-6.0.0/lib/rails/commands/server/server_command.rb:138:in `tap'
2019-09-28T23:03:22.442755+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-6.0.0/lib/rails/commands/server/server_command.rb:138:in `perform'
2019-09-28T23:03:22.442758+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/command.rb:27:in `run'
2019-09-28T23:03:22.442761+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/invocation.rb:126:in `invoke_command'
2019-09-28T23:03:22.442764+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor.rb:387:in `dispatch'
2019-09-28T23:03:22.442784+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-6.0.0/lib/rails/command/base.rb:65:in `perform'
2019-09-28T23:03:22.442786+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-6.0.0/lib/rails/command.rb:46:in `invoke'
2019-09-28T23:03:22.4428+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/railties-6.0.0/lib/rails/commands.rb:18:in `<main>'
2019-09-28T23:03:22.442801+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require'
The key value in Heroku was wrong.

Ruby/Heroku "no such load"

My Heroku app recently crashed after a minor cosmetic change (just added media requests in my css for phone viewing). This resulted in a "no such file to load" error which appear to be quite common but they all seem to have a different solution so I'll post mine. The file in question is:
/app/app/assets/images/config/environment (LoadError)
Here is the stack trace with the error at the top:
2015-02-24T18:23:12.318754+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:247:in `require': No such file to load -- /app/app/assets/images/config/environment (LoadError)
2015-02-24T18:23:12.318769+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:348:in `require_or_load'
2015-02-24T18:23:12.312235+00:00 app[web.1]: Exiting
2015-02-24T18:23:12.318758+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:232:in `load_dependency'
2015-02-24T18:23:12.318763+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:247:in `require'
2015-02-24T18:23:12.318765+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:247:in `block in require'
2015-02-24T18:23:12.318766+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:232:in `load_dependency'
2015-02-24T18:23:12.318768+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:247:in `require'
2015-02-24T18:23:12.318771+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:307:in `depend_on'
2015-02-24T18:23:12.318773+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:225:in `require_dependency'
2015-02-24T18:23:12.318775+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.4/lib/rails/engine.rb:468:in `block (2 levels) in eager_load!'
2015-02-24T18:23:12.318776+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.4/lib/rails/engine.rb:467:in `each'
2015-02-24T18:23:12.318778+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.4/lib/rails/engine.rb:467:in `block in eager_load!'
2015-02-24T18:23:12.318793+00:00 app[web.1]: from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:183:in `block (2 levels) in each_strongly_connected_component'
2015-02-24T18:23:12.318807+00:00 app[web.1]: from /app/config.ru:3:in `block in <main>'
2015-02-24T18:23:12.318822+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:199:in `app'
2015-02-24T18:23:12.318824+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.4/lib/rails/commands/server.rb:50:in `app'
2015-02-24T18:23:12.318829+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.4/lib/rails/commands/commands_tasks.rb:81:in `block in server'
2015-02-24T18:23:12.318831+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.4/lib/rails/commands/commands_tasks.rb:76:in `tap'
2015-02-24T18:23:12.318832+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.4/lib/rails/commands/commands_tasks.rb:76:in `server'
2015-02-24T18:23:12.318833+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.4/lib/rails/commands/commands_tasks.rb:40:in `run_command!'
2015-02-24T18:23:12.318835+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.4/lib/rails/commands.rb:17:in `<top (required)>'
2015-02-24T18:23:12.318836+00:00 app[web.1]: from bin/rails:8:in `require'
2015-02-24T18:23:12.318784+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.4/lib/rails/application/finisher.rb:58:in `each'
2015-02-24T18:23:12.318790+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.4/lib/rails/initializable.rb:55:in `block in run_initializers'
2015-02-24T18:23:12.318794+00:00 app[web.1]: from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:219:in `each_strongly_connected_component_from'
2015-02-24T18:23:12.318799+00:00 app[web.1]: from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:180:in `each_strongly_connected_component'
2015-02-24T18:23:12.318801+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.4/lib/rails/initializable.rb:54:in `run_initializers'
2015-02-24T18:
Currently using rails 4.1.4, I made no change to the config.ru/environment.rb files and a change was not made to my Gemfile. Not sure what is going on.

Ruby on Rails and Heroku "App Crashed"

I've gone through MANY forum posts about this exact problem and I have not found a solution.
App works locally but not on Heroku.
http://majorleaguebetting.herokuapp.com/
What am I missing??!!
Heroku Logs:
searoth#searoth-VB:~/Desktop/rails_projects/MajorLeagueBetting$ heroku logs
2013-04-01T20:14:26+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/thin/runner.rb:187:in `run_command'
2013-04-01T20:14:26+00:00 app[web.1]: from config.ru:1:in `<main>'
2013-04-01T20:14:26+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/thin/controllers/controller.rb:71:in `start'
2013-04-01T20:14:26+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/thin/runner.rb:152:in `run!'
2013-04-01T20:14:26+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/bin/thin:6:in `<top (required)>'
2013-04-01T20:14:26+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/bin/thin:19:in `load'
2013-04-01T20:14:26+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/bin/thin:19:in `<main>'
2013-04-01T20:14:28+00:00 heroku[web.1]: Process exited with status 1
2013-04-01T20:14:28+00:00 heroku[web.1]: State changed from starting to crashed
2013-04-01T20:24:39+00:00 heroku[web.1]: State changed from crashed to starting
2013-04-01T20:24:42+00:00 heroku[web.1]: Starting process with command `bundle exec thin start -R config.ru -e $RAILS_ENV -p 34898`
2013-04-01T20:24:48+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 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)
2013-04-01T20:24:48+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 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)
2013-04-01T20:24:52+00:00 app[web.1]: Connecting to database specified by DATABASE_URL
2013-04-01T20:24:53+00:00 app[web.1]: from /app/app/models/head2head_bet.rb:8:in `<top (required)>'
2013-04-01T20:24:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency'
2013-04-01T20:24:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
2013-04-01T20:24:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/dynamic_matchers.rb:55:in `method_missing': undefined local variable or method `current_user' for Head2headBet(Table doesn't exist):Class (NameError)
2013-04-01T20:24:53+00:00 app[web.1]: from /app/app/models/head2head_bet.rb:12:in `<class:Head2headBet>'
2013-04-01T20:24:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
2013-04-01T20:24:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `block in require'
2013-04-01T20:24:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:313:in `depend_on'
2013-04-01T20:24:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/initializable.rb:30:in `instance_exec'
2013-04-01T20:24:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/initializable.rb:30:in `run'
2013-04-01T20:24:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:359:in `require_or_load'
2013-04-01T20:24:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/engine.rb:436:in `eager_load!'
2013-04-01T20:24:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/engine.rb:436:in `each'
2013-04-01T20:24:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/application/finisher.rb:53:in `block in <module:Finisher>'
2013-04-01T20:24:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:225:in `require_dependency'
2013-04-01T20:24:53+00:00 app[web.1]: 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!'
2013-04-01T20:24:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/engine.rb:438:in `each'
2013-04-01T20:24:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/engine.rb:438:in `block in eager_load!'
2013-04-01T20:24:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/railtie/configurable.rb:30:in `method_missing'
2013-04-01T20:24:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/application.rb:136:in `initialize!'
2013-04-01T20:24:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/initializable.rb:54:in `each'
2013-04-01T20:24:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/initializable.rb:54:in `run_initializers'
2013-04-01T20:24:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/initializable.rb:55:in `block in run_initializers'
2013-04-01T20:24:53+00:00 app[web.1]: from config.ru:3:in `require'
2013-04-01T20:24:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.5/lib/rack/builder.rb:51:in `instance_eval'
2013-04-01T20:24:53+00:00 app[web.1]: from config.ru:3:in `block in <main>'
2013-04-01T20:24:53+00:00 app[web.1]: from /app/config/environment.rb:5:in `<top (required)>'
2013-04-01T20:24:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.5/lib/rack/builder.rb:51:in `initialize'
2013-04-01T20:24:53+00:00 app[web.1]: from config.ru:1:in `new'
2013-04-01T20:24:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/rack/adapter/loader.rb:33:in `eval'
2013-04-01T20:24:53+00:00 app[web.1]: from config.ru:1:in `<main>'
2013-04-01T20:24:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/thin/controllers/controller.rb:71:in `start'
2013-04-01T20:24:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/thin/controllers/controller.rb:181:in `load_rackup_config'
2013-04-01T20:24:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/rack/adapter/loader.rb:33:in `load'
2013-04-01T20:24:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/bin/thin:19:in `load'
2013-04-01T20:24:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/thin/runner.rb:187:in `run_command'
2013-04-01T20:24:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/thin/runner.rb:152:in `run!'
2013-04-01T20:24:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/bin/thin:6:in `<top (required)>'
2013-04-01T20:24:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/bin/thin:19:in `<main>'
2013-04-01T20:24:54+00:00 heroku[web.1]: State changed from starting to crashed
2013-04-01T20:24:54+00:00 heroku[web.1]: Process exited with status 1
2013-04-01T20:34:59+00:00 heroku[web.1]: State changed from crashed to starting
2013-04-01T20:35:01+00:00 heroku[web.1]: Starting process with command `bundle exec thin start -R config.ru -e $RAILS_ENV -p 15944`
2013-04-01T20:35:04+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 Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for mo
re 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)
2013-04-01T20:35:04+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 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)
2013-04-01T20:35:08+00:00 app[web.1]: Connecting to database specified by DATABASE_URL
2013-04-01T20:35:08+00:00 app[web.1]: from /app/app/models/head2head_bet.rb:12:in `<class:Head2headBet>'
2013-04-01T20:35:08+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `block in require'
2013-04-01T20:35:08+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
2013-04-01T20:35:08+00:00 app[web.1]: from /app/app/models/head2head_bet.rb:8:in `<top (required)>'
2013-04-01T20:35:08+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency'
2013-04-01T20:35:08+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/dynamic_matchers.rb:55:in `method_missing': undefined local variable or method `current_user' for Head2headBet(Table doesn't exist):Class (NameError)
2013-04-01T20:35:08+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
2013-04-01T20:35:08+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:359:in `require_or_load'
2013-04-01T20:35:08+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:313:in `depend_on'
2013-04-01T20:35:08+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:225:in `require_dependency'
2013-04-01T20:35:08+00:00 app[web.1]: 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!'
2013-04-01T20:35:08+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/engine.rb:438:in `each'
2013-04-01T20:35:08+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/engine.rb:438:in `block in eager_load!'
2013-04-01T20:35:08+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/initializable.rb:30:in `instance_exec'
2013-04-01T20:35:08+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/engine.rb:436:in `eager_load!'
2013-04-01T20:35:08+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/engine.rb:436:in `each'
2013-04-01T20:35:08+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/application/finisher.rb:53:in `block in <module:Finisher>'
2013-04-01T20:35:08+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/initializable.rb:30:in `run'
2013-04-01T20:35:08+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/initializable.rb:55:in `block in run_initializers'
2013-04-01T20:35:08+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/initializable.rb:54:in `each'
2013-04-01T20:35:08+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/initializable.rb:54:in `run_initializers'
2013-04-01T20:35:08+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/application.rb:136:in `initialize!'
2013-04-01T20:35:08+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/railtie/configurable.rb:30:in `method_missing'
2013-04-01T20:35:08+00:00 app[web.1]: from /app/config/environment.rb:5:in `<top (required)>'
2013-04-01T20:35:08+00:00 app[web.1]: from config.ru:3:in `require'
2013-04-01T20:35:08+00:00 app[web.1]: from config.ru:3:in `block in <main>'
2013-04-01T20:35:08+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.5/lib/rack/builder.rb:51:in `initialize'
2013-04-01T20:35:08+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.5/lib/rack/builder.rb:51:in `instance_eval'
2013-04-01T20:35:08+00:00 app[web.1]: from config.ru:1:in `new'
2013-04-01T20:35:08+00:00 app[web.1]: from config.ru:1:in `<main>'
2013-04-01T20:35:08+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/rack/adapter/loader.rb:33:in `eval'
2013-04-01T20:35:08+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/rack/adapter/loader.rb:33:in `load'
2013-04-01T20:35:08+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/thin/controllers/controller.rb:181:in `load_rackup_config'
2013-04-01T20:35:08+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/thin/controllers/controller.rb:71:in `start'
2013-04-01T20:35:08+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/thin/runner.rb:187:in `run_command'
2013-04-01T20:35:08+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/thin/runner.rb:152:in `run!'
2013-04-01T20:35:08+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/bin/thin:19:in `load'
2013-04-01T20:35:08+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/bin/thin:6:in `<top (required)>'
2013-04-01T20:35:08+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/bin/thin:19:in `<main>'
2013-04-01T20:35:10+00:00 heroku[web.1]: Process exited with status 1
2013-04-01T20:35:10+00:00 heroku[web.1]: State changed from starting to crashed
Here is the gemfile
source 'http://rubygems.org'
gem 'rails', '3.2.13'
gem 'railties', '3.2.13'
gem 'execjs'
gem 'therubyracer', '0.11.4'
gem 'jquery-rails'
gem 'nokogiri', '1.5.0'
gem "colorbox-rails", "~> 0.0.7"
gem 'formtastic'
gem 'tabletastic'
gem "paperclip", "~> 2.4"
gem 'faker', '0.3.1'
gem 'thin'
gem 'pg'
group :assets do
gem 'sass-rails'
gem 'coffee-rails'
gem 'uglifier'
end
gem 'sqlite3', :group => [:development, :test]
group :development, :test do
gem 'rspec-rails', '~> 2.6'
gem 'annotate', :git => 'git://github.com/ctran/annotate_models.git'
end
group :test do
gem 'rspec-rails', '~> 2.6'
# Pretty printed test output
gem 'turn', :require => false
gem 'factory_girl_rails', '1.0'
end
group :production do
gem 'thin'
gem 'pg'
end
Looks like you have forgotten to migrate
heroku run rake db:migrate
the clue is in
/app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/dynamic_matchers.rb:55:in `method_missing': undefined local variable or method `current_user' for Head2headBet(Table doesn't exist):Class (NameError)
2013-04-01T20:24:53+00:00 app[web.1]: from /app/app/models/head2head_bet.rb:12:in `'
Depending on the state of your database you may try any of the following commands
heroku run rake db:migrate
heroku run rake db:reset # WARNING DESTRUCTIVE
heroku run rake db:setup # WARNING DESTRUCTIVE
as John Baynon said, the clue is in table doesnt exist line

Railstutorial - App is working fine on local server but when I push to heroku I get application error

I'm doing the railstutorial by mike hartl and so far it's going well. How ever I'm stuck on lesson 7 conclusion.
I have basically got everything working, all rsync tests are passing and everything is working. I commit and push to GIT then push to heroko.
I use heroku open to open my app and the page that comes up gives me 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.
Here are my heroku logs:
[sample_app (master)]$ heroku logs
2011-07-08T12:08:04+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.9/lib/rails/application.rb:108:in `eager_load!'
2011-07-08T12:08:04+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.9/lib/rails/application/finisher.rb:41:in `block in <module:Finisher>'
2011-07-08T12:08:04+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.9/lib/rails/initializable.rb:25:in `instance_exec'
2011-07-08T12:08:04+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.9/lib/rails/initializable.rb:25:in `run'
2011-07-08T12:08:04+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.9/lib/rails/initializable.rb:50:in `block in run_initializers'
2011-07-08T12:08:04+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.9/lib/rails/initializable.rb:49:in `each'
2011-07-08T12:08:04+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.9/lib/rails/initializable.rb:49:in `run_initializers'
2011-07-08T12:08:04+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.9/lib/rails/application.rb:134:in `initialize!'
2011-07-08T12:08:04+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.9/lib/rails/application.rb:77:in `method_missing'
2011-07-08T12:08:04+00:00 app[web.1]: from /app/config/environment.rb:5:in `<top (required)>'
2011-07-08T12:08:04+00:00 app[web.1]: from <internal:lib/rubygems/custom_require>:29:in `require'
2011-07-08T12:08:04+00:00 app[web.1]: from <internal:lib/rubygems/custom_require>:29:in `require'
2011-07-08T12:08:04+00:00 app[web.1]: from config.ru:3:in `block (3 levels) in <main>'
2011-07-08T12:08:04+00:00 app[web.1]: from /home/heroku_rack/heroku.ru:23:in `ev
2011-07-08T12:08:04+00:00 app[web.1]: from /home/heroku_rack/heroku.ru:18:in `block (2 levels) in <main>'
2011-07-08T12:08:04+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/rack-1.2.3/lib/rack/builder.rb:46:in `instance_eval'
2011-07-08T12:08:04+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/rack-1.2.3/lib/rack/builder.rb:46:in `initialize'
2011-07-08T12:08:04+00:00 app[web.1]: from /home/heroku_rack/heroku.ru:11:in `new'
2011-07-08T12:08:04+00:00 app[web.1]: from /home/heroku_rack/heroku.ru:11:in `block in <main>'
2011-07-08T12:08:04+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/rack-1.2.3/lib/rack/builder.rb:46:in `instance_eval'
2011-07-08T12:08:04+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/rack-1.2.3/lib/rack/builder.rb:46:in `initialize'
2011-07-08T12:08:04+00:00 app[web.1]: from /home/heroku_rack/heroku.ru:1:in `new'
2011-07-08T12:08:04+00:00 app[web.1]: from /home/heroku_rack/heroku.ru:1:in `<main>'
2011-07-08T12:08:04+00:00 app[web.1]: from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/rack/adapter/loader.rb:36:in `eval'
2011-07-08T12:08:04+00:00 app[web.1]: from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/rack/adapter/loader.rb:36:in `load'
2011-07-08T12:08:04+00:00 app[web.1]: from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/thin/controllers/controller.rb:175:in `load_rackup_config'
2011-07-08T12:08:04+00:00 app[web.1]: from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/thin/controllers/controller.rb:65:in `start'
2011-07-08T12:08:04+00:00 app[web.1]: from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/thin/runner.rb:177:in `run_command'
2011-07-08T12:08:04+00:00 app[web.1]: from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/thin/runner.rb:143:in `run!'
2011-07-08T12:08:04+00:00 app[web.1]: from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/bin/thin:6:in `<top (required)>'
2011-07-08T12:08:04+00:00 app[web.1]: from /usr/ruby1.9.2/bin/thin:19:in `load'
2011-07-08T12:08:04+00:00 heroku[web.1]: Process exited
2011-07-08T12:08:05+00:00 heroku[web.1]: State changed from starting to crashed
2011-07-08T12:18:20+00:00 heroku[web.1]: State changed from crashed to created
2011-07-08T12:18:20+00:00 heroku[web.1]: State changed from created to starting
2011-07-08T12:18:43+00:00 heroku[web.1]: Starting process with command: `thin -p 16326 -e production -R /home/heroku_rack/heroku.ru start`
2011-07-08T12:18:47+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:304:in `rescue in depend_on': Missing helper file helpers/factory_girl.rb (LoadError)
2011-07-08T12:18:47+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:299:in `depend_on'
2011-07-08T12:18:47+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:216:in `require_dependency'
2011-07-08T12:18:47+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/actionpack-3.0.9/lib/abstract_controller/helpers.rb:148:in `block in modules_for_helpers'
2011-07-08T12:18:47+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/actionpack-3.0.9/lib/abstract_controller/helpers.rb:144:in `map!'
2011-07-08T12:18:47+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/actionpack-3.0.9/lib/abstract_controller/helpers.rb:144:in `modules_for_helpers'
2011-07-08T12:18:47+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/actionpack-3.0.9/lib/action_controller/metal/helpers.rb:101:in `modules_for_helpers'
2011-07-08T12:18:47+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/actionpack-3.0.9/lib/abstract_controller/helpers.rb:97:in `helper'
2011-07-08T12:18:47+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/actionpack-3.0.9/lib/action_controller/base.rb:228:in `inherited'
2011-07-08T12:18:47+00:00 app[web.1]: from /app/app/controllers/application_controller.rb:1:in `<top (required)>'
2011-07-08T12:18:47+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:239:in `require'
2011-07-08T12:18:47+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:239:in `block in require'
2011-07-08T12:18:47+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:227:in `load_dependency'
2011-07-08T12:18:47+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:239:in `require'
2011-07-08T12:18:47+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:346:in `require_or_load'
2011-07-08T12:18:47+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:300:in `depend_on'
2011-07-08T12:18:47+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:216:in `require_dependency'
2011-07-08T12:18:47+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.9/lib/rails/engine.rb:138:in `block (2 levels) in eager_load!'
2011-07-08T12:18:47+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.9/lib/rails/engine.rb:137:in `each'
2011-07-08T12:18:47+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.9/lib/rails/engine.rb:137:in `block in eager_load!'
2011-07-08T12:18:47+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.9/lib/rails/engine.rb:135:in `each'
2011-07-08T12:18:47+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.9/lib/rails/engine.rb:135:in `eager_load!'
2011-07-08T12:18:47+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.9/lib/rails/application.rb:108:in `eager_load!'
2011-07-08T12:18:47+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.9/lib/rails/application/finisher.rb:41:in `block in <module:Finisher>'
2011-07-08T12:18:47+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.9/lib/rails/initializable.rb:25:in `instance_exec'
2011-07-08T12:18:47+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.9/lib/rails/initializable.rb:25:in `run'
2011-07-08T12:18:47+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.9/lib/rails/initializable.rb:50:in `block in run_initializers'
2011-07-08T12:18:47+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.9/lib/rails/initializable.rb:49:in `each'
2011-07-08T12:18:47+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/rack-1.2.3/lib/rack/builder.rb:46:in `instance_eval'
2011-07-08T12:18:47+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/rack-1.2.3/lib/rack/builder.rb:46:in `initialize'
2011-07-08T12:18:47+00:00 app[web.1]: from /home/heroku_rack/heroku.ru:11:in `new'
2011-07-08T12:18:47+00:00 app[web.1]: from /home/heroku_rack/heroku.ru:11:in `block in <main>'
2011-07-08T12:18:47+00:00 heroku[web.1]: Process exited
2011-07-08T12:18:47+00:00 heroku[web.1]: State changed from starting to crashed
2011-07-08T12:28:34+00:00 heroku[web.1]: State changed from crashed to created
2011-07-08T12:28:34+00:00 heroku[web.1]: State changed from created to starting
2011-07-08T12:28:46+00:00 heroku[web.1]: Starting process with command: `thin -p 51125 -e production -R /home/heroku_rack/heroku.ru start`
2011-07-08T12:28:49+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:304:in `rescue in depend_on': No such file to load -- factory_girl (LoadError)
2011-07-08T12:28:49+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:299:in `depend_on'
2011-07-08T12:28:49+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:216:in `require_dependency'
2011-07-08T12:28:49+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.9/lib/rails/engine.rb:138:in `block (2 levels) in eager_load!'
2011-07-08T12:28:49+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.9/lib/rails/engine.rb:137:in `each'
2011-07-08T12:28:49+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.9/lib/rails/engine.rb:135:in `each'
2011-07-08T12:28:49+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.9/lib/rails/engine.rb:135:in `eager_load!'
2011-07-08T12:28:49+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.9/lib/rails/application.rb:108:in `eager_load!'
2011-07-08T12:28:49+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.9/lib/rails/application/finisher.rb:41:in `block in <module:Finisher>'
2011-07-08T12:28:49+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.9/lib/rails/initializable.rb:25:in `instance_exec'
2011-07-08T12:28:49+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.9/lib/rails/initializable.rb:25:in `run'
2011-07-08T12:28:49+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.9/lib/rails/initializable.rb:50:in `block in run_initializers'
2011-07-08T12:28:49+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.9/lib/rails/initializable.rb:49:in `each'
2011-07-08T12:28:49+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.9/lib/rails/initializable.rb:49:in `run_initializers'
2011-07-08T12:28:49+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.9/lib/rails/application.rb:134:in `initialize!'
2011-07-08T12:28:49+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.9/lib/rails/application.rb:77:in `method_missing'
2011-07-08T12:28:49+00:00 app[web.1]: from /app/config/environment.rb:5:in `<top (required)>'
2011-07-08T12:28:49+00:00 app[web.1]: from <internal:lib/rubygems/custom_require>:29:in `require'
2011-07-08T12:28:49+00:00 app[web.1]: from <internal:lib/rubygems/custom_require>:29:in `require'
2011-07-08T12:28:49+00:00 app[web.1]: from config.ru:3:in `block (3 levels) in <main>'
2011-07-08T12:28:49+00:00 app[web.1]: from /home/heroku_rack/heroku.ru:23:in `eval'
2011-07-08T12:28:49+00:00 app[web.1]: from /home/heroku_rack/heroku.ru:23:in `block (3 levels) in <main>'
2011-07-08T12:28:49+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/rack-1.2.3/lib/rack/builder.rb:46:in `instance_eval'
2011-07-08T12:28:49+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/rack-1.2.3/lib/rack/builder.rb:46:in `initialize'
2011-07-08T12:28:49+00:00 heroku[web.1]: Process exited
2011-07-08T12:28:50+00:00 heroku[web.1]: State changed from starting to crashed
Are you sure you have your factory_girl.rb in the helpers directory? Is your Gemfile up2date?
It may be possible it's not tracked yet, thus your push ignored it.

Resources