ruby on rails - Application Error for Heroku Deployment -
i deploying website on heroku, received "application error" when try run "heroku open".
i believed have pushed files heroku, part of code "git push heroku master":
-----> ruby/rails app detected -----> using ruby version: ruby-1.9.3 -----> installing dependencies using bundler version 1.3.2 ruby version change detected. clearing bundler cache. old: ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-linux] new: ruby 1.9.3p448 (2013-06-27 revision 41675) [x86_64-linux] running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin --deployment
when run "heroku config -s | grep path", got
path=bin:vendor/bundle/ruby/1.9.1/bin:/usr/local/bin:/usr/bin:/bin
i using ruby 1.9.3 , rails 4.0.0
heroku run ruby -v running `ruby -v` attached terminal... up, run.1868 ruby 1.9.3p448 (2013-06-27 revision 41675) [x86_64-linux]
heroku logs 2013-09-03t22:19:50.190493+00:00 heroku[web.1]: starting process command `bin/rails server -p 46820 -e $rails_env` 2013-09-03t22:19:51.029933+00:00 app[web.1]: /usr/bin/env: ruby1.9.1: no such file or directory 2013-09-03t22:19:52.871354+00:00 heroku[web.1]: state changed starting crashed 2013-09-03t22:19:52.847082+00:00 heroku[web.1]: process exited status 127 2013-09-03t22:19:55+00:00 heroku[slug-compiler]: slug compilation started 2013-09-03t22:23:34.575156+00:00 heroku[api]: deploy e565e1b ...@yahoo.com 2013-09-03t22:23:34.607019+00:00 heroku[api]: release v7 created ...@yahoo.com 2013-09-03t22:23:35.309375+00:00 heroku[web.1]: state changed crashed starting 2013-09-03t22:23:35+00:00 heroku[slug-compiler]: slug compilation finished 2013-09-03t22:23:41.313490+00:00 heroku[web.1]: starting process command `bin/rails server -p 13563 -e $rails_env` 2013-09-03t22:23:42.552501+00:00 app[web.1]: /usr/bin/env: ruby1.9.1: no such file or directory 2013-09-03t22:23:44.083113+00:00 heroku[web.1]: process exited status 127 2013-09-03t22:23:44.076683+00:00 heroku[web.1]: state changed starting crashed 2013-09-03t22:24:22.581967+00:00 heroku[router]: at=error code=h10 desc="app crashed" method=get path=/ host=b....herokuapp.com fwd="72.130.178.212" dyno= connect= service= status=503 bytes= 2013-09-03t22:24:30.920322+00:00 heroku[api]: starting process command `ruby -v` ...@yahoo.com 2013-09-03t22:24:36.331638+00:00 heroku[run.9757]: awaiting client 2013-09-03t22:24:36.372167+00:00 heroku[run.9757]: starting process command `ruby -v` 2013-09-03t22:24:38.01 5326+00:00 heroku[run.9757]: process exited status 0 2013-09-03t22:24:38.038684+00:00 heroku[run.9757]: state changed starting complete 2013-09-03t22:24:46.077364+00:00 heroku[run.9757]: stopping process sigkill 2013-09-03t22:24:46.077053+00:00 heroku[run.9757]: error r99 (platform error) -> failed launch dyno within 10 seconds 2013-09-03t22:30:10.825474+00:00 heroku[web.1]: state changed crashed starting 2013-09-03t22:30:15.552054+00:00 heroku[web.1]: starting process command `bin/rails server -p 18743 -e $rails_env` 2013-09-03t22:30:16.375616+00:00 app[web.1]: /usr/bin/env: ruby1.9.1: no such file or directory 2013-09-03t22:30:17.730288+00:00 heroku[web.1]: process exited status 127 2013-09-03t22:30:17.736961+00:00 heroku[web.1]: state changed starting crashed 2013-09-03t22:30:25.745760+00:00 heroku[web.1]: error r99 (platform error) -> failed launch dyno within 10 seconds 2013-09-03t22:30:25.745760+00:00 heroku[web.1]: stopping process sigkill 2013-09-03t22:34:18.513539+00:00 heroku[router]: at=error code=h10 desc="app crashed" method=get path=/favicon.ico host=....herokuapp.com fwd="72.130.178.212" dyno= connect= service= status=503 bytes= 2013-09-03t22:34:21.087888+00:00 heroku[router]: at=error code=h10 desc="app crashed" method=get path=/ host=....herokuapp.com fwd="72.130.178.212" dyno= connect= service= status=503 bytes= 2013-09-03t22:34:18.237589+00:00 heroku[router]: at=error code=h10 desc="app crashed" method=get path=/ host=....herokuapp.com fwd="72.130.178.212" dyno= connect= service= status=503 bytes= 2013-09-03t22:34:18.614842+00:00 heroku[router]: at=error code=h10 desc="app crashed" method=get path=/favicon.ico host=....herokuapp.com fwd="72.130.178.212" dyno= connect= service= status=503 bytes= 2013-09-03t22:35:46.726669+00:00 heroku[web.1]: state changed crashed starting 2013-09-03t22:35:51.458659+00:00 heroku[web.1]: starting process command `bin/rails server -p 43128 -e $rails_env` 2013-09-03t22:35:52.432152+00:00 app[web.1]: /usr/bin/env: ruby1.9.1: no such file or directory 2013-09-03t22:35:54.001899+00:00 heroku[web.1]: process exited status 127 2013-09-03t22:35:54.011795+00:00 heroku[web.1]: state changed starting crashed 2013-09-03t22:36:01.666290+00:00 heroku[web.1]: stopping process sigkill 2013-09-03t22:36:01.665773+00:00 heroku[web.1]: error r99 (platform error) -> failed launch dyno within 10 seconds ...the rest duplicated codes...
heroku run rake db:migrate /usr/bin/env: ruby1.9.1: no such file or directory
gemfile
source 'https://rubygems.org' ruby '1.9.3' gem 'rails', '4.0.0' gem 'bootstrap-sass', '2.3.2.0' gem 'bcrypt-ruby', '3.0.1' gem 'faker', '1.1.2' gem 'will_paginate', '3.0.4' gem 'bootstrap-will_paginate', '0.0.9' gem 'rack-cache', :require => 'rack/cache' gem 'dragonfly', '~>0.9.15' group :development, :test gem 'sqlite3', '1.3.7' gem 'rspec-rails', '2.13.1' end group :test gem 'selenium-webdriver', '2.0.0' gem 'capybara', '2.1.0' gem 'factory_girl_rails', '4.2.1' gem 'cucumber-rails', '1.3.0', :require => false gem 'database_cleaner', github: 'bmabey/database_cleaner' end gem 'sass-rails', '4.0.0' gem 'uglifier', '2.1.1' gem 'coffee-rails', '4.0.0' gem 'jquery-rails', '2.2.1' gem 'turbolinks', '1.1.1' gem 'jbuilder', '1.0.2' group :doc gem 'sdoc', '0.3.20', require: false end group :production gem 'pg', '0.15.1' gem 'rails_12factor', '0.0.2' end gem 'execjs' gem 'therubyracer'
gem env
rubygems environment: - rubygems version: 1.8.23 - ruby version: 1.9.3 (2012-04-20 patchlevel 194) [x86_64-linux] - installation directory: /var/lib/gems/1.9.1 - ruby executable: /usr/bin/ruby1.9.1 - executable directory: /usr/local/bin - rubygems platforms: - ruby - x86_64-linux - gem paths: - /var/lib/gems/1.9.1 - /home/user/.gem/ruby/1.9.1 - gem configuration: - :update_sources => true - :verbose => true - :benchmark => false - :backtrace => false - :bulk_threshold => 1000 - remote sources: - http://rubygems.org/
bin/rails
#!/usr/bin/env ruby app_path = file.expand_path('../../config/application', __file__) require_relative '../config/boot' require 'rails/commands'
bin/bundle
#!/usr/bin/env ruby env['bundle_gemfile'] ||= file.expand_path('../../gemfile', __file__) load gem.bin_path('bundler', 'bundle')
bin/rake
#!/usr/bin/env ruby require_relative '../config/boot' require 'rake' rake.application.run
this happens heroku when ruby version specified in bin files. try repace "#!/usr/bin/env ruby1.9.1" => "#!/usr/bin/env ruby" in 3 files:
bin/bundle bin/rails bin/rake
Comments
Post a Comment