I am trying to push my Rails app to Heroku and am getting the below error:
Counting objects: 151, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (151/151), done.
Writing objects: 100% (151/151), 25.49 MiB | 844.00 KiB/s, done.
Total 151 (delta 94), 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.5
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.2). 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.2
remote: Using concurrent-ruby 1.1.4
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: Using 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 ffi 1.9.25
remote: Using bundler 1.15.2
remote: Using multi_json 1.13.1
remote: Using method_source 0.9.2
remote: Using pg 0.21.0
remote: Using puma 3.12.0
remote: Using thor 0.20.3
remote: Using redis 4.1.0
remote: Using tilt 2.0.9
remote: Using i18n 1.2.0
remote: Using tzinfo 1.2.5
remote: Using nokogiri 1.8.5
remote: Using websocket-driver 0.7.0
remote: Using rack-test 1.1.0
remote: Using rack-proxy 0.6.5
remote: Using sprockets 3.7.2
remote: Using mail 2.7.1
remote: Using marcel 0.3.3
remote: Using autoprefixer-rails 9.4.2
remote: Using uglifier 4.1.20
remote: Using bootsnap 1.3.2
remote: Using sassc 2.0.0
remote: Using activesupport 5.2.1
remote: Using loofah 2.2.3
remote: Using rails-html-sanitizer 1.0.4
remote: Using rails-dom-testing 2.0.3
remote: Using globalid 0.4.1
remote: Using activemodel 5.2.1
remote: Using jbuilder 2.8.0
remote: Using bootstrap-sass 3.4.0
remote: Using font-awesome-sass 5.5.0.1
remote: Using actionview 5.2.1
remote: Using activejob 5.2.1
remote: Using activerecord 5.2.1
remote: Using actionpack 5.2.1
remote: Using actioncable 5.2.1
remote: Using activestorage 5.2.1
remote: Using railties 5.2.1
remote: Using sprockets-rails 3.2.1
remote: Using simple_form 4.1.0
remote: Using actionmailer 5.2.1
remote: Using webpacker 3.5.5
remote: Using sassc-rails 2.0.0
remote: Using rails 5.2.1
remote: Bundle complete! 20 Gemfile dependencies, 60 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 (2.94s)
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.2). We suggest you upgrade to the latest version of Bundler by running `gem install bundler`.
remote: The latest bundler is 2.0.0.pre.2, 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: -----> Installing yarn-v1.5.1
remote: -----> Detecting rake tasks
remote: -----> Preparing app for Rails asset pipeline
remote: Running: rake assets:precompile
remote: yarn install v1.5.1
remote: [1/4] Resolving packages...
remote: [2/4] Fetching packages...
remote: info fsevents#1.2.4: The platform "linux" is incompatible with this module.
remote: info "fsevents#1.2.4" is an optional dependency and failed compatibility check. Excluding it from installation.
remote: [3/4] Linking dependencies...
remote: warning "#rails/webpacker > postcss-cssnext#3.1.0" has unmet peer dependency "caniuse-lite#^1.0.30000697".
remote: warning " > webpack-dev-server#2.11.2" has unmet peer dependency "webpack#^2.2.0 || ^3.0.0".
remote: warning "webpack-dev-server > webpack-dev-middleware#1.12.2" has unmet peer dependency "webpack#^1.0.0 || ^2.0.0 || ^3.0.0".
remote: [4/4] Building fresh packages...
remote: Done in 20.00s.
remote: I, [2018-12-24T17:14:15.109116 #409] INFO -- : Writing /tmp/build_c45535d8c2a0f6b2e090f551394cd52a/public/assets/Circle-0fced0bef25671945de87c22a37c75605efb7f48d86ed387c97894abc57fc305.png
remote: I, [2018-12-24T17:14:15.115329 #409] INFO -- : Writing /tmp/build_c45535d8c2a0f6b2e090f551394cd52a/public/assets/architectural-design-architecture-bench-b3126997ea1f82ae64eb45638971e9a9852df31f03b2d80695bceabfedd0d789.jpg
remote: I, [2018-12-24T17:14:15.121854 #409] INFO -- : Writing /tmp/build_c45535d8c2a0f6b2e090f551394cd52a/public/assets/architecture-boy-building-e4a11ead07ae2f196935970b9f6d1617ceff81e1519c02973f7a3a0728b57e44.jpg
remote: I, [2018-12-24T17:14:15.126914 #409] INFO -- : Writing /tmp/build_c45535d8c2a0f6b2e090f551394cd52a/public/assets/architecture-bricks-buildings-52ba2f71d6d3c15c08fb7e526c88f8e4ba486f48490a8047824209fb7ed4beb3.jpg
remote: I, [2018-12-24T17:14:15.131626 #409] INFO -- : Writing /tmp/build_c45535d8c2a0f6b2e090f551394cd52a/public/assets/architecture-building-building-site-377c0ddb71908bb0093d000e36223925eab2e584b6bb583811a47157e15387e1.jpg
remote: I, [2018-12-24T17:14:15.135486 #409] INFO -- : Writing /tmp/build_c45535d8c2a0f6b2e090f551394cd52a/public/assets/asphalt-blur-bricks-9971516befa9aed81640a1be2daed94b2432e1aa8bda5c87e4d4de86981490de.jpg
remote: I, [2018-12-24T17:14:15.163513 #409] INFO -- : Writing /tmp/build_c45535d8c2a0f6b2e090f551394cd52a/public/assets/b&wbricks-e5ad65e07ae90a3aafd45674c36925bc4ce37672a3b7781dec1bf354da53bf15.jpg
remote: I, [2018-12-24T17:14:15.339917 #409] INFO -- : Writing /tmp/build_c45535d8c2a0f6b2e090f551394cd52a/public/assets/build-builder-builders-13272d04c77701847534e350ff582062d78773d79058f9ad13a0e714d1499f93.jpg
remote: I, [2018-12-24T17:14:15.349110 #409] INFO -- : Writing /tmp/build_c45535d8c2a0f6b2e090f551394cd52a/public/assets/portfolio-534dc7c251be1e38e52ab2f31cac69db6955cd4e907c79665627943ab1283231.svg
remote: I, [2018-12-24T17:14:15.349283 #409] INFO -- : Writing /tmp/build_c45535d8c2a0f6b2e090f551394cd52a/public/assets/portfolio-534dc7c251be1e38e52ab2f31cac69db6955cd4e907c79665627943ab1283231.svg.gz
remote: I, [2018-12-24T17:14:15.354135 #409] INFO -- : Writing /tmp/build_c45535d8c2a0f6b2e090f551394cd52a/public/assets/skyline-contractors-3da17ace5fc02409a2b797a9bf60c5d71710c0da9c7aba834e133e89971b1a27.svg
remote: I, [2018-12-24T17:14:15.354300 #409] INFO -- : Writing /tmp/build_c45535d8c2a0f6b2e090f551394cd52a/public/assets/skyline-contractors-3da17ace5fc02409a2b797a9bf60c5d71710c0da9c7aba834e133e89971b1a27.svg.gz
remote: rake aborted!
remote: Uglifier::Error: Unexpected token: name (anchorlinks). To use ES6 syntax, harmony mode must be enabled with Uglifier.new(:harmony => true).
remote: /tmp/build_c45535d8c2a0f6b2e090f551394cd52a/vendor/bundle/ruby/2.4.0/gems/uglifier-4.1.20/lib/uglifier.rb:234:in `parse_result'
remote: /tmp/build_c45535d8c2a0f6b2e090f551394cd52a/vendor/bundle/ruby/2.4.0/gems/uglifier-4.1.20/lib/uglifier.rb:216:in `run_uglifyjs'
remote: /tmp/build_c45535d8c2a0f6b2e090f551394cd52a/vendor/bundle/ruby/2.4.0/gems/uglifier-4.1.20/lib/uglifier.rb:168:in `compile'
remote: /tmp/build_c45535d8c2a0f6b2e090f551394cd52a/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.2/lib/sprockets/uglifier_compressor.rb:53:in `call'
remote: /tmp/build_c45535d8c2a0f6b2e090f551394cd52a/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.2/lib/sprockets/uglifier_compressor.rb:28:in `call'
remote: /tmp/build_c45535d8c2a0f6b2e090f551394cd52a/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:75:in `call_processor
remote: /tmp/build_c45535d8c2a0f6b2e090f551394cd52a/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_c45535d8c2a0f6b2e090f551394cd52a/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:56:in `reverse_each'
remote: /tmp/build_c45535d8c2a0f6b2e090f551394cd52a/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:56:in `call_processors'
remote: /tmp/build_c45535d8c2a0f6b2e090f551394cd52a/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:134:in `load_from_unloaded'
remote: /tmp/build_c45535d8c2a0f6b2e090f551394cd52a/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:60:in `block in load'
remote: /tmp/build_c45535d8c2a0f6b2e090f551394cd52a/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_c45535d8c2a0f6b2e090f551394cd52a/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:44:in `load'
remote: /tmp/build_c45535d8c2a0f6b2e090f551394cd52a/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.2/lib/sprockets/cached_environment.rb:20:in `block in initialize'
remote: /tmp/build_c45535d8c2a0f6b2e090f551394cd52a/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.2/lib/sprockets/cached_environment.rb:47:in `load'
remote: /tmp/build_c45535d8c2a0f6b2e090f551394cd52a/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.2/lib/sprockets/base.rb:66:in `find_asset'
remote: /tmp/build_c45535d8c2a0f6b2e090f551394cd52a/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.2/lib/sprockets/base.rb:73:in `find_all_linked_assets'
remote: /tmp/build_c45535d8c2a0f6b2e090f551394cd52a/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.2/lib/sprockets/manifest.rb:142:in `block in find'
remote: /tmp/build_c45535d8c2a0f6b2e090f551394cd52a/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_c45535d8c2a0f6b2e090f551394cd52a/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_c45535d8c2a0f6b2e090f551394cd52a/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_c45535d8c2a0f6b2e090f551394cd52a/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:209:in `each'
remote: /tmp/build_c45535d8c2a0f6b2e090f551394cd52a/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:209:in `stat_directory'
remote: /tmp/build_c45535d8c2a0f6b2e090f551394cd52a/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:227:in `stat_tree'
remote: /tmp/build_c45535d8c2a0f6b2e090f551394cd52a/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:105:in `each'
remote: /tmp/build_c45535d8c2a0f6b2e090f551394cd52a/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:105:in `block in logical_paths
remote: /tmp/build_c45535d8c2a0f6b2e090f551394cd52a/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:104:in `each'
remote: /tmp/build_c45535d8c2a0f6b2e090f551394cd52a/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:104:in `logical_paths'
remote: /tmp/build_c45535d8c2a0f6b2e090f551394cd52a/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.2/lib/sprockets/manifest.rb:140:in `find'
remote: /tmp/build_c45535d8c2a0f6b2e090f551394cd52a/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.2/lib/sprockets/manifest.rb:186:in `compile'
remote: /tmp/build_c45535d8c2a0f6b2e090f551394cd52a/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_c45535d8c2a0f6b2e090f551394cd52a/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.2/lib/rake/sprocketstask.rb:147:in `with_logger'
remote: /tmp/build_c45535d8c2a0f6b2e090f551394cd52a/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_c45535d8c2a0f6b2e090f551394cd52a/vendor/bundle/ruby/2.4.0/gems/rake-12.3.2/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 skyline-contactors.
remote:
To https://git.heroku.com/skyline-contactors.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/skyline- contactors.git'
Before marking this as a duplicate, I have seen other threads with the same issue and have tried the following:
Uninstalling & reinstalling bundler (I've previously had bundler version issues),
Removing the Gemfile.lock,
Tried $rake assets:precompile,
Added "config.assets.initialize_on_precompile = false" to config/application.rb.
None of these have worked for me, unfortunately.
I recently changed the name of the Heroku file, but I don't think this will have any implications.
This is my Gemfile:
source 'https://rubygems.org'
ruby '2.4.5'
gem 'bootsnap', require: false
gem 'jbuilder', '~> 2.0'
gem 'pg', '~> 0.21'
gem 'puma'
gem 'rails', '5.2.1'
gem 'redis'
gem 'autoprefixer-rails'
gem 'bootstrap-sass', '~> 3.3'
gem 'font-awesome-sass', '~> 5.5.0'
gem 'sassc-rails'
gem 'simple_form'
gem 'uglifier'
gem 'webpacker'
group :development do
gem 'web-console', '>= 3.3.0'
end
group :development, :test do
gem 'pry-byebug'
gem 'pry-rails'
gem 'listen', '~> 3.0.5'
gem 'spring'
gem 'spring-watcher-listen', '~> 2.0.0'
gem 'dotenv-rails'
end
Apologies in advance if the question has indeed been answered on here before, but I think I have exhausted the existing resources. Please let me know if you see anything that I'm doing completely wrong; any feedback or assistance would be much appreciated, thank you.
The error is this part Uglifier::Error: Unexpected token: name (anchorlinks). To use ES6 syntax, harmony mode must be enabled with Uglifier.new(:harmony => true). This should solve it.
config/environments/production.rb
config.assets.js_compressor = Uglifier.new(:harmony => true)
Related
I'm new to Rails but have been working on an app the last few weeks that has been working great in development and in production when I deploy to Heroku.
Today I made some minor changes to my application.css file and now I am getting a "Precompiling assets failed" error when I try to deploy to Heroku. With a NoMethodError: undefined method `+' for nil:NilClass. Running ruby 2.6.5, Rails 6.0.3.1, PG 1.2.3
I've attached the logs below which may or may not be helpful. I obviously don't have the knowledge of how to debug this properly so advice on what might be causing the error is great but failing that, how should I be trying to replicate this error locally and figuring it out?
I've already tried, with no success:
Changing the application.css file to .scss
Adding config.assets.initialize_on_precompile = false to the application.rb file
Reverting to my last successful commit
Thank you!
Enumerating objects: 78, done.
Counting objects: 100% (78/78), done.
Delta compression using up to 8 threads
Compressing objects: 100% (61/61), done.
Writing objects: 100% (61/61), 5.07 KiB | 519.00 KiB/s, done.
Total 61 (delta 46), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Ruby app detected
remote: -----> Installing bundler 1.17.3
remote: -----> Removing BUNDLED WITH version in the Gemfile.lock
remote: -----> Compiling Ruby/Rails
remote: -----> Using Ruby version: ruby-2.6.5
remote:
remote: ###### WARNING:
remote:
remote: Removing `Gemfile.lock` because it was generated on Windows.
remote: Bundler will do a full resolve so native gems are handled properly.
remote: This may result in unexpected gem versions being used in your app.
remote: In rare occasions Bundler may not be able to resolve your dependencies at all.
remote: https://devcenter.heroku.com/articles/bundler-windows-gemfile
remote:
remote: -----> Installing dependencies using bundler 1.17.3
remote: Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4
remote: The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64
-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`.
remote: Fetching gem metadata from https://rubygems.org/.............
remote: Fetching gem metadata from https://rubygems.org/.
remote: Resolving dependencies.....
remote: Using rake 13.0.1
remote: Using concurrent-ruby 1.1.6
remote: Using minitest 5.14.1
remote: Using thread_safe 0.3.6
remote: Using zeitwerk 2.3.0
remote: Using builder 3.2.4
remote: Using erubi 1.9.0
remote: Using mini_portile2 2.4.0
remote: Using crass 1.0.6
remote: Using rack 2.2.2
remote: Using nio4r 2.5.2
remote: Fetching websocket-extensions 0.1.5
remote: Using mimemagic 0.3.5
remote: Using mini_mime 1.0.2
remote: Using formtastic_i18n 0.6.0
remote: Using method_source 1.0.0
remote: Using thor 1.0.1
remote: Using kaminari-core 1.2.1
remote: Fetching ffi 1.13.0
remote: Using tilt 2.0.10
remote: Using bcrypt 3.1.13
remote: Using msgpack 1.3.3
remote: Using bundler 1.17.3
remote: Using orm_adapter 0.5.0
remote: Using hashids 1.0.5
remote: Using pg 1.2.3
remote: Using turbolinks-source 5.2.0
remote: Fetching i18n 1.8.3
remote: Installing websocket-extensions 0.1.5
remote: Installing i18n 1.8.3
remote: Using tzinfo 1.2.7
remote: Using nokogiri 1.10.9
remote: Using puma 4.3.5
remote: Using rack-test 1.1.0
remote: Fetching sprockets 4.0.1
remote: Installing sprockets 4.0.1
remote: Installing ffi 1.13.0 with native extensions
remote: Using warden 1.2.8
remote: Using rack-proxy 0.6.5
remote: Using marcel 0.3.3
remote: Using mail 2.7.1
remote: Using bootsnap 1.4.6
remote: Using turbolinks 5.2.1
remote: Using loofah 2.5.0
remote: Using websocket-driver 0.7.2
remote: Using activesupport 6.0.3.1
remote: Using rails-dom-testing 2.0.3
remote: Using rails-html-sanitizer 1.3.0
remote: Using globalid 0.4.2
remote: Using activemodel 6.0.3.1
remote: Using arbre 1.2.1
remote: Using jbuilder 2.10.0
remote: Using actionview 6.0.3.1
remote: Using activejob 6.0.3.1
remote: Using activerecord 6.0.3.1
remote: Using actionpack 6.0.3.1
remote: Using kaminari-actionview 1.2.1
remote: Using kaminari-activerecord 1.2.1
remote: Using polyamorous 2.3.2
remote: Using hashid-rails 1.4.0
remote: Using actioncable 6.0.3.1
remote: Using activestorage 6.0.3.1
remote: Using actionmailer 6.0.3.1
remote: Using formtastic 3.1.5
remote: Using has_scope 0.7.2
remote: Using railties 6.0.3.1
remote: Using kaminari 1.2.1
remote: Using ransack 2.3.2
remote: Using actionmailbox 6.0.3.1
remote: Using actiontext 6.0.3.1
remote: Using responders 3.0.1
remote: Using jquery-rails 4.4.0
remote: Using webpacker 4.2.2
remote: Using inherited_resources 1.11.0
remote: Using devise 4.7.1
remote: Using sprockets-rails 3.2.1
remote: Using rails 6.0.3.1
remote: Fetching sassc 2.4.0
remote: Installing sassc 2.4.0 with native extensions
remote: Using sassc-rails 2.1.2
remote: Using activeadmin 2.7.0
remote: Using sass-rails 6.0.0
remote: Bundle complete! 18 Gemfile dependencies, 77 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 i18n:
remote:
remote: HEADS UP! i18n 1.1 changed fallbacks to exclude default locale.
remote: But that may break your application.
remote:
remote: If you are upgrading your Rails application from an older version of Rails:
remote:
remote: Please check your Rails app for 'config.i18n.fallbacks = true'.
remote: If you're using I18n (>= 1.1.0) and Rails (< 5.2.2), this should be
remote: 'config.i18n.fallbacks = [I18n.default_locale]'.
remote: If not, fallbacks will be broken in your app by I18n 1.1.x.
remote:
remote: If you are starting a NEW Rails application, you can ignore this notice.
remote:
remote: For more info see:
remote: https://github.com/svenfuchs/i18n/releases/tag/v1.1.0
remote:
remote: Removing i18n (1.8.2)
remote: Removing sprockets (4.0.0)
remote: Removing websocket-extensions (0.1.4)
remote: Removing ffi (1.12.2)
remote: Removing sassc (2.3.0)
remote: Bundle completed (186.51s)
remote: Cleaning up the bundler cache.
remote: The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64
-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`.
remote: -----> Installing node-v10.15.3-linux-x64
remote: -----> Installing yarn-v1.16.0
remote: -----> Detecting rake tasks
remote: -----> Preparing app for Rails asset pipeline
remote: Running: rake assets:precompile
remote: yarn install v1.16.0
remote: [1/4] Resolving packages...
remote: [2/4] Fetching packages...
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.0" has unmet peer dependency "webpack#^4.0.0 || ^5.0.0".
remote: warning "webpack-dev-server > webpack-dev-middleware#3.7.2" has unmet peer dependency "webpack#^4.0.0".
remote: [4/4] Building fresh packages...
remote: Done in 23.47s.
remote: yarn install v1.16.0
remote: [1/4] Resolving packages...
remote: [2/4] Fetching packages...
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.0" has unmet peer dependency "webpack#^4.0.0 || ^5.0.0".
remote: warning "webpack-dev-server > webpack-dev-middleware#3.7.2" has unmet peer dependency "webpack#^4.0.0".
remote: [4/4] Building fresh packages...
remote: Done in 5.05s.
remote: I, [2020-06-05T05:23:48.123557 #791] INFO -- : Writing /tmp/build_89a8346fedd1ed19bb5329c741888493/public/assets/active_admin-312e30985f3b0561c5db85eaba9b50b1d2c6fcbcff0e0cd5ae0862f13ef86223
796473.css
remote: I, [2020-06-05T05:23:48.123844 #791] INFO -- : Writing /tmp/build_89a8346fedd1ed19bb5329c741888493/public/assets/active_admin-312e30985f3b0561c5db85eaba9b50b1d2c6fcbcff0e0cd5ae0862f13ef86223
796473.css.gz
remote: I, [2020-06-05T05:23:48.124090 #791] INFO -- : Writing /tmp/build_89a8346fedd1ed19bb5329c741888493/public/assets/active_admin/print-312e30cf99cbf27fb92065a9eacd28e6fad48fa72cadaf6e0918790e8d
35b11d8f99f6.css
remote: I, [2020-06-05T05:23:48.124270 #791] INFO -- : Writing /tmp/build_89a8346fedd1ed19bb5329c741888493/public/assets/active_admin/print-312e30cf99cbf27fb92065a9eacd28e6fad48fa72cadaf6e0918790e8d
35b11d8f99f6.css.gz
remote: I, [2020-06-05T05:23:48.124504 #791] INFO -- : Writing /tmp/build_89a8346fedd1ed19bb5329c741888493/public/assets/manifest-312e3075a11da44c802486bc6f65640aa48a730f0f684c5c07a42ba3cd1735eb3fb0
70.js
remote: I, [2020-06-05T05:23:48.124686 #791] INFO -- : Writing /tmp/build_89a8346fedd1ed19bb5329c741888493/public/assets/manifest-312e3075a11da44c802486bc6f65640aa48a730f0f684c5c07a42ba3cd1735eb3fb0
70.js.gz
remote: rake aborted!
remote: NoMethodError: undefined method `+' for nil:NilClass
remote: /tmp/build_89a8346fedd1ed19bb5329c741888493/vendor/bundle/ruby/2.6.0/gems/sprockets-4.0.1/lib/sprockets/asset.rb:138:in `etag'
remote: /tmp/build_89a8346fedd1ed19bb5329c741888493/vendor/bundle/ruby/2.6.0/gems/sprockets-4.0.1/lib/sprockets/asset.rb:67:in `block in digest_path'
remote: /tmp/build_89a8346fedd1ed19bb5329c741888493/vendor/bundle/ruby/2.6.0/gems/sprockets-4.0.1/lib/sprockets/asset.rb:67:in `sub'
remote: /tmp/build_89a8346fedd1ed19bb5329c741888493/vendor/bundle/ruby/2.6.0/gems/sprockets-4.0.1/lib/sprockets/asset.rb:67:in `digest_path'
remote: /tmp/build_89a8346fedd1ed19bb5329c741888493/vendor/bundle/ruby/2.6.0/gems/sprockets-4.0.1/lib/sprockets/manifest.rb:175:in `block in compile'
remote: /tmp/build_89a8346fedd1ed19bb5329c741888493/vendor/bundle/ruby/2.6.0/gems/sprockets-4.0.1/lib/sprockets/manifest.rb:173:in `each'
remote: /tmp/build_89a8346fedd1ed19bb5329c741888493/vendor/bundle/ruby/2.6.0/gems/sprockets-4.0.1/lib/sprockets/manifest.rb:173:in `compile'
remote: /tmp/build_89a8346fedd1ed19bb5329c741888493/vendor/bundle/ruby/2.6.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/task.rb:68:in `block (3 levels) in define'
remote: /tmp/build_89a8346fedd1ed19bb5329c741888493/vendor/bundle/ruby/2.6.0/gems/sprockets-4.0.1/lib/rake/sprocketstask.rb:148:in `with_logger'
remote: /tmp/build_89a8346fedd1ed19bb5329c741888493/vendor/bundle/ruby/2.6.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/task.rb:67:in `block (2 levels) in define'
remote: /tmp/build_89a8346fedd1ed19bb5329c741888493/vendor/bundle/ruby/2.6.0/gems/rake-13.0.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 ...
remote:
Here is possible solution: not tried yet, but you should take a look.
https://github.com/rails/sprockets/issues/683
Basically in config/initializers/assets.rb, you need to update the Rails.application.config.assets.version value as well. I dont know how this affects deployment (how to know when to change this value? do we rely on deployment to fail first, then change this?)
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.
I am having serious problems getting Heroku and github to work with me.
I notice that I do not get an authentication from Heroku once I put in my log in information:
heroku login
Enter your Heroku credentials.
Email: blank#gmail.com
Password (typing will be hidden):
Logged in as blank#gmail.com
I do not get an authentication message, something my instructor said was very important. I have no idea why. I have everything set up correctly, including the proper ssh key, which I got via:
heroku keys:add
Then
heroku create
This is where things start really going wrong. I never get
Git remote heroku added
Instead, I just get
Creating app... done, stack is cedar-14
https://agile-lake-38079.herokuapp.com/ | https://git.heroku.com/agilelake-38079.git
With no indication of anything added.
After
git push origin master
and
git push heroku master
I get this same error every single time:
'Counting objects: 66, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (55/55), done.
Writing objects: 100% (66/66), 16.44 KiB | 0 bytes/s, done.
Total 66 (delta 4), 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 --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 must be installed one at a time. Upgrade to Rubygems 2.1.0 or higher to enable parallel gem installation.
remote: Installing rake 10.5.0
remote: Installing i18n 0.7.0
remote: Installing json 1.8.3
remote: Installing minitest 5.8.4
remote: Installing thread_safe 0.3.5
remote: Installing tzinfo 1.2.2
remote: Installing activesupport 4.1.0
remote: Installing builder 3.2.2
remote: Installing erubis 2.7.0
remote: Installing actionview 4.1.0
remote: Installing rack 1.5.5
remote: Installing rack-test 0.6.3
remote: Installing actionpack 4.1.0
remote: Installing mime-types 1.25.1
remote: Installing polyglot 0.3.5
remote: Installing treetop 1.4.15
remote: Installing mail 2.5.4
remote: Installing actionmailer 4.1.0
remote: Installing activemodel 4.1.0
remote: Installing arel 5.0.1.20140414130214
remote: Installing activerecord 4.1.0
remote: Installing coffee-script-source 1.10.0
remote: Installing execjs 2.6.0
remote: Installing coffee-script 2.4.1
remote: Installing thor 0.19.1
remote: Installing railties 4.1.0
remote: Installing coffee-rails 4.0.1
remote: Installing hike 1.2.3
remote: Installing multi_json 1.11.2
remote: Installing jbuilder 2.0.0
remote: Installing jquery-rails 3.1.4
remote: Installing pg 0.18.4
remote: Using bundler 1.9.7
remote: Installing tilt 1.4.1
remote: Installing sprockets 2.11.0
remote: Installing sprockets-rails 2.3.3
remote: Installing rails 4.1.0
remote: Installing rails_serve_static_assets 0.0.4
remote: Installing rails_stdout_logging 0.0.4
remote: Installing rails_12factor 0.0.3
remote: Installing rdoc 4.2.1
remote: Installing sass 3.2.19
remote: Installing sass-rails 4.0.3
remote: Installing sdoc 0.4.0
remote: Installing turbolinks 2.5.3
remote: Installing uglifier 1.3.0
remote: Bundle complete! 14 Gemfile dependencies, 46 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 (40.23s)
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_8ed55ea28867430d1f1b83cfeabc180a/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.0/lib/active_record/dynamic_matchers.rb:26:in `method_missing'
remote: /tmp/build_8ed55ea28867430d1f1b83cfeabc180a/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.0/lib/active_record/railtie.rb:110:in `block (3 levels) in <class:Railtie>'
remote: /tmp/build_8ed55ea28867430d1f1b83cfeabc180a/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.0/lib/active_record/railtie.rb:109:in `each'
remote: /tmp/build_8ed55ea28867430d1f1b83cfeabc180a/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.0/lib/active_record/railtie.rb:109:in `block (2 levels) in <class:Railtie>'
remote: /tmp/build_8ed55ea28867430d1f1b83cfeabc180a/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.0/lib/active_support/lazy_load_hooks.rb:38:in `instance_eval'
remote: /tmp/build_8ed55ea28867430d1f1b83cfeabc180a/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.0/lib/active_support/lazy_load_hooks.rb:38:in `execute_hook'
remote: /tmp/build_8ed55ea28867430d1f1b83cfeabc180a/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.0/lib/active_support/lazy_load_hooks.rb:28:in `block in on_load'
remote: /tmp/build_8ed55ea28867430d1f1b83cfeabc180a/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.0/lib/active_support/lazy_load_hooks.rb:27:in `each'
remote: /tmp/build_8ed55ea28867430d1f1b83cfeabc180a/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.0/lib/active_support/lazy_load_hooks.rb:27:in `on_load'
remote: /tmp/build_8ed55ea28867430d1f1b83cfeabc180a/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.0/lib/active_record/railtie.rb:108:in `block in <class:Railtie>'
remote: /tmp/build_8ed55ea28867430d1f1b83cfeabc180a/vendor/bundle/ruby/2.0.0/gems/railties-4.1.0/lib/rails/initializable.rb:30:in `instance_exec'
remote: /tmp/build_8ed55ea28867430d1f1b83cfeabc180a/vendor/bundle/ruby/2.0.0/gems/railties-4.1.0/lib/rails/initializable.rb:30:in `run'
remote: /tmp/build_8ed55ea28867430d1f1b83cfeabc180a/vendor/bundle/ruby/2.0.0/gems/railties-4.1.0/lib/rails/initializable.rb:55:in `block in run_initializers'
remote: /tmp/build_8ed55ea28867430d1f1b83cfeabc180a/vendor/bundle/ruby/2.0.0/gems/railties-4.1.0/lib/rails/initializable.rb:54:in `run_initializers'
remote: /tmp/build_8ed55ea28867430d1f1b83cfeabc180a/vendor/bundle/ruby/2.0.0/gems/railties-4.1.0/lib/rails/application.rb:288:in `initialize!'
remote: /tmp/build_8ed55ea28867430d1f1b83cfeabc180a/config/environment.rb:5:in `<top (required)>'
remote: /tmp/build_8ed55ea28867430d1f1b83cfeabc180a/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.0/lib/active_support/dependencies.rb:247:in `require'
remote: /tmp/build_8ed55ea28867430d1f1b83cfeabc180a/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.0/lib/active_support/dependencies.rb:247:in `block in require'
remote: /tmp/build_8ed55ea28867430d1f1b83cfeabc180a/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.0/lib/active_support/dependencies.rb:232:in `load_dependency'
remote: /tmp/build_8ed55ea28867430d1f1b83cfeabc180a/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.0/lib/active_support/dependencies.rb:247:in `require'
remote: /tmp/build_8ed55ea28867430d1f1b83cfeabc180a/vendor/bundle/ruby/2.0.0/gems/railties-4.1.0/lib/rails/application.rb:264:in `require_environment!'
remote: /tmp/build_8ed55ea28867430d1f1b83cfeabc180a/vendor/bundle/ruby/2.0.0/gems/railties-4.1.0/lib/rails/application.rb:367:in `block in run_tasks_blocks'
remote: /tmp/build_8ed55ea28867430d1f1b83cfeabc180a/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 agile-lake-38079.
remote:
To https://git.heroku.com/agile-lake-38079.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/agile-lake-38079.git''
I have tried altering the application.rb file, just in case, and I have also tweaked my Gemfile to make sure it has:
group :production do
gem 'pg'
gem 'rails_12factor'
end
Neither have worked. Thanks to anyone who can help.
Your authentication is fine :)
When you push to Heroku, it creates a slug of your application — think of it like a compressed, production-ready and production-tuned package.
Your problem lies when Heroku tries to create this slug. Your log outputs this line:
remote: NoMethodError: undefined method `raise_in_transactional_callbacks=' for ActiveRecord::Base:Class
Models inherit from ActiveRecord::Base, so that should tell you that it's something (very likely) in your model code.
Locally, you can run rake assets:precompile RAILS_ENV=production to see how Heroku would treat app.
I want to deploy my Rails app to Heroku. Of course I have some additional gems included like 'devise' or 'rails_admin'. I have followed strictly Rails Girls' tutorial (http://guides.railsgirls.com/heroku/). I have faced some really annoying problem when running git push heroku master.
Counting objects: 220, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (198/198), done.
Writing objects: 100% (220/220), 94.69 KiB | 0 bytes/s, done.
Total 220 (delta 21), 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 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: Installing i18n 0.7.0
remote: Installing rake 10.4.2
remote: Installing minitest 5.5.1
remote: Installing thread_safe 0.3.4
remote: Installing builder 3.2.2
remote: Installing erubis 2.7.0
remote: Installing mini_portile 0.6.2
remote: Installing mime-types 2.4.3
remote: Installing rack 1.6.0
remote: Installing arel 6.0.0
remote: Installing coffee-script-source 1.8.0
remote: Installing execjs 2.2.2
remote: Installing thor 0.19.1
remote: Installing hike 1.2.3
remote: Installing multi_json 1.10.1
remote: Using bundler 1.7.12
remote: Installing tilt 1.4.1
remote: Installing rails_serve_static_assets 0.0.4
remote: Installing rails_stdout_logging 0.0.3
remote: Installing sass 3.4.10
remote: Installing tzinfo 1.2.2
remote: Installing json 1.8.2
remote: Installing mail 2.6.3
remote: Installing rack-test 0.6.3
remote: Installing coffee-script 2.3.0
remote: Installing sprockets 2.12.3
remote: Installing rails_12factor 0.0.3
remote: Installing activesupport 4.2.0.rc3
remote: Installing rdoc 4.2.0
remote: Installing uglifier 2.7.0
remote: Installing rails-deprecated_sanitizer 1.0.3
remote: Installing globalid 0.3.0
remote: Installing activemodel 4.2.0.rc3
remote: Installing jbuilder 2.2.6
remote: Installing sdoc 0.4.1
remote: Installing activejob 4.2.0.rc3
remote: Installing activerecord 4.2.0.rc3
remote: Installing nokogiri 1.6.6.2
remote: Installing pg 0.18.1
remote: Installing loofah 2.0.1
remote: Installing rails-dom-testing 1.0.5
remote: Installing rails-html-sanitizer 1.0.1
remote: Installing actionview 4.2.0.rc3
remote: Installing actionpack 4.2.0.rc3
remote: Installing actionmailer 4.2.0.rc3
remote: Installing sprockets-rails 2.2.4
remote: Installing railties 4.2.0.rc3
remote: Installing coffee-rails 4.1.0
remote: Installing jquery-rails 4.0.1
remote: Installing rails 4.2.0.rc3
remote: Installing sass-rails 5.0.1
remote: Installing turbolinks 2.5.3
remote: Your bundle is complete!
remote: Gems in the groups development and test were not installed.
remote: It was 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 (35.01s)
remote: Cleaning up the bundler cache.
remote: -----> Preparing app for Rails asset pipeline
remote: Running: rake assets:precompile
remote: rake aborted!
remote: NameError: uninitialized constant Devise
remote: /tmp/build_8bd0cbc64dad003f3588b01ead189e3c/config/initializers/devise.rb:3:in '<top (required)>'
remote: /tmp/build_8bd0cbc64dad003f3588b01ead189e3c/vendor/bundle/ruby/2.0.0/gems/railties-4.2.0.rc3/lib/rails/engine.rb:652:in 'block in load_config_initializer'
remote: /tmp/build_8bd0cbc64dad003f3588b01ead189e3c/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.0.rc3/lib/active_support/notifications.rb:166:in 'instrument'
remote: /tmp/build_8bd0cbc64dad003f3588b01ead189e3c/vendor/bundle/ruby/2.0.0/gems/railties-4.2.0.rc3/lib/rails/engine.rb:651:in 'load_config_initializer'
remote: /tmp/build_8bd0cbc64dad003f3588b01ead189e3c/vendor/bundle/ruby/2.0.0/gems/railties-4.2.0.rc3/lib/rails/engine.rb:616:in 'block (2 levels) in <class:Engine>'
remote: /tmp/build_8bd0cbc64dad003f3588b01ead189e3c/vendor/bundle/ruby/2.0.0/gems/railties-4.2.0.rc3/lib/rails/engine.rb:615:in 'each'
remote: /tmp/build_8bd0cbc64dad003f3588b01ead189e3c/vendor/bundle/ruby/2.0.0/gems/railties-4.2.0.rc3/lib/rails/engine.rb:615:in 'block in <class:Engine>'
remote: /tmp/build_8bd0cbc64dad003f3588b01ead189e3c/vendor/bundle/ruby/2.0.0/gems/railties-4.2.0.rc3/lib/rails/initializable.rb:30:in 'instance_exec'
remote: /tmp/build_8bd0cbc64dad003f3588b01ead189e3c/vendor/bundle/ruby/2.0.0/gems/railties-4.2.0.rc3/lib/rails/initializable.rb:30:in 'run'
remote: /tmp/build_8bd0cbc64dad003f3588b01ead189e3c/vendor/bundle/ruby/2.0.0/gems/railties-4.2.0.rc3/lib/rails/initializable.rb:55:in 'block in run_initializers'
remote: /tmp/build_8bd0cbc64dad003f3588b01ead189e3c/vendor/bundle/ruby/2.0.0/gems/railties-4.2.0.rc3/lib/rails/initializable.rb:44:in 'each'
remote: /tmp/build_8bd0cbc64dad003f3588b01ead189e3c/vendor/bundle/ruby/2.0.0/gems/railties-4.2.0.rc3/lib/rails/initializable.rb:44:in 'tsort_each_child'
remote: /tmp/build_8bd0cbc64dad003f3588b01ead189e3c/vendor/bundle/ruby/2.0.0/gems/railties-4.2.0.rc3/lib/rails/initializable.rb:54:in 'run_initializers'
remote: /tmp/build_8bd0cbc64dad003f3588b01ead189e3c/vendor/bundle/ruby/2.0.0/gems/railties-4.2.0.rc3/lib/rails/application.rb:352:in 'initialize!'
remote: /tmp/build_8bd0cbc64dad003f3588b01ead189e3c/config/environment.rb:5:in '<top (required)>'
remote: /tmp/build_8bd0cbc64dad003f3588b01ead189e3c/vendor/bundle/ruby/2.0.0/gems/railties-4.2.0.rc3/lib/rails/application.rb:328:in 'require'
remote: /tmp/build_8bd0cbc64dad003f3588b01ead189e3c/vendor/bundle/ruby/2.0.0/gems/railties-4.2.0.rc3/lib/rails/application.rb:328:in 'require_environment!'
remote: /tmp/build_8bd0cbc64dad003f3588b01ead189e3c/vendor/bundle/ruby/2.0.0/gems/railties-4.2.0.rc3/lib/rails/application.rb:443:in 'block in run_tasks_blocks'
remote: /tmp/build_8bd0cbc64dad003f3588b01ead189e3c/vendor/bundle/ruby/2.0.0/gems/sprockets-rails-2.2.4/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 powerful-taiga-2060.
remote:
To https://git.heroku.com/powerful-taiga-2060.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/powerful-taiga-2060.git`
Here is my Gemfile:
source 'https://rubygems.org'
gem 'rails', '4.2.0.rc3'
group :development do
gem 'sqlite3'
end
group :production do
gem 'pg'
gem 'rails_12factor'
end
gem 'sass-rails', '~> 5.0'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.1.0'
gem 'jquery-rails'
gem 'turbolinks'
gem 'jbuilder', '~> 2.0'
gem 'sdoc', '~> 0.4.0', group: :doc
group :development, :production, :test do
gem 'byebug'
gem 'web-console', '~> 2.0'
gem 'spring'
gem 'bootstrap-generators', '~> 3.3.1'
gem 'simple_form', :git => 'git://github.com/plataformatec/simple_form.git'
gem 'rails_admin'
gem 'mocha'
gem 'nifty-generators'
gem 'jquery-turbolinks'
gem 'devise'
end
The problem must be with rake assets:precompile.
Could anyone help me? The problem really slows down my Rails Adventure.
None of the gems in your
group :development, :production, :test do
were installed based on the Heroku logs. Try putting them outside the group.
Edit: Remove Devise from the ":development, :production, :test:" group as Heroku is not going to install anything in the development or test group:
gem 'devise'
After that, go to the root directory of your project and do
git add .
to put the changes in queue. Then run
git commit -m "adds devise to gemfile"
to add the changes to your commit logs. Then run
git push heroku master
And everything should work.