git - Rails App doesn't work in Heroku with Postgresql data -


i've been working rails application , integration heroku. unfortunately, cannot make run , not understand error is.

when push committed application heroku git push heroku master, no error shown. however, when run heroku logs this:

    virtualbox:~/workspace/pos_app$ heroku logs     2015-06-10t17:05:35.675792+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:274:in `require'     2015-06-10t17:05:35.675795+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:274:in `block in require'     2015-06-10t17:05:35.675797+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:240:in `load_dependency'     2015-06-10t17:05:35.675800+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:274:in `require'     2015-06-10t17:05:35.675801+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/dependencies/autoload.rb:70:in `block in eager_load!'     2015-06-10t17:05:35.675809+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/dependencies/autoload.rb:70:in `each_value'     2015-06-10t17:05:35.675818+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/dependencies/autoload.rb:70:in `eager_load!'     2015-06-10t17:05:35.675820+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.1/lib/active_record.rb:158:in `eager_load!'     2015-06-10t17:05:35.675821+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.1/lib/rails/application/finisher.rb:56:in `each'     2015-06-10t17:05:35.675824+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.1/lib/rails/application/finisher.rb:56:in `block in <module:finisher>'     2015-06-10t17:05:35.675826+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.1/lib/rails/initializable.rb:30:in `instance_exec'     2015-06-10t17:05:35.675828+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.1/lib/rails/initializable.rb:30:in `run'     2015-06-10t17:05:35.675830+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.1/lib/rails/initializable.rb:55:in `block in run_initializers'     2015-06-10t17:05:35.675832+00:00 app[web.1]:    /app/vendor/ruby-2.2.2/lib/ruby/2.2.0/tsort.rb:226:in `block in tsort_each'     2015-06-10t17:05:35.675835+00:00 app[web.1]:    /app/vendor/ruby-2.2.2/lib/ruby/2.2.0/tsort.rb:348:in `block (2 levels) in each_strongly_connected_component'     2015-06-10t17:05:35.675838+00:00 app[web.1]:    /app/vendor/ruby-2.2.2/lib/ruby/2.2.0/tsort.rb:429:in `each_strongly_connected_component_from'     2015-06-10t17:05:35.675841+00:00 app[web.1]:    /app/vendor/ruby-2.2.2/lib/ruby/2.2.0/tsort.rb:347:in `block in each_strongly_connected_component'     2015-06-10t17:05:35.675844+00:00 app[web.1]:    /app/vendor/ruby-2.2.2/lib/ruby/2.2.0/tsort.rb:345:in `each'     2015-06-10t17:05:35.675847+00:00 app[web.1]:    /app/vendor/ruby-2.2.2/lib/ruby/2.2.0/tsort.rb:345:in `call'     2015-06-10t17:05:35.675850+00:00 app[web.1]:    /app/vendor/ruby-2.2.2/lib/ruby/2.2.0/tsort.rb:345:in `each_strongly_connected_component'     2015-06-10t17:05:35.675851+00:00 app[web.1]:    /app/vendor/ruby-2.2.2/lib/ruby/2.2.0/tsort.rb:224:in `tsort_each'     2015-06-10t17:05:35.675854+00:00 app[web.1]:    /app/vendor/ruby-2.2.2/lib/ruby/2.2.0/tsort.rb:203:in `tsort_each'     2015-06-10t17:05:35.675857+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.1/lib/rails/initializable.rb:54:in `run_initializers'     2015-06-10t17:05:35.675860+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.1/lib/rails/application.rb:352:in `initialize!'     2015-06-10t17:05:35.675863+00:00 app[web.1]:    /app/config/environment.rb:5:in `<top (required)>'     2015-06-10t17:05:35.675866+00:00 app[web.1]:    config.ru:3:in `require'     2015-06-10t17:05:35.675870+00:00 app[web.1]:    config.ru:3:in `block in <main>'     2015-06-10t17:05:35.675873+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.2.0/gems/rack-1.6.1/lib/rack/builder.rb:55:in `instance_eval'     2015-06-10t17:05:35.675874+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.2.0/gems/rack-1.6.1/lib/rack/builder.rb:55:in `initialize'     2015-06-10t17:05:35.675877+00:00 app[web.1]:    config.ru:in `new'     2015-06-10t17:05:35.675879+00:00 app[web.1]:    config.ru:in `<main>'     2015-06-10t17:05:35.675903+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.2.0/gems/rack-1.6.1/lib/rack/builder.rb:49:in `eval'     2015-06-10t17:05:35.675904+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.2.0/gems/rack-1.6.1/lib/rack/builder.rb:49:in `new_from_string'     2015-06-10t17:05:35.675908+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.2.0/gems/rack-1.6.1/lib/rack/builder.rb:40:in `parse_file'     2015-06-10t17:05:35.675909+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.2.0/gems/puma-2.11.3/lib/puma/configuration.rb:102:in `load_rackup'     2015-06-10t17:05:35.675910+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.2.0/gems/puma-2.11.3/lib/puma/configuration.rb:69:in `app'     2015-06-10t17:05:35.675913+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.2.0/gems/puma-2.11.3/lib/puma/runner.rb:113:in `load_and_bind'     2015-06-10t17:05:35.675914+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.2.0/gems/puma-2.11.3/lib/puma/cluster.rb:302:in `run'     2015-06-10t17:05:35.675917+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.2.0/gems/puma-2.11.3/lib/puma/cli.rb:216:in `run'     2015-06-10t17:05:35.675920+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.2.0/gems/puma-2.11.3/bin/puma:10:in `<top (required)>'     2015-06-10t17:05:35.675923+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.2.0/bin/puma:23:in `load'     2015-06-10t17:05:35.675926+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.2.0/bin/puma:23:in `<main>'     2015-06-10t17:05:36.774443+00:00 heroku[web.1]: process exited status 1     2015-06-10t17:05:36.794597+00:00 heroku[web.1]: state changed starting crashed     2015-06-10t17:05:49.522649+00:00 heroku[api]: starting process command `bundle exec rake db:migrate` email@gmail.com     2015-06-10t17:05:59.485938+00:00 heroku[run.7357]: starting process command `bundle exec rake db:migrate`     2015-06-10t17:05:59.445559+00:00 heroku[run.7357]: awaiting client     2015-06-10t17:05:59.741492+00:00 heroku[run.7357]: state changed starting     2015-06-10t17:06:07.632329+00:00 heroku[run.7357]: process exited status 1     2015-06-10t17:06:07.665078+00:00 heroku[run.7357]: state changed complete     2015-06-10t17:08:30.495088+00:00 heroku[api]: deploy 35a2410 email@gmail.com     2015-06-10t17:08:30.495088+00:00 heroku[api]: release v15 created email@gmail.com     2015-06-10t17:08:30.539114+00:00 heroku[slug-compiler]: slug compilation started     2015-06-10t17:08:30.539133+00:00 heroku[slug-compiler]: slug compilation finished     2015-06-10t17:08:30.580818+00:00 heroku[web.1]: state changed crashed starting     2015-06-10t17:08:34.526525+00:00 heroku[web.1]: starting process command `bundle exec puma -c config/puma.rb`     2015-06-10t17:08:36.744689+00:00 app[web.1]: [3] puma starting in cluster mode...     2015-06-10t17:08:36.744717+00:00 app[web.1]: [3] * version 2.11.3 (ruby 2.2.2-p95), codename: intrepid squirrel     2015-06-10t17:08:36.744720+00:00 app[web.1]: [3] * min threads: 1, max threads: 1     2015-06-10t17:08:36.744721+00:00 app[web.1]: [3] * environment: production     2015-06-10t17:08:36.744722+00:00 app[web.1]: [3] * process workers: 2     2015-06-10t17:08:36.744724+00:00 app[web.1]: [3] * preloading application     2015-06-10t17:08:38.472718+00:00 app[web.1]: [3] * listening on tcp://0.0.0.0:47758     2015-06-10t17:08:38.472941+00:00 app[web.1]: [3] use ctrl-c stop     2015-06-10t17:08:38.531559+00:00 app[web.1]: [3] - worker 0 (pid: 6) booted, phase: 0     2015-06-10t17:08:38.534482+00:00 app[web.1]: [3] - worker 1 (pid: 15) booted, phase: 0     2015-06-10t17:08:39.000466+00:00 heroku[web.1]: state changed starting     2015-06-10t17:09:44.303816+00:00 heroku[api]: starting process command `bundle exec rake db:migrate` email@gmail.com     2015-06-10t17:09:49.148168+00:00 heroku[run.5637]: awaiting client     2015-06-10t17:09:49.176487+00:00 heroku[run.5637]: starting process command `bundle exec rake db:migrate`     2015-06-10t17:09:49.585926+00:00 heroku[run.5637]: state changed starting     2015-06-10t17:09:53.540427+00:00 heroku[run.5637]: state changed complete     2015-06-10t17:09:53.527345+00:00 heroku[run.5637]: process exited status 0     2015-06-10t17:11:43.929962+00:00 heroku[slug-compiler]: slug compilation started     2015-06-10t17:11:43.929986+00:00 heroku[slug-compiler]: slug compilation finished     2015-06-10t17:11:43.876875+00:00 heroku[api]: deploy 47c178f email@gmail.com     2015-06-10t17:11:43.876875+00:00 heroku[api]: release v16 created email@gmail.com     2015-06-10t17:11:43.975129+00:00 heroku[web.1]: state changed starting     2015-06-10t17:11:46.814640+00:00 heroku[web.1]: stopping processes sigterm     2015-06-10t17:11:47.568542+00:00 app[web.1]: [3] - gracefully shutting down workers...     2015-06-10t17:11:47.947880+00:00 heroku[web.1]: starting process command `bundle exec puma -c config/puma.rb`     2015-06-10t17:11:48.044097+00:00 app[web.1]: [3] === puma shutdown: 2015-06-10 17:11:48 +0000 ===     2015-06-10t17:11:48.044172+00:00 app[web.1]: [3] - goodbye!     2015-06-10t17:11:49.268285+00:00 heroku[web.1]: process exited status 0     2015-06-10t17:11:50.192224+00:00 app[web.1]: [3] puma starting in cluster mode...     2015-06-10t17:11:50.192255+00:00 app[web.1]: [3] * version 2.11.3 (ruby 2.2.2-p95), codename: intrepid squirrel     2015-06-10t17:11:50.192257+00:00 app[web.1]: [3] * min threads: 1, max threads: 1     2015-06-10t17:11:50.192259+00:00 app[web.1]: [3] * environment: production     2015-06-10t17:11:50.192260+00:00 app[web.1]: [3] * process workers: 2     2015-06-10t17:11:50.192261+00:00 app[web.1]: [3] * preloading application     2015-06-10t17:11:52.132787+00:00 app[web.1]: [3] * listening on tcp://0.0.0.0:32784     2015-06-10t17:11:52.201822+00:00 app[web.1]: [3] - worker 0 (pid: 6) booted, phase: 0     2015-06-10t17:11:52.133044+00:00 app[web.1]: [3] use ctrl-c stop     2015-06-10t17:11:52.202150+00:00 app[web.1]: [3] - worker 1 (pid: 15) booted, phase: 0     2015-06-10t17:11:52.568030+00:00 heroku[web.1]: state changed starting     2015-06-10t17:11:54.381040+00:00 heroku[api]: starting process command `bundle exec rake db:migrate` email@gmail.com     2015-06-10t17:11:59.901204+00:00 heroku[run.8977]: awaiting client     2015-06-10t17:11:59.934828+00:00 heroku[run.8977]: starting process command `bundle exec rake db:migrate`     2015-06-10t17:12:00.194795+00:00 heroku[run.8977]: state changed starting     2015-06-10t17:12:07.507957+00:00 heroku[run.8977]: state changed complete     2015-06-10t17:12:07.494265+00:00 heroku[run.8977]: process exited status 0 

adding database.yml

    default: &default        adapter: postgresql           encoding: unicode       pool: 5      development:       <<: *default       database: pos_app_development       username: local_db_username       password: local_db_passw    test:         <<: *default        database: pos_app_test        production:         <<: *default           database: pos_app_production       username: pos_app       password: <%= env['pos_app_database_password'] %> 

and gemfile:

source 'https://rubygems.org'  gem 'rails', '4.2.1'  gem 'pg'  gem 'sass-rails', '~> 5.0'  gem 'uglifier', '>= 1.3.0'  gem 'coffee-rails', '~> 4.1.0'  gem 'jquery-rails'  gem 'turbolinks'  gem 'jbuilder', '~> 2.0'  gem 'sdoc', '~> 0.4.0', group: :doc  gem 'foundation-rails'  gem 'rails_12factor', group: :production  gem 'puma'  group :development, :test    gem 'byebug'    gem 'web-console', '~> 2.0'    gem 'spring'  end  ruby '2.2.2' 

when go on url, can see this: the screen see

i lost hope guys me find answers of issue. question: have use database logins https://postgres.heroku.com/databases in database.yml production section?

thank you.


Comments

Popular posts from this blog

javascript - oscilloscope of speaker input stops rendering after a few seconds -

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -