I have successfully pushed my rails app into git, but I cannot push into heroku
I got this error :
Counting objects: 186, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (165/165), done.
Writing objects: 100% (186/186), 2.65 MiB | 186.00 KiB/s, done.
Total 186 (delta 35), 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.2.6
remote: -----> Installing dependencies using bundler 1.13.7
remote: Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
remote: Fetching gem metadata from https://rubygems.org/.........
remote: Fetching version metadata from https://rubygems.org/..
remote: Fetching dependency metadata from https://rubygems.org/.
remote: Installing rake 12.0.0
remote: Installing i18n 0.8.0
remote: Installing concurrent-ruby 1.0.4
remote: Installing minitest 5.10.1
remote: Installing thread_safe 0.3.5
remote: Installing builder 3.2.3
remote: Installing mini_portile2 2.1.0
remote: Installing erubis 2.7.0
remote: Installing nio4r 1.2.1 with native extensions
remote: Installing rack 2.0.1
remote: Installing websocket-extensions 0.1.2
remote: Installing mime-types-data 3.2016.0521
remote: Installing arel 7.1.4
remote: Installing coffee-script-source 1.12.2
remote: Installing execjs 2.7.0
remote: Installing method_source 0.8.2
remote: Installing thor 0.19.4
remote: Installing multi_json 1.12.1
remote: Installing puma 3.7.0 with native extensions
remote: Installing pg 0.19.0 with native extensions
remote: Using bundler 1.13.7
remote: Installing rails_serve_static_assets 0.0.5
remote: Installing rails_stdout_logging 0.0.5
remote: Installing sass 3.4.23
remote: Installing tilt 2.0.6
remote: Installing turbolinks-source 5.0.0
remote: Installing tzinfo 1.2.2
remote: Installing nokogiri 1.7.0.1 with native extensions
remote: Installing rack-test 0.6.3
remote: Installing sprockets 3.7.1
remote: Installing websocket-driver 0.6.5 with native extensions
remote: Installing mime-types 3.1
remote: Installing coffee-script 2.4.1
remote: Installing uglifier 3.0.4
remote: Installing rails_12factor 0.0.3
remote: Installing turbolinks 5.0.1
remote: Installing activesupport 5.0.1
remote: Installing mail 2.6.4
remote: Installing globalid 0.3.7
remote: Installing activemodel 5.0.1
remote: Installing jbuilder 2.6.1
remote: Installing activejob 5.0.1
remote: Installing activerecord 5.0.1
remote: Installing rails-dom-testing 2.0.2
remote: Installing loofah 2.0.3
remote: Installing rails-html-sanitizer 1.0.3
remote: Installing actionview 5.0.1
remote: Installing actionpack 5.0.1
remote: Installing actioncable 5.0.1
remote: Installing actionmailer 5.0.1
remote: Installing railties 5.0.1
remote: Installing sprockets-rails 3.2.0
remote: Installing coffee-rails 4.2.1
remote: Installing rails 5.0.1
remote: Installing sass-rails 5.0.6
remote: Installing jquery-rails 4.2.2
remote: Bundle complete! 17 Gemfile dependencies, 56 gems now installed.
remote: Gems in the groups development and test were not installed.
remote: Bundled gems are installed into ./vendor/bundle.
remote: Bundle completed (41.72s)
remote: Cleaning up the bundler cache.
remote: -----> Detecting rake tasks
remote: -----> Preparing app for Rails asset pipeline
remote: Running: rake assets:precompile
remote: I, [2017-02-09T10:46:09.853640 #1155] INFO -- : Writing /tmp/build_9491bde9458fa002c263b1f32da09990/public/assets/covers/fh1-0718ff99413a1363bf266be84142213d583f36df646c9e0e0e0f3d68cfd641b1.jpg
remote: I, [2017-02-09T10:46:09.860022 #1155] INFO -- : Writing /tmp/build_9491bde9458fa002c263b1f32da09990/public/assets/covers/lord-bbd09b25b741d9092434372a785198081a3cad4e1315303c077039ffe7715235.jpg
remote: I, [2017-02-09T10:46:09.862885 #1155] INFO -- : Writing /tmp/build_9491bde9458fa002c263b1f32da09990/public/assets/covers/me-99ceb4ad11d4c02bb6048b7eb5adb3b29544f1f3c3cfee834aad7fef29cdd12d.jpg
remote: I, [2017-02-09T10:46:09.871125 #1155] INFO -- : Writing /tmp/build_9491bde9458fa002c263b1f32da09990/public/assets/covers/res1-7c2aac6545629f058bbfba85ac0c04ec3d7a4db211f3c79c17d1575a8c2c9444.jpg
remote: I, [2017-02-09T10:46:09.875159 #1155] INFO -- : Writing /tmp/build_9491bde9458fa002c263b1f32da09990/public/assets/covers/sn1-02e69724672b9e092aa3c63b11079aff1983c1672ecc122a8bef7b0916655225.jpg
remote: I, [2017-02-09T10:46:09.878795 #1155] INFO -- : Writing /tmp/build_9491bde9458fa002c263b1f32da09990/public/assets/covers/tek1-55d5520379c80ae7ddbb2e237ee929a0acba2a1c988b546251e33e262bd0121b.jpg
remote: I, [2017-02-09T10:46:09.883309 #1155] INFO -- : Writing /tmp/build_9491bde9458fa002c263b1f32da09990/public/assets/covers/un1-7453457098bf8778d10a9e679b33d8da748af50d6372c0d1db59db8f33326fed.jpg
remote: rake aborted!
remote: ExecJS::RuntimeError: SyntaxError: Unexpected token: operator (<) (line: 14589, col: 0, pos: 440984)
remote: Error
remote: at new JS_Parse_Error (/tmp/execjs20170209-1155-meyenpjs:3623:11948)
remote: at js_error (/tmp/execjs20170209-1155-meyenpjs:3623:12167)
remote: at croak (/tmp/execjs20170209-1155-meyenpjs:3623:22038)
remote: at token_error (/tmp/execjs20170209-1155-meyenpjs:3623:22175)
remote: at unexpected (/tmp/execjs20170209-1155-meyenpjs:3623:22263)
remote: at expr_atom (/tmp/execjs20170209-1155-meyenpjs:3623:31244)
remote: at maybe_unary (/tmp/execjs20170209-1155-meyenpjs:3624:1752)
remote: at expr_ops (/tmp/execjs20170209-1155-meyenpjs:3624:2523)
remote: at maybe_conditional (/tmp/execjs20170209-1155-meyenpjs:3624:2615)
remote: at maybe_assign (/tmp/execjs20170209-1155-meyenpjs:3624:3058)
remote: at expression (/tmp/execjs20170209-1155-meyenpjs:3624:3384)
remote: at simple_statement (/tmp/execjs20170209-1155-meyenpjs:3623:25942)
remote: at /tmp/execjs20170209-1155-meyenpjs:3623:23662
remote: at /tmp/execjs20170209-1155-meyenpjs:3623:22954
remote: at /tmp/execjs20170209-1155-meyenpjs:3624:3759
remote: new JS_Parse_Error ((execjs):3623:11948)
remote: js_error ((execjs):3623:12167)
remote: croak ((execjs):3623:22038)
remote: token_error ((execjs):3623:22175)
remote: unexpected ((execjs):3623:22263)
remote: expr_atom ((execjs):3623:31244)
remote: maybe_unary ((execjs):3624:1752)
remote: expr_ops ((execjs):3624:2523)
remote: maybe_conditional ((execjs):3624:2615)
remote: maybe_assign ((execjs):3624:3058)
remote: expression ((execjs):3624:3384)
remote: simple_statement ((execjs):3623:25942)
remote: (execjs):3623:23662
remote: (execjs):3623:22954
remote: (execjs):3624:3759
remote: /tmp/build_9491bde9458fa002c263b1f32da09990/vendor/bundle/ruby/2.2.0/gems/execjs-2.7.0/lib/execjs/external_runtime.rb:39:in `exec'
remote: /tmp/build_9491bde9458fa002c263b1f32da09990/vendor/bundle/ruby/2.2.0/gems/execjs-2.7.0/lib/execjs/external_runtime.rb:21:in `eval'
remote: /tmp/build_9491bde9458fa002c263b1f32da09990/vendor/bundle/ruby/2.2.0/gems/execjs-2.7.0/lib/execjs/external_runtime.rb:46:in `call'
remote: /tmp/build_9491bde9458fa002c263b1f32da09990/vendor/bundle/ruby/2.2.0/gems/uglifier-3.0.4/lib/uglifier.rb:184:in `run_uglifyjs'
remote: /tmp/build_9491bde9458fa002c263b1f32da09990/vendor/bundle/ruby/2.2.0/gems/uglifier-3.0.4/lib/uglifier.rb:146:in `compile'
remote: /tmp/build_9491bde9458fa002c263b1f32da09990/vendor/bundle/ruby/2.2.0/gems/sprockets-3.7.1/lib/sprockets/uglifier_compressor.rb:53:in `call'
remote: /tmp/build_9491bde9458fa002c263b1f32da09990/vendor/bundle/ruby/2.2.0/gems/sprockets-3.7.1/lib/sprockets/uglifier_compressor.rb:28:in `call'
remote: /tmp/build_9491bde9458fa002c263b1f32da09990/vendor/bundle/ruby/2.2.0/gems/sprockets-3.7.1/lib/sprockets/processor_utils.rb:75:in `call_processor
remote: /tmp/build_9491bde9458fa002c263b1f32da09990/vendor/bundle/ruby/2.2.0/gems/sprockets-3.7.1/lib/sprockets/processor_utils.rb:57:in `block in call_processors'
remote: /tmp/build_9491bde9458fa002c263b1f32da09990/vendor/bundle/ruby/2.2.0/gems/sprockets-3.7.1/lib/sprockets/processor_utils.rb:56:in `reverse_each'
remote: /tmp/build_9491bde9458fa002c263b1f32da09990/vendor/bundle/ruby/2.2.0/gems/sprockets-3.7.1/lib/sprockets/processor_utils.rb:56:in `call_processors'
remote: /tmp/build_9491bde9458fa002c263b1f32da09990/vendor/bundle/ruby/2.2.0/gems/sprockets-3.7.1/lib/sprockets/loader.rb:134:in `load_from_unloaded'
remote: /tmp/build_9491bde9458fa002c263b1f32da09990/vendor/bundle/ruby/2.2.0/gems/sprockets-3.7.1/lib/sprockets/loader.rb:60:in `block in load'
remote: /tmp/build_9491bde9458fa002c263b1f32da09990/vendor/bundle/ruby/2.2.0/gems/sprockets-3.7.1/lib/sprockets/loader.rb:317:in `fetch_asset_from_dependency_cache'
remote: /tmp/build_9491bde9458fa002c263b1f32da09990/vendor/bundle/ruby/2.2.0/gems/sprockets-3.7.1/lib/sprockets/loader.rb:44:in `load'
remote: /tmp/build_9491bde9458fa002c263b1f32da09990/vendor/bundle/ruby/2.2.0/gems/sprockets-3.7.1/lib/sprockets/cached_environment.rb:20:in `block in initialize'
remote: /tmp/build_9491bde9458fa002c263b1f32da09990/vendor/bundle/ruby/2.2.0/gems/sprockets-3.7.1/lib/sprockets/cached_environment.rb:47:in `yield'
remote: /tmp/build_9491bde9458fa002c263b1f32da09990/vendor/bundle/ruby/2.2.0/gems/sprockets-3.7.1/lib/sprockets/cached_environment.rb:47:in `load'
remote: /tmp/build_9491bde9458fa002c263b1f32da09990/vendor/bundle/ruby/2.2.0/gems/sprockets-3.7.1/lib/sprockets/base.rb:66:in `find_asset'
remote: /tmp/build_9491bde9458fa002c263b1f32da09990/vendor/bundle/ruby/2.2.0/gems/sprockets-3.7.1/lib/sprockets/base.rb:73:in `find_all_linked_assets'
remote: /tmp/build_9491bde9458fa002c263b1f32da09990/vendor/bundle/ruby/2.2.0/gems/sprockets-3.7.1/lib/sprockets/manifest.rb:142:in `block in find'
remote: /tmp/build_9491bde9458fa002c263b1f32da09990/vendor/bundle/ruby/2.2.0/gems/sprockets-3.7.1/lib/sprockets/legacy.rb:114:in `block (2 levels) in logical_paths'
remote: /tmp/build_9491bde9458fa002c263b1f32da09990/vendor/bundle/ruby/2.2.0/gems/sprockets-3.7.1/lib/sprockets/path_utils.rb:228:in `block in stat_tree
remote: /tmp/build_9491bde9458fa002c263b1f32da09990/vendor/bundle/ruby/2.2.0/gems/sprockets-3.7.1/lib/sprockets/path_utils.rb:212:in `block in stat_directory'
remote: /tmp/build_9491bde9458fa002c263b1f32da09990/vendor/bundle/ruby/2.2.0/gems/sprockets-3.7.1/lib/sprockets/path_utils.rb:209:in `each'
remote: /tmp/build_9491bde9458fa002c263b1f32da09990/vendor/bundle/ruby/2.2.0/gems/sprockets-3.7.1/lib/sprockets/path_utils.rb:209:in `stat_directory'
remote: /tmp/build_9491bde9458fa002c263b1f32da09990/vendor/bundle/ruby/2.2.0/gems/sprockets-3.7.1/lib/sprockets/path_utils.rb:227:in `stat_tree'
remote: /tmp/build_9491bde9458fa002c263b1f32da09990/vendor/bundle/ruby/2.2.0/gems/sprockets-3.7.1/lib/sprockets/legacy.rb:105:in `each'
remote: /tmp/build_9491bde9458fa002c263b1f32da09990/vendor/bundle/ruby/2.2.0/gems/sprockets-3.7.1/lib/sprockets/legacy.rb:105:in `block in logical_paths
remote: /tmp/build_9491bde9458fa002c263b1f32da09990/vendor/bundle/ruby/2.2.0/gems/sprockets-3.7.1/lib/sprockets/legacy.rb:104:in `each'
remote: /tmp/build_9491bde9458fa002c263b1f32da09990/vendor/bundle/ruby/2.2.0/gems/sprockets-3.7.1/lib/sprockets/legacy.rb:104:in `logical_paths'
remote: /tmp/build_9491bde9458fa002c263b1f32da09990/vendor/bundle/ruby/2.2.0/gems/sprockets-3.7.1/lib/sprockets/manifest.rb:140:in `find'
remote: /tmp/build_9491bde9458fa002c263b1f32da09990/vendor/bundle/ruby/2.2.0/gems/sprockets-3.7.1/lib/sprockets/manifest.rb:185:in `compile'
remote: /tmp/build_9491bde9458fa002c263b1f32da09990/vendor/bundle/ruby/2.2.0/gems/sprockets-rails-3.2.0/lib/sprockets/rails/task.rb:68:in `block (3 levels) in define'
remote: /tmp/build_9491bde9458fa002c263b1f32da09990/vendor/bundle/ruby/2.2.0/gems/sprockets-3.7.1/lib/rake/sprocketstask.rb:147:in `with_logger'
remote: /tmp/build_9491bde9458fa002c263b1f32da09990/vendor/bundle/ruby/2.2.0/gems/sprockets-rails-3.2.0/lib/sprockets/rails/task.rb:67:in `block (2 levels) in define'
remote: /tmp/build_9491bde9458fa002c263b1f32da09990/vendor/bundle/ruby/2.2.0/gems/rake-12.0.0/exe/rake:27:in `<top (required)>'
remote: Tasks: TOP => assets:precompile
remote: (See full trace by running task with --trace)
remote: !
remote: ! Precompiling assets failed.
remote: !
remote: ! Push rejected, failed to compile Ruby app.
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to mvgames.
remote:
To https://git.heroku.com/mvgames.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/mvgames.git'
These are the errors I got, I do not know is it in my images. Before, I saved my images inside my cover folder, then I rename my cover folder to covers, still not working into heroku push
Try
RAILS_ENV=production rake assets:precompile
and push to heroku.
Check your app in production env locally.
Git does not check what you push but Heroku does. There seems to be an error in you assets. Usually it is a mistake in the CSS files. Check on which line the error is and correct it. Than push again to git and than try again to push to Heroku. When your app is coded correctly there should be no problem with pushing to Heroku. Check your assets or post the full error log here so we can see where the error is in your assets.
In your case it is a problem with a JS file.
ExecJS::RuntimeError: SyntaxError: Unexpected token: operator (<) (line: 14589, col: 0, pos: 440984)
at new JS_Parse_Error
following the output from Heroku you should be able to figure out where the problem is. OR just try to push without that javascript file. This will at least guarantee a successful push and you can edit the JS file later.
TIP: check the Heroku logs after
rake aborted!
EDIT: The standard bootstrap javascript file in downloaded version should work. May be you edited something? It's unconventional but you can for deploying purposes just delete the .js file extension. For example .js__
and Heroku will not treat it as a JS file. Problem solved. No need to delete all files from the folder.
If you do not like that solution you should take out the
// require *tree
from your application.js
or take out all uncorrect JS files from your rails app.
The javascript folder can stay. The problem is the wrong JAVASCRIPT in the Javascript Files. Please find the wrong file and prohibit it from being precompiled as mentioned above. If you only have bootstrap.js file than change the file extension or delete it from your app. The error for deployment should be solved like that.
Related
Hi i try to deploy my app on heroku but i got this errors when i run : git push heroku HEAD:master
Enumerating objects: 206, done.
Counting objects: 100% (205/205), done.
Delta compression using up to 8 threads
Compressing objects: 100% (185/185), done.
Writing objects: 100% (189/189), 31.67 MiB | 10.88 MiB/s, done.
Total 189 (delta 32), reused 0 (delta 0), pack-reused 0
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Building on the Heroku-20 stack
remote: -----> Using buildpack: heroku/ruby
remote: -----> Ruby app detected
remote: -----> Installing bundler 2.2.11
remote: -----> Removing BUNDLED WITH version in the Gemfile.lock
remote: -----> Compiling Ruby/Rails
remote: -----> Using Ruby version: ruby-2.7.1
remote: -----> Installing dependencies using bundler 2.2.11
remote: Running: BUNDLE_WITHOUT='development:test' BUNDLE_PATH=vendor/bundle BUNDLE_BIN=vendor/bundle/bin BUNDLE_DEPLOYMENT=1 bundle install -j4
remote: Using rake 13.0.3
remote: Using concurrent-ruby 1.1.8
remote: Using i18n 1.8.9
remote: Using minitest 5.14.4
remote: Using tzinfo 2.0.4
remote: Using zeitwerk 2.4.2
remote: Using activesupport 6.1.3
remote: Using builder 3.2.4
remote: Using erubi 1.10.0
remote: Using mini_portile2 2.5.0
remote: Using racc 1.5.2
remote: Using nokogiri 1.11.2 (x86_64-linux)
remote: Using rails-dom-testing 2.0.3
remote: Using crass 1.0.6
remote: Using loofah 2.9.0
remote: Using rails-html-sanitizer 1.3.0
remote: Using actionview 6.1.3
remote: Using rack 2.2.3
remote: Using rack-test 1.1.0
remote: Using actionpack 6.1.3
remote: Using nio4r 2.5.7
remote: Using websocket-extensions 0.1.5
remote: Using websocket-driver 0.7.3
remote: Using actioncable 6.1.3
remote: Using globalid 0.4.2
remote: Using activejob 6.1.3
remote: Using activemodel 6.1.3
remote: Using activerecord 6.1.3
remote: Using mimemagic 0.3.5
remote: Using marcel 0.3.3
remote: Using activestorage 6.1.3
remote: Using mini_mime 1.0.2
remote: Using mail 2.7.1
remote: Using actionmailbox 6.1.3
remote: Using actionmailer 6.1.3
remote: Using actiontext 6.1.3
remote: Using bcrypt 3.1.16
remote: Using msgpack 1.4.2
remote: Using bootsnap 1.7.2
remote: Using bundler 2.2.11
remote: Using coderay 1.1.3
remote: Using dotenv 2.7.6
remote: Using method_source 1.0.0
remote: Using thor 1.1.0
remote: Using railties 6.1.3
remote: Using dotenv-rails 2.7.6
remote: Using faker 2.17.0
remote: Using ffi 1.15.0
remote: Using pg 1.2.3
remote: Using pry 0.14.0
remote: Using puma 5.2.2
remote: Using rack-proxy 0.6.5
remote: Using sprockets 4.0.2
remote: Using sprockets-rails 3.2.2
remote: Using rails 6.1.3
remote: Using sassc 2.4.0
remote: Using tilt 2.0.10
remote: Using sassc-rails 2.1.2
remote: Using sass-rails 6.0.0
remote: Using semantic_range 3.0.0
remote: Using table_print 1.5.7
remote: Using webpacker 5.2.1
remote: Bundle complete! 22 Gemfile dependencies, 62 gems now installed.
remote: Gems in the groups development and test were not installed.
remote: Bundled gems are installed into `./vendor/bundle`
remote: Bundle completed (0.61s)
remote: Cleaning up the bundler cache.
remote: -----> Installing node-v12.16.2-linux-x64
remote: -----> Installing yarn-v1.22.4
remote: -----> Detecting rake tasks
remote: -----> Preparing app for Rails asset pipeline
remote: Running: rake assets:precompile
remote: yarn install v1.22.4
remote: [1/4] Resolving packages...
remote: [2/4] Fetching packages...
remote: info fsevents#2.3.2: The platform "linux" is incompatible with this module.
remote: info "fsevents#2.3.2" is an optional dependency and failed compatibility check. Excluding it from installation.
remote: info fsevents#1.2.13: The platform "linux" is incompatible with this module.
remote: info "fsevents#1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation.
remote: [3/4] Linking dependencies...
remote: warning " > webpack-dev-server#3.11.2" has unmet peer dependency "webpack#^4.0.0 || ^5.0.0".
remote: warning "webpack-dev-server > webpack-dev-middleware#3.7.3" has unmet peer dependency "webpack#^4.0.0 || ^5.0.0".
remote: [4/4] Building fresh packages...
remote: Done in 27.06s.
remote: rake aborted!
remote: SassC::SyntaxError: Error: Invalid CSS after "... filter: progid": expected "}", was ": DXImageTransform."
remote: on line 7641:13 of stdin
remote: >> filter: progid: DXImageTransform.Microsoft.BasicImage(rotation=1);
remote:
remote: ------------^
remote: stdin:7641
remote: /tmp/build_2b912bde/vendor/bundle/ruby/2.7.0/gems/sassc-2.4.0/lib/sassc/engine.rb:50:in `render'
remote: /tmp/build_2b912bde/vendor/bundle/ruby/2.7.0/gems/sassc-rails-2.1.2/lib/sassc/rails/compressor.rb:29:in `call'
remote: /tmp/build_2b912bde/vendor/bundle/ruby/2.7.0/gems/sprockets-4.0.2/lib/sprockets/sass_compressor.rb:30:in `call'
remote: /tmp/build_2b912bde/vendor/bundle/ruby/2.7.0/gems/sprockets-4.0.2/lib/sprockets/processor_utils.rb:84:in `call_processor'
remote: /tmp/build_2b912bde/vendor/bundle/ruby/2.7.0/gems/sprockets-4.0.2/lib/sprockets/processor_utils.rb:66:in `block in call_processors'
remote: /tmp/build_2b912bde/vendor/bundle/ruby/2.7.0/gems/sprockets-4.0.2/lib/sprockets/processor_utils.rb:65:in `reverse_each'
remote: /tmp/build_2b912bde/vendor/bundle/ruby/2.7.0/gems/sprockets-4.0.2/lib/sprockets/processor_utils.rb:65:in `call_processors'
remote: /tmp/build_2b912bde/vendor/bundle/ruby/2.7.0/gems/sprockets-4.0.2/lib/sprockets/loader.rb:182:in `load_from_unloaded'
remote: /tmp/build_2b912bde/vendor/bundle/ruby/2.7.0/gems/sprockets-4.0.2/lib/sprockets/loader.rb:59:in `block in load'
remote: /tmp/build_2b912bde/vendor/bundle/ruby/2.7.0/gems/sprockets-4.0.2/lib/sprockets/loader.rb:337:in `fetch_asset_from_dependency_cache'
remote: /tmp/build_2b912bde/vendor/bundle/ruby/2.7.0/gems/sprockets-4.0.2/lib/sprockets/loader.rb:43:in `load'
remote: /tmp/build_2b912bde/vendor/bundle/ruby/2.7.0/gems/sprockets-4.0.2/lib/sprockets/cached_environment.rb:44:in `load'
remote: /tmp/build_2b912bde/vendor/bundle/ruby/2.7.0/gems/sprockets-4.0.2/lib/sprockets/bundle.rb:32:in `block in call'
remote: /tmp/build_2b912bde/vendor/bundle/ruby/2.7.0/gems/sprockets-4.0.2/lib/sprockets/bundle.rb:31:in `call'
remote: /tmp/build_2b912bde/vendor/bundle/ruby/2.7.0/gems/sprockets-4.0.2/lib/sprockets/processor_utils.rb:84:in `call_processor'
remote: /tmp/build_2b912bde/vendor/bundle/ruby/2.7.0/gems/sprockets-4.0.2/lib/sprockets/processor_utils.rb:66:in `block in call_processors'
remote: /tmp/build_2b912bde/vendor/bundle/ruby/2.7.0/gems/sprockets-4.0.2/lib/sprockets/processor_utils.rb:65:in `reverse_each'
remote: /tmp/build_2b912bde/vendor/bundle/ruby/2.7.0/gems/sprockets-4.0.2/lib/sprockets/processor_utils.rb:65:in `call_processors'
remote: /tmp/build_2b912bde/vendor/bundle/ruby/2.7.0/gems/sprockets-4.0.2/lib/sprockets/loader.rb:182:in `load_from_unloaded'
remote: /tmp/build_2b912bde/vendor/bundle/ruby/2.7.0/gems/sprockets-4.0.2/lib/sprockets/loader.rb:59:in `block in load'
remote: /tmp/build_2b912bde/vendor/bundle/ruby/2.7.0/gems/sprockets-4.0.2/lib/sprockets/loader.rb:337:in `fetch_asset_from_dependency_cache'
remote: /tmp/build_2b912bde/vendor/bundle/ruby/2.7.0/gems/sprockets-4.0.2/lib/sprockets/loader.rb:43:in `load'
remote: /tmp/build_2b912bde/vendor/bundle/ruby/2.7.0/gems/sprockets-4.0.2/lib/sprockets/cached_environment.rb:44:in `load'
remote: /tmp/build_2b912bde/vendor/bundle/ruby/2.7.0/gems/sprockets-4.0.2/lib/sprockets/base.rb:81:in `find_asset'
remote: /tmp/build_2b912bde/vendor/bundle/ruby/2.7.0/gems/sprockets-4.0.2/lib/sprockets/base.rb:88:in `find_all_linked_assets'
remote: /tmp/build_2b912bde/vendor/bundle/ruby/2.7.0/gems/sprockets-4.0.2/lib/sprockets/manifest.rb:125:in `block (2 levels) in find'
remote: /tmp/build_2b912bde/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.8/lib/concurrent-ruby/concurrent/executor/safe_task_executor.rb:24:in `block in execute'
remote: /tmp/build_2b912bde/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.8/lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb:41:in `block in synchronize'
remote: /tmp/build_2b912bde/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.8/lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb:41:in `synchronize'
remote: /tmp/build_2b912bde/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.8/lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb:41:in `synchronize'
remote: /tmp/build_2b912bde/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.8/lib/concurrent-ruby/concurrent/executor/safe_task_executor.rb:19:in `execute'
remote: /tmp/build_2b912bde/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.8/lib/concurrent-ruby/concurrent/promise.rb:563:in `block in realize'
remote: /tmp/build_2b912bde/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.8/lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:363:in `run_task'
remote: /tmp/build_2b912bde/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.8/lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:352:in `block (3 levels) in create_worker'
remote: /tmp/build_2b912bde/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.8/lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:335:in `loop'
remote: /tmp/build_2b912bde/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.8/lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:335:in `block (2 levels) in create_worker'
remote: /tmp/build_2b912bde/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.8/lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:334:in `catch'
remote: /tmp/build_2b912bde/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.8/lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:334:in `block in create_worker'
remote: Tasks: TOP => assets:precompile
remote: (See full trace by running task with --trace)
remote:
remote: !
remote: ! Precompiling assets failed.
remote: !
remote: ! Push rejected, failed to compile Ruby app.
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to sophro-hypnose.
remote:
To https://git.heroku.com/sophro-hypnose.git
! [remote rejected] HEAD -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/sophro-hypnose.git'
I've search on Stackoverflow or on other website and no one things worked for me. Maybe cause their question were too old.
I've already try to add this line in config/application.rb
config.assets.initialize_on_precompile = false
But if i run again : git push heroku HEAD:master
I just got a problem with rake impossible to solve too like : Could not detect rake tasks
Nothing on the web worked for this error.
I try to bundle rake update ect. but there nothing to do.
How fix the Precompiling assets failed. error? Can be cause rails or ruby version ?
From the error is seems you have a space after progid
filter: progid: DXImageTransform.Microsoft.BasicImage(rotation=1);
See if it works with:
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1);
I am working on a web application for a Udemy course and even though everything works fine on my preview, I have noticed at some point heroku was not receiving the updates. Here is what happens when I try git push heroku master:
Counting objects: 219, done.
Compressing objects: 100% (216/216), done.
Writing objects: 100% (219/219), 607.44 KiB | 6.20 MiB/s, done.
Total 219 (delta 44), 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.4.1
remote: -----> Installing dependencies using bundler 1.15.2
remote: Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
remote: Warning: the running version of Bundler (1.15.2) is older than the version that created the lockfile (1.17.1). We suggest you upgrade to the latest version of Bundler by running `gem install bundler`.
remote: Fetching gem metadata from https://rubygems.org/.........
remote: Fetching version metadata from https://rubygems.org/..
remote: Fetching dependency metadata from https://rubygems.org/.
remote: Using rake 12.3.1
remote: Fetching concurrent-ruby 1.1.2
remote: Using minitest 5.11.3
remote: Using thread_safe 0.3.6
remote: Using builder 3.2.3
remote: Using erubi 1.7.1
remote: Using mini_portile2 2.3.0
remote: Using crass 1.0.4
remote: Fetching rack 2.0.6
remote: Using nio4r 2.3.1
remote: Using websocket-extensions 0.1.3
remote: Using mini_mime 1.0.1
remote: Using arel 9.0.0
remote: Using mimemagic 0.3.2
remote: Using execjs 2.7.0
remote: Using msgpack 1.2.4
remote: Using rb-fsevent 0.10.3
remote: Using ffi 1.9.25
remote: Using bundler 1.15.2
remote: Using coffee-script-source 1.12.2
remote: Fetching method_source 0.9.1
remote: Installing method_source 0.9.1
remote: Using thor 0.20.0
remote: Using multi_json 1.13.1
remote: Using pg 1.1.3
remote: Using puma 3.12.0
remote: Using rails_serve_static_assets 0.0.5
remote: Using rails_stdout_logging 0.0.5
remote: Using tilt 2.0.8
remote: Using turbolinks-source 5.2.0
remote: Using tzinfo 1.2.5
remote: Using nokogiri 1.8.5
remote: Using websocket-driver 0.7.0
remote: Using mail 2.7.1
remote: Using marcel 0.3.3
remote: Using autoprefixer-rails 9.3.1
remote: Using uglifier 4.1.19
remote: Using bootsnap 1.3.2
remote: Using rb-inotify 0.9.10
remote: Using coffee-script 2.4.1
remote: Using rails_12factor 0.0.3
remote: Using turbolinks 5.2.0
remote: Using loofah 2.2.3
remote: Using sass-listen 4.0.0
remote: Using rails-html-sanitizer 1.0.4
remote: Fetching sass 3.7.0
remote: Installing concurrent-ruby 1.1.2
remote: Installing rack 2.0.6
remote: Installing sass 3.7.0
remote: Using i18n 1.1.1
remote: Using activesupport 5.2.1
remote: Using rails-dom-testing 2.0.3
remote: Using globalid 0.4.1
remote: Using activemodel 5.2.1
remote: Fetching jbuilder 2.8.0
remote: Using actionview 5.2.1
remote: Using activejob 5.2.1
remote: Using activerecord 5.2.1
remote: Using rack-test 1.1.0
remote: Using sprockets 3.7.2
remote: Using actionpack 5.2.1
remote: Using bootstrap-sass 3.3.7
remote: Using actioncable 5.2.1
remote: Using actionmailer 5.2.1
remote: Using activestorage 5.2.1
remote: Using railties 5.2.1
remote: Using sprockets-rails 3.2.1
remote: Using coffee-rails 4.2.2
remote: Fetching font-awesome-rails 4.7.0.4
remote: Installing jbuilder 2.8.0
remote: Fetching jquery-rails 4.3.3
remote: Using rails 5.2.1
remote: Using sass-rails 5.0.7
remote: Installing jquery-rails 4.3.3
remote: Installing font-awesome-rails 4.7.0.4
remote: Bundle complete! 23 Gemfile dependencies, 68 gems now installed.
remote: Gems in the groups development and test were not installed.
remote: Bundled gems are installed into ./vendor/bundle.
remote: Post-install message from sass:
remote:
remote: Ruby Sass is deprecated and will be unmaintained as of 26 March 2019.
remote:
remote: * If you use Sass as a command-line tool, we recommend using Dart Sass, the new
remote: primary implementation: https://sass-lang.com/install
remote:
remote: * If you use Sass as a plug-in for a Ruby web framework, we recommend using the
remote: sassc gem: https://github.com/sass/sassc-ruby#readme
remote:
remote: * For more details, please refer to the Sass blog:
remote: http://sass.logdown.com/posts/7081811
remote:
remote: Bundle completed (3.60s)
remote: Cleaning up the bundler cache.
remote: Warning: the running version of Bundler (1.15.2) is older than the version that created the lockfile (1.17.1). We suggest you upgrade to the latest version of Bundler by running `gem install bundler`.
remote: Removing jbuilder (2.7.0)
remote: Removing method_source (0.9.0)
remote: Removing rack (2.0.5)
remote: Removing concurrent-ruby (1.0.5)
remote: Removing sass (3.6.0)
remote: The latest bundler is 2.0.0.pre.1, but you are currently running 1.15.2.
remote: To update, run `gem install bundler --pre`
remote: -----> Installing node-v8.10.0-linux-x64
remote: -----> Detecting rake tasks
remote: -----> Preparing app for Rails asset pipeline
remote: Running: rake assets:precompile
remote: Yarn executable was not detected in the system.
remote: Download Yarn at https://yarnpkg.com/en/docs/install
remote: I, [2018-11-10T02:53:43.116047 #407] INFO -- : Writing /tmp/build_6086175200f5550c5b9817387635ee22/public/assets/application-50b71e7b0b661292fd6fba40f84e1a84bfbb82bd7cccf29f36f75e6851fc30f1.js
remote: I, [2018-11-10T02:53:43.116490 #407] INFO -- : Writing /tmp/build_6086175200f5550c5b9817387635ee22/public/assets/application-50b71e7b0b661292fd6fba40f84e1a84bfbb82bd7cccf29f36f75e6851fc30f1.js.gz
remote: rake aborted!
remote: Sass::SyntaxError: Invalid CSS after "...top: 4px solid ": expected ";", was "\ ;"
remote: (sass):4014
remote: /tmp/build_6086175200f5550c5b9817387635ee22/vendor/bundle/ruby/2.4.0/gems/sass-3.7.0/lib/sass/scss/parser.rb:1305:in `expected'
remote: /tmp/build_6086175200f5550c5b9817387635ee22/vendor/bundle/ruby/2.4.0/gems/sass-3.7.0/lib/sass/scss/parser.rb:1235:in `expected'
remote: /tmp/build_6086175200f5550c5b9817387635ee22/vendor/bundle/ruby/2.4.0/gems/sass-3.7.0/lib/sass/scss/parser.rb:1230:in `tok!'
remote: /tmp/build_6086175200f5550c5b9817387635ee22/vendor/bundle/ruby/2.4.0/gems/sass-3.7.0/lib/sass/scss/parser.rb:815:in `block in try_declaration'
remote: /tmp/build_6086175200f5550c5b9817387635ee22/vendor/bundle/ruby/2.4.0/gems/sass-3.7.0/lib/sass/scss/parser.rb:1281:in `rethrow'
remote: /tmp/build_6086175200f5550c5b9817387635ee22/vendor/bundle/ruby/2.4.0/gems/sass-3.7.0/lib/sass/scss/parser.rb:820:in `try_declaration'
remote: /tmp/build_6086175200f5550c5b9817387635ee22/vendor/bundle/ruby/2.4.0/gems/sass-3.7.0/lib/sass/scss/parser.rb:743:in `declaration_or_ruleset'
remote: /tmp/build_6086175200f5550c5b9817387635ee22/vendor/bundle/ruby/2.4.0/gems/sass-3.7.0/lib/sass/scss/parser.rb:708:in `block_child'
remote: /tmp/build_6086175200f5550c5b9817387635ee22/vendor/bundle/ruby/2.4.0/gems/sass-3.7.0/lib/sass/scss/parser.rb:700:in `block_contents'
remote: /tmp/build_6086175200f5550c5b9817387635ee22/vendor/bundle/ruby/2.4.0/gems/sass-3.7.0/lib/sass/scss/parser.rb:689:in `block'
remote: /tmp/build_6086175200f5550c5b9817387635ee22/vendor/bundle/ruby/2.4.0/gems/sass-3.7.0/lib/sass/scss/parser.rb:681:in `ruleset'
remote: /tmp/build_6086175200f5550c5b9817387635ee22/vendor/bundle/ruby/2.4.0/gems/sass-3.7.0/lib/sass/scss/parser.rb:707:in `block_child'
remote: /tmp/build_6086175200f5550c5b9817387635ee22/vendor/bundle/ruby/2.4.0/gems/sass-3.7.0/lib/sass/scss/parser.rb:700:in `block_contents'
remote: /tmp/build_6086175200f5550c5b9817387635ee22/vendor/bundle/ruby/2.4.0/gems/sass-3.7.0/lib/sass/scss/parser.rb:137:in `stylesheet'
remote: /tmp/build_6086175200f5550c5b9817387635ee22/vendor/bundle/ruby/2.4.0/gems/sass-3.7.0/lib/sass/scss/parser.rb:41:in `parse'
remote: /tmp/build_6086175200f5550c5b9817387635ee22/vendor/bundle/ruby/2.4.0/gems/sass-3.7.0/lib/sass/engine.rb:414:in `_to_tree'
remote: /tmp/build_6086175200f5550c5b9817387635ee22/vendor/bundle/ruby/2.4.0/gems/sass-3.7.0/lib/sass/engine.rb:290:in `render'
remote: /tmp/build_6086175200f5550c5b9817387635ee22/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.2/lib/sprockets/sass_compressor.rb:48:in `call'
remote: /tmp/build_6086175200f5550c5b9817387635ee22/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.2/lib/sprockets/sass_compressor.rb:28:in `call'
remote: /tmp/build_6086175200f5550c5b9817387635ee22/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:75:in `call_processor'
remote: /tmp/build_6086175200f5550c5b9817387635ee22/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:57:in `block in call_processors'
remote: /tmp/build_6086175200f5550c5b9817387635ee22/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:56:in `reverse_each'
remote: /tmp/build_6086175200f5550c5b9817387635ee22/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:56:in `call_processors'
remote: /tmp/build_6086175200f5550c5b9817387635ee22/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:134:in `load_from_unloaded'
remote: /tmp/build_6086175200f5550c5b9817387635ee22/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:60:in `block in load'
remote: /tmp/build_6086175200f5550c5b9817387635ee22/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:317:in `fetch_asset_from_dependency_cache'
remote: /tmp/build_6086175200f5550c5b9817387635ee22/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:44:in `load'
remote: /tmp/build_6086175200f5550c5b9817387635ee22/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.2/lib/sprockets/cached_environment.rb:20:in `block in initialize'
remote: /tmp/build_6086175200f5550c5b9817387635ee22/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.2/lib/sprockets/cached_environment.rb:47:in `load'
remote: /tmp/build_6086175200f5550c5b9817387635ee22/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.2/lib/sprockets/base.rb:66:in `find_asset'
remote: /tmp/build_6086175200f5550c5b9817387635ee22/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.2/lib/sprockets/base.rb:73:in `find_all_linked_assets'
remote: /tmp/build_6086175200f5550c5b9817387635ee22/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.2/lib/sprockets/manifest.rb:142:in `block in find'
remote: /tmp/build_6086175200f5550c5b9817387635ee22/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:114:in `block (2 levels) in logical_paths'
remote: /tmp/build_6086175200f5550c5b9817387635ee22/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:228:in `block in stat_tree'
remote: /tmp/build_6086175200f5550c5b9817387635ee22/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:212:in `block in stat_directory'
remote: /tmp/build_6086175200f5550c5b9817387635ee22/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:209:in `each'
remote: /tmp/build_6086175200f5550c5b9817387635ee22/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:209:in `stat_directory'
remote: /tmp/build_6086175200f5550c5b9817387635ee22/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:227:in `stat_tree'
remote: /tmp/build_6086175200f5550c5b9817387635ee22/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:105:in `each'
remote: /tmp/build_6086175200f5550c5b9817387635ee22/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:105:in `block in logical_paths'
remote: /tmp/build_6086175200f5550c5b9817387635ee22/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:104:in `each'
remote: /tmp/build_6086175200f5550c5b9817387635ee22/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:104:in `logical_paths'
remote: /tmp/build_6086175200f5550c5b9817387635ee22/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.2/lib/sprockets/manifest.rb:140:in `find'
remote: /tmp/build_6086175200f5550c5b9817387635ee22/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.2/lib/sprockets/manifest.rb:186:in `compile'
remote: /tmp/build_6086175200f5550c5b9817387635ee22/vendor/bundle/ruby/2.4.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/task.rb:68:in `block (3 levels) in define'
remote: /tmp/build_6086175200f5550c5b9817387635ee22/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.2/lib/rake/sprocketstask.rb:147:in `with_logger'
remote: /tmp/build_6086175200f5550c5b9817387635ee22/vendor/bundle/ruby/2.4.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/task.rb:67:in `block (2 levels) in define'
remote: /tmp/build_6086175200f5550c5b9817387635ee22/vendor/bundle/ruby/2.4.0/gems/rake-12.3.1/exe/rake:27:in `<top (required)>'
remote: Tasks: TOP => assets:precompile
remote: (See full trace by running task with --trace)
remote:
remote: !
remote: ! Precompiling assets failed.
remote: !
remote: ! Push rejected, failed to compile Ruby app.
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to haunted-pumpkin-39985.
remote:
To https://git.heroku.com/haunted-pumpkin-39985.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/haunted-pumpkin-39985.git'
I notice the error "Yarn executable was not detected in system". I have searched everywhere and followed the instructions on installing yarn and the directions in this question : Rails precompile assets Yarn executable was not detected
Still didn't help. I am not sure if that is even the problem to why heroku won't update. I also notice the remark to run
gem install bundler --pre
Which I did and everything seemed to install fine in the terminal, but even after pushing I continue to get the same errors when trying to push to heroku. Any help is much appreciated, I have a feeling I am not seeing something here.
Edit: What got rid of this error for me was running
gem install sassc
I now have a totally different error, but that's for a different thread if I don't figure it out. Thanks for the help, everyone!
For this particular issue, my problem was with Sass. Running
gem install sassc
resolved this issue for me. I still cannot deploy to heroku to do Bundler issues, but there is no longer an issue about precompiling assets.
While trying to deploy my rails app to Heroku, I used
git push heroku master
It ran fine until the end. Here is the log:
Counting objects: 107, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (97/97), done.
Writing objects: 100% (107/107), 33.17 KiB | 0 bytes/s, done.
Total 107 (delta 9), 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.11.2
remote: Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
remote: Fetching gem metadata from https://rubygems.org/...........
remote: Fetching version metadata from https://rubygems.org/...
remote: Fetching dependency metadata from https://rubygems.org/..
remote: Rubygems 2.0.14.1 is not threadsafe, so your gems will be installed one at a time. Upgrade to Rubygems 2.1.0 or higher to enable parallel gem installation.
remote: Installing rake 11.1.2
remote: Installing i18n 0.7.0
remote: Installing json 1.8.3 with native extensions
remote: Installing minitest 5.8.4
remote: Installing thread_safe 0.3.5
remote: Installing builder 3.2.2
remote: Installing erubis 2.7.0
remote: Installing rack 1.5.5
remote: Installing mime-types 1.25.1
remote: Installing polyglot 0.3.5
remote: Installing arel 5.0.1.20140414130214
remote: Installing sass 3.2.19
remote: Installing coffee-script-source 1.10.0
remote: Installing execjs 2.6.0
remote: Installing thor 0.19.1
remote: Installing hike 1.2.3
remote: Installing multi_json 1.11.2
remote: Installing pg 0.18.4 with native extensions
remote: Using bundler 1.11.2
remote: Installing tilt 1.4.1
remote: Installing rails_serve_static_assets 0.0.5
remote: Installing rails_stdout_logging 0.0.5
remote: Installing rdoc 4.2.2
remote: Installing tzinfo 1.2.2
remote: Installing rack-test 0.6.3
remote: Installing treetop 1.4.15
remote: Installing bootstrap-sass 3.0.3.0
remote: Installing coffee-script 2.4.1
remote: Installing uglifier 3.0.0
remote: Installing sprockets 2.12.4
remote: Installing rails_12factor 0.0.3
remote: Installing sdoc 0.4.1
remote: Installing activesupport 4.1.1
remote: Installing mail 2.5.4
remote: Installing actionview 4.1.1
remote: Installing activemodel 4.1.1
remote: Installing climate_control 0.0.3
remote: Installing jbuilder 1.5.3
remote: Installing actionpack 4.1.1
remote: Installing activerecord 4.1.1
remote: Installing cocaine 0.5.8
remote: Installing actionmailer 4.1.1
remote: Installing railties 4.1.1
remote: Installing sprockets-rails 2.3.3
remote: Installing paperclip 3.5.4
remote: Installing coffee-rails 4.0.1
remote: Installing jquery-rails 3.1.4
remote: Installing rails 4.1.1
remote: Installing sass-rails 4.0.5
remote: Installing turbolinks 2.5.3
remote: Bundle complete! 13 Gemfile dependencies, 50 gems now installed.
remote: Gems in the groups development and test were not installed.
remote: Bundled gems are installed into ./vendor/bundle.
remote: Post-install message from rdoc:
remote: Depending on your version of ruby, you may need to 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 to do! Yay!
remote: Bundle completed (37.94s)
remote: Cleaning up the bundler cache.
remote: -----> Preparing app for Rails asset pipeline
remote: Running: rake assets:precompile
remote: rake aborted!
remote: NoMethodError: undefined method `raise_in_transactional_callbacks=' for ActiveRecord::Base:Class
remote: /tmp/build_7a890592e7261c6a314b269df7f376b2/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.1/lib/active_record/dynamic_matchers.rb:26:in `method_missing'
remote: /tmp/build_7a890592e7261c6a314b269df7f376b2/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.1/lib/active_record/railtie.rb:110:in `block (3 levels) in <class:Railtie>'
remote: /tmp/build_7a890592e7261c6a314b269df7f376b2/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.1/lib/active_record/railtie.rb:109:in `each'
remote: /tmp/build_7a890592e7261c6a314b269df7f376b2/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.1/lib/active_record/railtie.rb:109:in `block (2 levels) in <class:Railtie>'
remote: /tmp/build_7a890592e7261c6a314b269df7f376b2/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.1/lib/active_support/lazy_load_hooks.rb:38:in `instance_eval'
remote: /tmp/build_7a890592e7261c6a314b269df7f376b2/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.1/lib/active_support/lazy_load_hooks.rb:38:in `execute_hook'
remote: /tmp/build_7a890592e7261c6a314b269df7f376b2/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.1/lib/active_support/lazy_load_hooks.rb:28:in `block in on_load'
remote: /tmp/build_7a890592e7261c6a314b269df7f376b2/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.1/lib/active_support/lazy_load_hooks.rb:27:in `each'
remote: /tmp/build_7a890592e7261c6a314b269df7f376b2/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.1/lib/active_support/lazy_load_hooks.rb:27:in `on_load'
remote: /tmp/build_7a890592e7261c6a314b269df7f376b2/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.1/lib/active_record/railtie.rb:108:in `block in <class:Railtie>'
remote: /tmp/build_7a890592e7261c6a314b269df7f376b2/vendor/bundle/ruby/2.0.0/gems/railties-4.1.1/lib/rails/initializable.rb:30:in `instance_exec'
remote: /tmp/build_7a890592e7261c6a314b269df7f376b2/vendor/bundle/ruby/2.0.0/gems/railties-4.1.1/lib/rails/initializable.rb:30:in `run'
remote: /tmp/build_7a890592e7261c6a314b269df7f376b2/vendor/bundle/ruby/2.0.0/gems/railties-4.1.1/lib/rails/initializable.rb:55:in `block in run_initializers'
remote: /tmp/build_7a890592e7261c6a314b269df7f376b2/vendor/bundle/ruby/2.0.0/gems/railties-4.1.1/lib/rails/initializable.rb:54:in `run_initializers'
remote: /tmp/build_7a890592e7261c6a314b269df7f376b2/vendor/bundle/ruby/2.0.0/gems/railties-4.1.1/lib/rails/application.rb:288:in `initialize!'
remote: /tmp/build_7a890592e7261c6a314b269df7f376b2/config/environment.rb:5:in `<top (required)>'
remote: /tmp/build_7a890592e7261c6a314b269df7f376b2/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.1/lib/active_support/dependencies.rb:247:in `require'
remote: /tmp/build_7a890592e7261c6a314b269df7f376b2/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.1/lib/active_support/dependencies.rb:247:in `block in require'
remote: /tmp/build_7a890592e7261c6a314b269df7f376b2/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.1/lib/active_support/dependencies.rb:232:in `load_dependency'
remote: /tmp/build_7a890592e7261c6a314b269df7f376b2/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.1/lib/active_support/dependencies.rb:247:in `require'
remote: /tmp/build_7a890592e7261c6a314b269df7f376b2/vendor/bundle/ruby/2.0.0/gems/railties-4.1.1/lib/rails/application.rb:264:in `require_environment!'
remote: /tmp/build_7a890592e7261c6a314b269df7f376b2/vendor/bundle/ruby/2.0.0/gems/railties-4.1.1/lib/rails/application.rb:367:in `block in run_tasks_blocks'
remote: /tmp/build_7a890592e7261c6a314b269df7f376b2/vendor/bundle/ruby/2.0.0/gems/sprockets-rails-2.3.3/lib/sprockets/rails/task.rb:64:in `block (2 levels) in define'
remote: Tasks: TOP => environment
remote: (See full trace by running task with --trace)
remote: !
remote: ! Precompiling assets failed.
remote: !
remote:
remote: ! Push rejected, failed to compile Ruby app
remote:
remote: Verifying deploy...
remote:
remote: ! Push rejected to sleepy-thicket-74065.
remote:
To https://git.heroku.com/sleepy-thicket-74065.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/sleepy-thicket-74065.git'
Please ask if there are any other files that you want to see. I have checked a lot of the other questions with this problem, and none of the solutions are working.
My gem file was messed up, and I had the wrong version of Ruby defined.
Full disclosure- I am a new to coding.
Initially when I tried the command $ git push heroku master -I received the following error, "uninitialized constant Devise".
I moved the gem devise(Gemfile) from (group :development, :test do) to (group :production do) to no avail. I even tried it moving outside the previously mentioned groups. This was returned as a result: failed to push some refs to 'https://git.heroku.com.
Following that I ran the push commands again and received this error 'FileNotFound: couldn't find file 'bootstrap-sprockets' with type'application/javascript.' I removed the bootstrap-sprockets from your application.js subsequently. That failed also. I moved everything back to its original place and tried to push again and this what returned:
Counting objects: 229, done.
Delta compression using up to 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 from https://rubygems.org/...........
remote: Fetching version metadata from https://rubygems.org/...
remote: Fetching dependency metadata from https://rubygems.org/..
remote: Rubygems 2.0.14 is not threadsafe, so your gems must be installed one at a time. Upgrade to Rubygems 2.1.0 or higher to 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 now installed.
remote: Gems in the groups development and test were not installed.
remote: Bundled gems are installed into ./vendor/bundle.
remote: Post-install message from rdoc:
remote: Depending on your version of ruby, you may need to 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 to do! Yay!
remote: Bundle completed (86.26s)
remote: Cleaning up the bundler cache.
remote: -----> Preparing app for Rails asset pipeline
remote: Running: rake assets:precompile
remote: rake aborted!
remote: Sprockets::FileNotFound: couldn't find file 'bootstrap' with 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 by running task with --trace)
remote: !
remote: ! Precompiling assets failed.
remote: !
remote:
remote: ! Push rejected, failed to compile Ruby app
remote:
remote: Verifying deploy....
remote:
remote: ! Push rejected to (app_name).
remote:
To https://git.heroku.com/app_name.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/app_name.git'
_________________________________________________________________________
I have tried several solutions. I cannot figure it out. Everything was moving along swimmingly. Any idea what I need to do to resolve this issue? App_name is just a replacement for the original name by the way.
Any help is much appreciated. Thanks in advance.
It doesn't seem to be installing bootstap in production. Make sure you have bootstrap included in your Gemfile correctly and not only included in development.
I've bben trying to deploy a Ruby application to Heroku. The application works fine locally but I keep getting this error when I try and deploy.
Being very new to Ruby I'm not sure where I'm going wrong.
I've removed the the bootstrap-theme.css.map to see if that would make a difference.
I've been trying all week to get this working and keep getting to this point and get no further.
ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-darwin14]
Rails 4.2.0
Any ideas
Thanks
Total 1679 (delta 1010), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Removing .DS_Store files
remote: -----> Ruby app detected
remote: -----> Compiling Ruby/Rails
remote: -----> Using Ruby version: ruby-2.2.0
remote: -----> Installing dependencies using 1.7.12
remote: Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
remote: Fetching gem metadata from https://rubygems.org/...........
remote: Using rake 10.4.2
remote: Installing minitest 5.5.1
remote: Installing i18n 0.7.0
remote: Installing builder 3.2.2
remote: Installing thread_safe 0.3.5
remote: Installing mini_portile 0.6.2
remote: Installing erubis 2.7.0
remote: Installing rack 1.6.0
remote: Installing mime-types 2.4.3
remote: Installing arel 6.0.0
remote: Installing ice_nine 0.11.1
remote: Installing json 1.8.2
remote: Installing bootstrap_form 2.3.0
remote: Installing coffee-script-source 1.9.1
remote: Installing execjs 2.4.0
remote: Installing thor 0.19.1
remote: Installing equalizer 0.0.9
remote: Installing hashie 3.4.0
remote: Installing multi_json 1.11.0
remote: Installing multi_xml 0.5.5
remote: Installing hike 1.2.3
remote: Using bundler 1.7.12
remote: Installing bcrypt 3.1.10
remote: Using rdoc 4.2.0
remote: Installing tilt 1.4.1
remote: Installing sass 3.2.19
remote: Installing will_paginate 3.0.7
remote: Installing tzinfo 1.2.2
remote: Installing descendants_tracker 0.0.4
remote: Installing rack-test 0.6.3
remote: Installing rack-accept 0.4.5
remote: Installing rack-mount 0.8.3
remote: Installing mail 2.6.3
remote: Installing coffee-script 2.3.0
remote: Installing uglifier 2.7.1
remote: Installing sdoc 0.4.1
remote: Installing sprockets 2.12.3
remote: Installing activesupport 4.2.0
remote: Installing axiom-types 0.1.1
remote: Installing coercible 1.0.0
remote: Installing rails-deprecated_sanitizer 1.0.3
remote: Installing globalid 0.3.3
remote: Installing activemodel 4.2.0
remote: Installing climate_control 0.0.3
remote: Installing jbuilder 1.5.3
remote: Installing virtus 1.0.4
remote: Installing activejob 4.2.0
remote: Installing activerecord 4.2.0
remote: Installing protected_attributes 1.0.8
remote: Installing cocaine 0.5.7
remote: Installing grape 0.11.0
remote: Installing paperclip 4.2.1
remote: Installing nokogiri 1.6.6.2
remote: Installing loofah 2.0.1
remote: Installing rails-dom-testing 1.0.5
remote: Installing rails-html-sanitizer 1.0.2
remote: Installing actionview 4.2.0
remote: Installing actionpack 4.2.0
remote: Installing actionmailer 4.2.0
remote: Installing railties 4.2.0
remote: Installing pg 0.18.1
remote: Installing sprockets-rails 2.2.4
remote: Installing coffee-rails 4.0.1
remote: Installing jquery-rails 4.0.3
remote: Installing responders 2.1.0
remote: Installing jquery-ui-rails 5.0.3
remote: Installing sass-rails 4.0.5
remote: Installing turbolinks 2.5.3
remote: Installing rails 4.2.0
remote: Your bundle is complete!
remote: Gems in the groups development and test were not installed.
remote: It was installed into ./vendor/bundle
remote: Bundle completed (29.23s)
remote: Cleaning up the bundler cache.
remote: -----> Preparing app for Rails asset pipeline
remote: Running: rake assets:precompile
remote: DEPRECATION WARNING: The configuration option `config.serve_static_assets` has been renamed to `config.serve_static_files` to clarify its role (it merely enables serving everything in the `public` folder and is unrelated to the asset pipeline). The `serve_static_assets` alias will be removed in Rails 5.0. Please migrate your configuration files accordingly. (called from block in <top (required)> at /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/config/environments/production.rb:23)
remote: rake aborted!
remote: Sass::SyntaxError: Invalid CSS after "...":3,"sources":[": expected "|", was ""less/normalize..."
remote: (in /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/app/assets/bootstrap-3.1.1-dist/css/bootstrap.css.map)
remote: (sass):1
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sass-3.2.19/lib/sass/scss/parser.rb:1147:in `expected'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sass-3.2.19/lib/sass/scss/parser.rb:1085:in `expected'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sass-3.2.19/lib/sass/scss/parser.rb:1080:in `tok!'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sass-3.2.19/lib/sass/scss/parser.rb:785:in `attrib_name!'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sass-3.2.19/lib/sass/scss/parser.rb:753:in `attrib'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sass-3.2.19/lib/sass/scss/parser.rb:672:in `simple_selector_sequence'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sass-3.2.19/lib/sass/scss/parser.rb:646:in `_selector'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sass-3.2.19/lib/sass/scss/parser.rb:619:in `selector'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sass-3.2.19/lib/sass/scss/parser.rb:603:in `selector_sequence'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sass-3.2.19/lib/sass/scss/parser.rb:528:in `ruleset'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sass-3.2.19/lib/sass/scss/parser.rb:591:in `block in declaration_or_ruleset'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sass-3.2.19/lib/sass/scss/parser.rb:1123:in `call'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sass-3.2.19/lib/sass/scss/parser.rb:1123:in `rethrow'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sass-3.2.19/lib/sass/scss/parser.rb:592:in `declaration_or_ruleset'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sass-3.2.19/lib/sass/scss/parser.rb:554:in `block_child'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sass-3.2.19/lib/sass/scss/parser.rb:543:in `block_contents'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sass-3.2.19/lib/sass/scss/parser.rb:535:in `block'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sass-3.2.19/lib/sass/scss/parser.rb:529:in `ruleset'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sass-3.2.19/lib/sass/scss/parser.rb:553:in `block_child'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sass-3.2.19/lib/sass/scss/parser.rb:543:in `block_contents'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sass-3.2.19/lib/sass/scss/parser.rb:82:in `stylesheet'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sass-3.2.19/lib/sass/scss/parser.rb:27:in `parse'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sass-3.2.19/lib/sass/engine.rb:342:in `_to_tree'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sass-3.2.19/lib/sass/engine.rb:315:in `_render'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sass-3.2.19/lib/sass/engine.rb:262:in `render'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sprockets-2.12.3/lib/sprockets/sass_compressor.rb:24:in `evaluate'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/tilt-1.4.1/lib/tilt/template.rb:103:in `render'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sprockets-2.12.3/lib/sprockets/context.rb:197:in `block in evaluate'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sprockets-2.12.3/lib/sprockets/context.rb:194:in `each'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sprockets-2.12.3/lib/sprockets/context.rb:194:in `evaluate'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sprockets-2.12.3/lib/sprockets/bundled_asset.rb:25:in `initialize'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sprockets-2.12.3/lib/sprockets/base.rb:377:in `new'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sprockets-2.12.3/lib/sprockets/base.rb:377:in `build_asset'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sprockets-2.12.3/lib/sprockets/index.rb:94:in `block in build_asset'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sprockets-2.12.3/lib/sprockets/caching.rb:58:in `cache_asset'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sprockets-2.12.3/lib/sprockets/index.rb:93:in `build_asset'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sprockets-2.12.3/lib/sprockets/base.rb:287:in `find_asset'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sprockets-2.12.3/lib/sprockets/index.rb:61:in `find_asset'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sprockets-2.12.3/lib/sprockets/manifest.rb:211:in `block in find_asset'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sprockets-2.12.3/lib/sprockets/manifest.rb:257:in `benchmark'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sprockets-2.12.3/lib/sprockets/manifest.rb:210:in `find_asset'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sprockets-2.12.3/lib/sprockets/manifest.rb:119:in `block in compile'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sprockets-2.12.3/lib/sprockets/manifest.rb:118:in `each'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sprockets-2.12.3/lib/sprockets/manifest.rb:118:in `compile'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sprockets-rails-2.2.4/lib/sprockets/rails/task.rb:70:in `block (3 levels) in define'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sprockets-2.12.3/lib/rake/sprocketstask.rb:146:in `with_logger'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sprockets-rails-2.2.4/lib/sprockets/rails/task.rb:69:in `block (2 levels) in define'
remote: Tasks: TOP => assets:precompile
remote: (See full trace by running task with --trace)
remote: !
remote: ! Precompiling assets failed.
remote: !
remote:
remote: ! Push rejected, failed to compile Ruby app
remote:
remote: Verifying deploy...
remote:
remote: ! Push rejected to young-sands-7749.
remote:
To https://git.heroku.com/young-sands-7749.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/young-sands-7749.git'
I faced the similar problem, I run bundle update and it helped:
Installing spring 1.3.5 (was 1.3.4)
I eventually got the application code to deploy to Heroku.
I had to make sure that the Ruby and Rails version matched those supported by Heroku. I then followed this guide:
https://devcenter.heroku.com/articles/getting-started-with-rails4
An issue I still have is around the database data deployment. The development database was SQLite3 which is not supported by Heroku so I have to migrate the data to a local instance of PostgreSQL. This is proving to be a challenge and have posted another question to try and resolve this issue.
Thanks for the comments. Sontya's was useful to a R on R noobe.