ruby on rails - Heroku Push- Several solutions failed -


full disclosure- new coding.

initially when tried command $ git push heroku master -i received following error, "uninitialized constant devise".

i moved gem devise(gemfile) (group :development, :test do) (group :production do) no avail. tried moving outside mentioned groups. returned result: failed push refs 'https://git.heroku.com.

following ran push commands again , received error 'filenotfound: couldn't find file 'bootstrap-sprockets' type'application/javascript.' removed bootstrap-sprockets application.js subsequently. failed also. moved original place , tried push again , returned:

counting objects: 229, done. delta compression using 8 threads. compressing objects: 100% (208/208), done. writing objects: 100% (229/229), 41.31 kib | 0 bytes/s, done. total 229 (delta 66), reused 0 (delta 0) remote: compressing source files... done. remote: building source: remote:  remote: -----> ruby app detected remote: -----> compiling ruby/rails remote: -----> using ruby version: ruby-2.0.0 remote: -----> installing dependencies using bundler 1.9.7 remote:        running:       bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deploymen     remote:        fetching gem metadata https://rubygems.org/...........     remote:        fetching version metadata https://rubygems.org/...     remote:        fetching dependency metadata https://rubygems.org/..     remote:        rubygems 2.0.14 not threadsafe, gems must installed 1 @ time. upgrade rubygems 2.1.0 or higher enable parallel gem installation. remote:        installing rake 10.4.2 remote:        installing i18n 0.7.0 remote:        installing json 1.8.3 remote:        installing minitest 5.7.0 remote:        installing thread_safe 0.3.5 remote:        installing tzinfo 1.2.2 remote:        installing activesupport 4.2.1 remote:        installing builder 3.2.2 remote:        installing erubis 2.7.0 remote:        installing mini_portile 0.6.2 remote:        installing nokogiri 1.6.6.2 remote:        installing rails-deprecated_sanitizer 1.0.3 remote:        installing rails-dom-testing 1.0.6 remote:        installing loofah 2.0.2 remote:        installing rails-html-sanitizer 1.0.2 remote:        installing actionview 4.2.1 remote:        installing rack 1.6.1 remote:        installing rack-test 0.6.3 remote:        installing actionpack 4.2.1 remote:        installing globalid 0.3.5 remote:        installing activejob 4.2.1 remote:        installing mime-types 2.6.1 remote:        installing mail 2.6.3 remote:        installing actionmailer 4.2.1 remote:        installing activemodel 4.2.1 remote:        installing arel 6.0.0 remote:        installing activerecord 4.2.1 remote:        installing bcrypt 3.1.10 remote:        installing coffee-script-source 1.9.1.1 remote:        installing execjs 2.5.2 remote:        installing coffee-script 2.4.1 remote:        installing thor 0.19.1 remote:        installing railties 4.2.1 remote:        installing coffee-rails 4.1.0 remote:        installing orm_adapter 0.5.0 remote:        installing responders 2.1.0 remote:        installing warden 1.2.3 remote:        installing devise 3.5.2 remote:        installing multi_json 1.11.1 remote:        installing jbuilder 2.2.16 remote:        installing jquery-rails 4.0.3 remote:        installing pg 0.17.1 remote:        using bundler 1.9.7 remote:        installing sprockets 3.2.0 remote:        installing sprockets-rails 2.3.1 remote:        installing rails 4.2.1 remote:        installing rails_serve_static_assets 0.0.4 remote:        installing rails_stdout_logging 0.0.4 remote:        installing rails_12factor 0.0.2 remote:        installing rdoc 4.2.0 remote:        installing sass 3.4.14 remote:        installing tilt 1.4.1 remote:        installing sass-rails 5.0.3 remote:        installing sdoc 0.4.1 remote:        installing turbolinks 2.5.3 remote:        installing uglifier 2.7.1 remote:        bundle complete! 16 gemfile dependencies, 56 gems installed. remote:        gems in groups development , test not installed. remote:        bundled gems installed ./vendor/bundle. remote:        post-install message rdoc: remote:        depending on version of ruby, may need install ruby rdoc/ri data: remote:        <= 1.8.6 : unsupported remote:        = 1.8.7 : gem install rdoc-data; rdoc-data --install remote:        = 1.9.1 : gem install rdoc-data; rdoc-data --install remote:        >= 1.9.2 : nothing do! yay! remote:        bundle completed (86.26s) remote:        cleaning bundler cache. remote: -----> preparing app rails asset pipeline remote:        running: rake assets:precompile remote:        rake aborted! remote:        sprockets::filenotfound: couldn't find file 'bootstrap' type 'application/javascript' remote:        /tmp/build_b8ba7c7f8f9b9d6606dccf954e43d1c0/app/assets/javascripts/application.js:17 remote:        /tmp/build_b8ba7c7f8f9b9d6606dccf954e43d1c0/vendor/bundle/ruby/2.0.0/gems/sprockets-3.2.0/lib/sprockets/resolve.rb:64:in `resolve!' remote:        /tmp/build_b8ba7c7f8f9b9d6606dccf954e43d1c0/vendor/bundle/ruby/2.0.0/gems/sprockets-3.2.0/lib/sprockets/directive_processor.rb:399:in `resolve' remote:        /tmp/build_b8ba7c7f8f9b9d6606dccf954e43d1c0/vendor/bundle/ruby/2.0.0/gems/sprockets-3.2.0/lib/sprockets/directive_processor.rb:207:in `process_require_directive' remote:        /tmp/build_b8ba7c7f8f9b9d6606dccf954e43d1c0/vendor/bundle/ruby/2.0.0/gems/sprockets-3.2.0/lib/sprockets/directive_processor.rb:180:in `block in process_directives' remote:        /tmp/build_b8ba7c7f8f9b9d6606dccf954e43d1c0/vendor/bundle/ruby/2.0.0/gems/sprockets-3.2.0/lib/sprockets/directive_processor.rb:178:in `each' remote:        /tmp/build_b8ba7c7f8f9b9d6606dccf954e43d1c0/vendor/bundle/ruby/2.0.0/gems/sprockets-3.2.0/lib/sprockets/directive_processor.rb:178:in `process_directives' remote:        /tmp/build_b8ba7c7f8f9b9d6606dccf954e43d1c0/vendor/bundle/ruby/2.0.0/gems/sprockets-3.2.0/lib/sprockets/directive_processor.rb:83:in `_call' remote:        /tmp/build_b8ba7c7f8f9b9d6606dccf954e43d1c0/vendor/bundle/ruby/2.0.0/gems/sprockets-3.2.0/lib/sprockets/directive_processor.rb:68:in `call' remote:        /tmp/build_b8ba7c7f8f9b9d6606dccf954e43d1c0/vendor/bundle/ruby/2.0.0/gems/sprockets-3.2.0/lib/sprockets/processor_utils.rb:75:in `call_processor' remote:        /tmp/build_b8ba7c7f8f9b9d6606dccf954e43d1c0/vendor/bundle/ruby/2.0.0/gems/sprockets-3.2.0/lib/sprockets/processor_utils.rb:57:in `block in call_processors' remote:        /tmp/build_b8ba7c7f8f9b9d6606dccf954e43d1c0/vendor/bundle/ruby/2.0.0/gems/sprockets-3.2.0/lib/sprockets/processor_utils.rb:56:in `reverse_each' remote:        /tmp/build_b8ba7c7f8f9b9d6606dccf954e43d1c0/vendor/bundle/ruby/2.0.0/gems/sprockets-3.2.0/lib/sprockets/processor_utils.rb:56:in `call_processors' remote:        /tmp/build_b8ba7c7f8f9b9d6606dccf954e43d1c0/vendor/bundle/ruby/2.0.0/gems/sprockets-3.2.0/lib/sprockets/loader.rb:86:in `load_asset_by_uri' remote:        /tmp/build_b8ba7c7f8f9b9d6606dccf954e43d1c0/vendor/bundle/ruby/2.0.0/gems/sprockets-3.2.0/lib/sprockets/loader.rb:45:in `block in load' remote:        /tmp/build_b8ba7c7f8f9b9d6606dccf954e43d1c0/vendor/bundle/ruby/2.0.0/gems/sprockets-3.2.0/lib/sprockets/loader.rb:155:in `fetch_asset_from_dependency_cache' remote:        /tmp/build_b8ba7c7f8f9b9d6606dccf954e43d1c0/vendor/bundle/ruby/2.0.0/gems/sprockets-3.2.0/lib/sprockets/loader.rb:38:in `load' remote:        /tmp/build_b8ba7c7f8f9b9d6606dccf954e43d1c0/vendor/bundle/ruby/2.0.0/gems/sprockets-3.2.0/lib/sprockets/cached_environment.rb:20:in `block in initialize' remote:        /tmp/build_b8ba7c7f8f9b9d6606dccf954e43d1c0/vendor/bundle/ruby/2.0.0/gems/sprockets-3.2.0/lib/sprockets/cached_environment.rb:47:in `yield' remote:        /tmp/build_b8ba7c7f8f9b9d6606dccf954e43d1c0/vendor/bundle/ruby/2.0.0/gems/sprockets-3.2.0/lib/sprockets/cached_environment.rb:47:in `load' remote:        /tmp/build_b8ba7c7f8f9b9d6606dccf954e43d1c0/vendor/bundle/ruby/2.0.0/gems/sprockets-3.2.0/lib/sprockets/bundle.rb:23:in `block in call' remote:        /tmp/build_b8ba7c7f8f9b9d6606dccf954e43d1c0/vendor/bundle/ruby/2.0.0/gems/sprockets-3.2.0/lib/sprockets/utils.rb:183:in `dfs' remote:        /tmp/build_b8ba7c7f8f9b9d6606dccf954e43d1c0/vendor/bundle/ruby/2.0.0/gems/sprockets-3.2.0/lib/sprockets/bundle.rb:24:in `call' remote:        /tmp/build_b8ba7c7f8f9b9d6606dccf954e43d1c0/vendor/bundle/ruby/2.0.0/gems/sprockets-3.2.0/lib/sprockets/processor_utils.rb:75:in `call_processor' remote:        /tmp/build_b8ba7c7f8f9b9d6606dccf954e43d1c0/vendor/bundle/ruby/2.0.0/gems/sprockets-3.2.0/lib/sprockets/processor_utils.rb:57:in `block in call_processors' remote:        /tmp/build_b8ba7c7f8f9b9d6606dccf954e43d1c0/vendor/bundle/ruby/2.0.0/gems/sprockets-3.2.0/lib/sprockets/processor_utils.rb:56:in `reverse_each' remote:        /tmp/build_b8ba7c7f8f9b9d6606dccf954e43d1c0/vendor/bundle/ruby/2.0.0/gems/sprockets-3.2.0/lib/sprockets/processor_utils.rb:56:in `call_processors' remote:        /tmp/build_b8ba7c7f8f9b9d6606dccf954e43d1c0/vendor/bundle/ruby/2.0.0/gems/sprockets-3.2.0/lib/sprockets/loader.rb:86:in `load_asset_by_uri' remote:        /tmp/build_b8ba7c7f8f9b9d6606dccf954e43d1c0/vendor/bundle/ruby/2.0.0/gems/sprockets-3.2.0/lib/sprockets/loader.rb:45:in `block in load' remote:        /tmp/build_b8ba7c7f8f9b9d6606dccf954e43d1c0/vendor/bundle/ruby/2.0.0/gems/sprockets-3.2.0/lib/sprockets/loader.rb:155:in `fetch_asset_from_dependency_cache' remote:        /tmp/build_b8ba7c7f8f9b9d6606dccf954e43d1c0/vendor/bundle/ruby/2.0.0/gems/sprockets-3.2.0/lib/sprockets/loader.rb:38:in `load' remote:        /tmp/build_b8ba7c7f8f9b9d6606dccf954e43d1c0/vendor/bundle/ruby/2.0.0/gems/sprockets-3.2.0/lib/sprockets/cached_environment.rb:20:in `block in initialize' remote:        /tmp/build_b8ba7c7f8f9b9d6606dccf954e43d1c0/vendor/bundle/ruby/2.0.0/gems/sprockets-3.2.0/lib/sprockets/cached_environment.rb:47:in `yield' remote:        /tmp/build_b8ba7c7f8f9b9d6606dccf954e43d1c0/vendor/bundle/ruby/2.0.0/gems/sprockets-3.2.0/lib/sprockets/cached_environment.rb:47:in `load' remote:        /tmp/build_b8ba7c7f8f9b9d6606dccf954e43d1c0/vendor/bundle/ruby/2.0.0/gems/sprockets-3.2.0/lib/sprockets/base.rb:63:in `find_asset' remote:        /tmp/build_b8ba7c7f8f9b9d6606dccf954e43d1c0/vendor/bundle/ruby/2.0.0/gems/sprockets-3.2.0/lib/sprockets/base.rb:70:in `find_all_linked_assets' remote:        /tmp/build_b8ba7c7f8f9b9d6606dccf954e43d1c0/vendor/bundle/ruby/2.0.0/gems/sprockets-3.2.0/lib/sprockets/manifest.rb:138:in `block in find' remote:        /tmp/build_b8ba7c7f8f9b9d6606dccf954e43d1c0/vendor/bundle/ruby/2.0.0/gems/sprockets-3.2.0/lib/sprockets/legacy.rb:114:in `block (2 levels) in logical_paths' remote:        /tmp/build_b8ba7c7f8f9b9d6606dccf954e43d1c0/vendor/bundle/ruby/2.0.0/gems/sprockets-3.2.0/lib/sprockets/path_utils.rb:223:in `block in stat_tree' remote:        /tmp/build_b8ba7c7f8f9b9d6606dccf954e43d1c0/vendor/bundle/ruby/2.0.0/gems/sprockets-3.2.0/lib/sprockets/path_utils.rb:207:in `block in stat_directory' remote:        /tmp/build_b8ba7c7f8f9b9d6606dccf954e43d1c0/vendor/bundle/ruby/2.0.0/gems/sprockets-3.2.0/lib/sprockets/path_utils.rb:204:in `each' remote:        /tmp/build_b8ba7c7f8f9b9d6606dccf954e43d1c0/vendor/bundle/ruby/2.0.0/gems/sprockets-3.2.0/lib/sprockets/path_utils.rb:204:in `stat_directory' remote:        /tmp/build_b8ba7c7f8f9b9d6606dccf954e43d1c0/vendor/bundle/ruby/2.0.0/gems/sprockets-3.2.0/lib/sprockets/path_utils.rb:222:in `stat_tree' remote:        /tmp/build_b8ba7c7f8f9b9d6606dccf954e43d1c0/vendor/bundle/ruby/2.0.0/gems/sprockets-3.2.0/lib/sprockets/legacy.rb:105:in `each' remote:        /tmp/build_b8ba7c7f8f9b9d6606dccf954e43d1c0/vendor/bundle/ruby/2.0.0/gems/sprockets-3.2.0/lib/sprockets/legacy.rb:105:in `block in logical_paths' remote:        /tmp/build_b8ba7c7f8f9b9d6606dccf954e43d1c0/vendor/bundle/ruby/2.0.0/gems/sprockets-3.2.0/lib/sprockets/legacy.rb:104:in `each' remote:        /tmp/build_b8ba7c7f8f9b9d6606dccf954e43d1c0/vendor/bundle/ruby/2.0.0/gems/sprockets-3.2.0/lib/sprockets/legacy.rb:104:in `logical_paths' remote:        /tmp/build_b8ba7c7f8f9b9d6606dccf954e43d1c0/vendor/bundle/ruby/2.0.0/gems/sprockets-3.2.0/lib/sprockets/manifest.rb:136:in `find' remote:        /tmp/build_b8ba7c7f8f9b9d6606dccf954e43d1c0/vendor/bundle/ruby/2.0.0/gems/sprockets-3.2.0/lib/sprockets/manifest.rb:162:in `compile' remote:        /tmp/build_b8ba7c7f8f9b9d6606dccf954e43d1c0/vendor/bundle/ruby/2.0.0/gems/sprockets-rails-2.3.1/lib/sprockets/rails/task.rb:70:in `block (3 levels) in define' remote:        /tmp/build_b8ba7c7f8f9b9d6606dccf954e43d1c0/vendor/bundle/ruby/2.0.0/gems/sprockets-3.2.0/lib/rake/sprocketstask.rb:147:in `with_logger' remote:        /tmp/build_b8ba7c7f8f9b9d6606dccf954e43d1c0/vendor/bundle/ruby/2.0.0/gems/sprockets-rails-2.3.1/lib/sprockets/rails/task.rb:69:in `block (2 levels) in define' remote:        tasks: top => assets:precompile remote:        (see full trace running task --trace) remote:  ! remote:  !     precompiling assets failed. remote:  ! remote:  remote:  !     push rejected, failed compile ruby app remote:  remote: verifying deploy.... remote:  remote: !       push rejected (app_name). remote:  https://git.heroku.com/app_name.git  ! [remote rejected] master -> master (pre-receive hook declined) error: failed push refs 'https://git.heroku.com/app_name.git' _________________________________________________________________________ 

i have tried several solutions. cannot figure out. moving along swimmingly. idea need resolve issue? app_name replacement original name way.

any appreciated. in advance.

it doesn't seem installing bootstap in production. make sure have bootstrap included in gemfile correctly , not included in development.


Comments