So I am a noob to coding. I know some html/css, but that is about it. Anyways, I am following the instructions in this poorly formatted ebook on Ruby on Rails. I have set up a container project on codeanywhere. So far I have fixed all errors up to this point through searching. It seems like a lot of people are having this problem, but I have not found a solution. I am trying to push to my Heroku account. Can anyone figure out what I am doing wrong by looking at the log? So far I have added config.assets.initialize_on_precompile = false to my application.rb file because that was one of the potential fixes. Otherwise, I'm lost.
-----> Ruby app detected
-----> Compiling Ruby/Rails
-----> Using Ruby version: ruby-2.4.4
-----> Installing dependencies using bundler 1.15.2
Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
Fetching gem metadata from https://rubygems.org/..........
Fetching version metadata from https://rubygems.org/..
Fetching dependency metadata from https://rubygems.org/.
Fetching rake 12.3.1
Fetching concurrent-ruby 1.0.5
Fetching json 1.8.6
Installing rake 12.3.1
Installing concurrent-ruby 1.0.5
Installing json 1.8.6 with native extensions
Fetching minitest 5.11.3
Installing minitest 5.11.3
Fetching thread_safe 0.3.6
Fetching builder 3.2.3
Installing thread_safe 0.3.6
Installing builder 3.2.3
Fetching erubis 2.7.0
Installing erubis 2.7.0
Fetching rack 1.5.5
Installing rack 1.5.5
Fetching mini_mime 1.0.0
Installing mini_mime 1.0.0
Fetching arel 5.0.1.20140414130214
Using bundler 1.15.2
Fetching coffee-script-source 1.12.2
Installing arel 5.0.1.20140414130214
Installing coffee-script-source 1.12.2
Fetching execjs 2.7.0
Installing execjs 2.7.0
Fetching thor 0.20.0
Installing thor 0.20.0
Fetching diff-lcs 1.3
Fetching hike 1.2.3
Installing hike 1.2.3
Installing diff-lcs 1.3
Fetching multi_json 1.13.1
Installing multi_json 1.13.1
Fetching mini_portile2 2.3.0
Fetching pg 0.17.1
Installing mini_portile2 2.3.0
Installing pg 0.17.1 with native extensions
Fetching tilt 1.4.1
Installing tilt 1.4.1
Fetching rails_serve_static_assets 0.0.5
Installing rails_serve_static_assets 0.0.5
Fetching rails_stdout_logging 0.0.5
Installing rails_stdout_logging 0.0.5
Fetching rdoc 4.3.0
Installing rdoc 4.3.0
Fetching rspec-support 3.8.0
Installing rspec-support 3.8.0
Fetching sass 3.2.19
Installing sass 3.2.19
Fetching turbolinks-source 5.1.0
Installing turbolinks-source 5.1.0
Fetching i18n 0.9.5
Installing i18n 0.9.5
Fetching tzinfo 1.2.5
Installing tzinfo 1.2.5
Fetching rack-test 0.6.3
Installing rack-test 0.6.3
Fetching mail 2.7.0
Installing mail 2.7.0
Fetching coffee-script 2.4.1
Installing coffee-script 2.4.1
Fetching uglifier 4.1.17
Installing uglifier 4.1.17
Fetching nokogiri 1.8.4
Installing nokogiri 1.8.4 with native extensions
Fetching sprockets 2.12.5
Installing sprockets 2.12.5
Fetching rails_12factor 0.0.2
Installing rails_12factor 0.0.2
Fetching rspec-core 3.8.0
Installing rspec-core 3.8.0
Fetching rspec-expectations 3.8.1
Installing rspec-expectations 3.8.1
Fetching rspec-mocks 3.8.0
Installing rspec-mocks 3.8.0
Fetching turbolinks 5.1.1
Installing turbolinks 5.1.1
Fetching rspec 3.8.0
Installing rspec 3.8.0
Fetching activesupport 4.1.6
Fetching sdoc 0.4.2
Installing sdoc 0.4.2
Installing activesupport 4.1.6
Fetching actionview 4.1.6
Fetching activemodel 4.1.6
Fetching jbuilder 2.6.4
Installing activemodel 4.1.6
Installing jbuilder 2.6.4
Installing actionview 4.1.6
Fetching activerecord 4.1.6
Installing activerecord 4.1.6
Fetching actionpack 4.1.6
Installing actionpack 4.1.6
Fetching actionmailer 4.1.6
Fetching railties 4.1.6
Fetching sprockets-rails 2.3.3
Installing actionmailer 4.1.6
Installing sprockets-rails 2.3.3
Installing railties 4.1.6
Fetching jquery-rails 3.1.5
Fetching rails 4.1.6
Fetching coffee-rails 4.0.1
Installing coffee-rails 4.0.1
Fetching sass-rails 4.0.5
Installing jquery-rails 3.1.5
Installing sass-rails 4.0.5
Installing rails 4.1.6
Bundle complete! 15 Gemfile dependencies, 54 gems now installed.
Gems in the groups development and test were not installed.
Bundled gems are installed into ./vendor/bundle.
Bundle completed (22.78s)
Cleaning up the bundler cache.
-----> Installing node-v8.10.0-linux-x64
-----> Detecting rake tasks
-----> Preparing app for Rails asset pipeline
Running: rake assets:precompile
/tmp/build_08716fff5e55005d68d2f9475e33fcff/vendor/bundle/ruby/2.4.0/gems/activesupport-4.1.6/lib/active_support/core_ext/numeric/conversions.rb:121: warning: constant ::Fixnum is deprecated
/tmp/build_08716fff5e55005d68d2f9475e33fcff/vendor/bundle/ruby/2.4.0/gems/activesupport-4.1.6/lib/active_support/core_ext/numeric/conversions.rb:121: warning: constant ::Bignum is deprecated
Segmentation fault (core dumped)
!
! Precompiling assets failed.
!
! Push rejected, failed to compile Ruby app.
! Push failed
Type $ RAILS_ENV=production rake assets:precompile locally
Let me know if this does work?
Related
I recently made a rails app and i've been trying to get it deployed on Heroku. I'm not sure what preventing me from doing so. I have Heroku linked with my Github and am manually deploying from there.
The Github repo is up to date, and the rails app is able to run when I type in
rails s
I tried also deploying manually from my computer as well. I have been following this guide :
https://www.codecademy.com/articles/deploy-rails-to-heroku
Here is the error logs:
! Warning: Multiple default buildpacks reported the ability to handle this app. The first buildpack in the list below will be used.
Detected buildpacks: Ruby,Node.js
See https://devcenter.heroku.com/articles/buildpacks#buildpack-detect-order
-----> Ruby app detected
-----> Compiling Ruby/Rails
-----> Using Ruby version: ruby-2.5.5
###### WARNING:
Removing `Gemfile.lock` because it was generated on Windows.
Bundler will do a full resolve so native gems are handled properly.
This may result in unexpected gem versions being used in your app.
In rare occasions Bundler may not be able to resolve your dependencies at all.
https://devcenter.heroku.com/articles/bundler-windows-gemfile
-----> Installing dependencies using bundler 2.0.1
Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4
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`.
Fetching gem metadata from https://rubygems.org/...........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies.....
Fetching rake 12.3.2
Installing rake 12.3.2
Fetching concurrent-ruby 1.1.5
Fetching minitest 5.11.3
Fetching thread_safe 0.3.6
Installing minitest 5.11.3
Installing thread_safe 0.3.6
Installing concurrent-ruby 1.1.5
Fetching builder 3.2.3
Installing builder 3.2.3
Fetching erubi 1.8.0
Installing erubi 1.8.0
Fetching mini_portile2 2.4.0
Fetching crass 1.0.4
Installing mini_portile2 2.4.0
Installing crass 1.0.4
Fetching rack 2.0.7
Installing rack 2.0.7
Fetching nio4r 2.3.1
Installing nio4r 2.3.1 with native extensions
Fetching websocket-extensions 0.1.3
Installing websocket-extensions 0.1.3
Fetching mini_mime 1.0.1
Installing mini_mime 1.0.1
Fetching arel 9.0.0
Installing arel 9.0.0
Fetching mimemagic 0.3.3
Fetching bcrypt 3.1.12
Installing bcrypt 3.1.12 with native extensions
Installing mimemagic 0.3.3
Fetching msgpack 1.2.10
Installing msgpack 1.2.10 with native extensions
Fetching rb-fsevent 0.10.3
Installing rb-fsevent 0.10.3
Fetching ffi 1.10.0
Installing ffi 1.10.0 with native extensions
Fetching thor 0.20.3
Installing thor 0.20.3
Using bundler 2.0.1
Fetching method_source 0.9.2
Installing method_source 0.9.2
Fetching coffee-script-source 1.12.2
Installing coffee-script-source 1.12.2
Fetching execjs 2.7.0
Installing execjs 2.7.0
Fetching duktape 2.0.1.0
Installing duktape 2.0.1.0 with native extensions
Fetching multipart-post 2.1.0
Installing multipart-post 2.1.0
Fetching multi_json 1.13.1
Installing multi_json 1.13.1
Fetching jwt 2.1.0
Installing jwt 2.1.0
Fetching pg 0.18.1
Installing pg 0.18.1 with native extensions
Fetching puma 3.12.1
Installing puma 3.12.1 with native extensions
Fetching rails_serve_static_assets 0.0.5
Installing rails_serve_static_assets 0.0.5
Fetching rails_stdout_logging 0.0.5
Installing rails_stdout_logging 0.0.5
Fetching tilt 2.0.9
Installing tilt 2.0.9
Fetching turbolinks-source 5.2.0
Installing turbolinks-source 5.2.0
Fetching tzinfo 1.2.5
Installing tzinfo 1.2.5
Fetching nokogiri 1.10.3
Installing nokogiri 1.10.3 with native extensions
Fetching i18n 1.6.0
Installing i18n 1.6.0
Fetching websocket-driver 0.7.0
Installing websocket-driver 0.7.0 with native extensions
Fetching mail 2.7.1
Installing mail 2.7.1
Fetching rack-test 1.1.0
Installing rack-test 1.1.0
Fetching sprockets 3.7.2
Installing sprockets 3.7.2
Fetching marcel 0.3.3
Installing marcel 0.3.3
Fetching coffee-script 2.4.1
Installing coffee-script 2.4.1
Fetching uglifier 4.1.20
Installing uglifier 4.1.20
Fetching bootsnap 1.4.4
Installing bootsnap 1.4.4 with native extensions
Fetching faraday 0.15.4
Installing faraday 0.15.4
Fetching rb-inotify 0.10.0
Installing rb-inotify 0.10.0
Fetching rails_12factor 0.0.3
Installing rails_12factor 0.0.3
Fetching turbolinks 5.2.0
Installing turbolinks 5.2.0
Fetching activesupport 5.2.3
Installing activesupport 5.2.3
Fetching loofah 2.2.3
Installing loofah 2.2.3
Fetching twilio-ruby 5.22.3
Installing twilio-ruby 5.22.3
Fetching sass-listen 4.0.0
Installing sass-listen 4.0.0
Fetching rails-html-sanitizer 1.0.4
Installing rails-html-sanitizer 1.0.4
Fetching rails-dom-testing 2.0.3
Installing rails-dom-testing 2.0.3
Fetching globalid 0.4.2
Fetching activemodel 5.2.3
Installing globalid 0.4.2
Installing activemodel 5.2.3
Fetching jbuilder 2.8.0
Installing jbuilder 2.8.0
Fetching sass 3.7.4
Fetching actionview 5.2.3
Installing sass 3.7.4
Installing actionview 5.2.3
Fetching activejob 5.2.3
Installing activejob 5.2.3
Fetching activerecord 5.2.3
Fetching email_validator 1.6.0
Installing email_validator 1.6.0
Installing activerecord 5.2.3
Fetching actionpack 5.2.3
Installing actionpack 5.2.3
Fetching bourbon 5.1.0
Installing bourbon 5.1.0
Fetching actioncable 5.2.3
Installing actioncable 5.2.3
Fetching actionmailer 5.2.3
Installing actionmailer 5.2.3
Fetching railties 5.2.3
Fetching sprockets-rails 3.2.1
Installing sprockets-rails 3.2.1
Installing railties 5.2.3
Fetching activestorage 5.2.3
Installing activestorage 5.2.3
Fetching coffee-rails 4.2.2
Fetching clearance 1.17.0
Fetching rails 5.2.3
Installing rails 5.2.3
Installing coffee-rails 4.2.2
Installing clearance 1.17.0
Fetching sass-rails 5.0.7
Installing sass-rails 5.0.7
Bundle complete! 22 Gemfile dependencies, 73 gems now installed.
Gems in the groups development and test were not installed.
Bundled gems are installed into `./vendor/bundle`
Post-install message from i18n:
HEADS UP! i18n 1.1 changed fallbacks to exclude default locale.
But that may break your application.
Please check your Rails app for 'config.i18n.fallbacks = true'.
If you're using I18n (>= 1.1.0) and Rails (< 5.2.2), this should be
'config.i18n.fallbacks = [I18n.default_locale]'.
If not, fallbacks will be broken in your app by I18n 1.1.x.
For more info see:
https://github.com/svenfuchs/i18n/releases/tag/v1.1.0
Post-install message from sass:
Ruby Sass has reached end-of-life and should no longer be used.
* If you use Sass as a command-line tool, we recommend using Dart Sass, the new
primary implementation: https://sass-lang.com/install
* If you use Sass as a plug-in for a Ruby web framework, we recommend using the
sassc gem: https://github.com/sass/sassc-ruby#readme
* For more details, please refer to the Sass blog:
https://sass-lang.com/blog/posts/7828841
Bundle completed (69.29s)
Cleaning up the bundler cache.
-----> Installing node-v10.14.1-linux-x64
-----> Detecting rake tasks
-----> Preparing app for Rails asset pipeline
Running: rake assets:precompile
Yarn executable was not detected in the system.
Download Yarn at https://yarnpkg.com/en/docs/install
rake aborted!
Uglifier::Error: Unexpected token: name (Chat). To use ES6 syntax, harmony mode must be enabled with Uglifier.new(:harmony => true).
/tmp/build_009829cc03f1e07b3bba9f3f29879621/vendor/bundle/ruby/2.5.0/gems/uglifier-4.1.20/lib/uglifier.rb:234:in `parse_result'
/tmp/build_009829cc03f1e07b3bba9f3f29879621/vendor/bundle/ruby/2.5.0/gems/uglifier-4.1.20/lib/uglifier.rb:216:in `run_uglifyjs'
/tmp/build_009829cc03f1e07b3bba9f3f29879621/vendor/bundle/ruby/2.5.0/gems/uglifier-4.1.20/lib/uglifier.rb:168:in `compile'
/tmp/build_009829cc03f1e07b3bba9f3f29879621/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/uglifier_compressor.rb:53:in `call'
/tmp/build_009829cc03f1e07b3bba9f3f29879621/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/uglifier_compressor.rb:28:in `call'
/tmp/build_009829cc03f1e07b3bba9f3f29879621/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:75:in `call_processor'
/tmp/build_009829cc03f1e07b3bba9f3f29879621/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:57:in `block in call_processors'
/tmp/build_009829cc03f1e07b3bba9f3f29879621/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:56:in `reverse_each'
/tmp/build_009829cc03f1e07b3bba9f3f29879621/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:56:in `call_processors'
/tmp/build_009829cc03f1e07b3bba9f3f29879621/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:134:in `load_from_unloaded'
/tmp/build_009829cc03f1e07b3bba9f3f29879621/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:60:in `block in load'
/tmp/build_009829cc03f1e07b3bba9f3f29879621/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:317:in `fetch_asset_from_dependency_cache'
/tmp/build_009829cc03f1e07b3bba9f3f29879621/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:44:in `load'
/tmp/build_009829cc03f1e07b3bba9f3f29879621/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/cached_environment.rb:20:in `block in initialize'
/tmp/build_009829cc03f1e07b3bba9f3f29879621/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/cached_environment.rb:47:in `load'
/tmp/build_009829cc03f1e07b3bba9f3f29879621/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/base.rb:66:in `find_asset'
/tmp/build_009829cc03f1e07b3bba9f3f29879621/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/base.rb:73:in `find_all_linked_assets'
/tmp/build_009829cc03f1e07b3bba9f3f29879621/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/manifest.rb:142:in `block in find'
/tmp/build_009829cc03f1e07b3bba9f3f29879621/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:114:in `block (2 levels) in logical_paths'
/tmp/build_009829cc03f1e07b3bba9f3f29879621/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:228:in `block in stat_tree'
/tmp/build_009829cc03f1e07b3bba9f3f29879621/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:212:in `block in stat_directory'
/tmp/build_009829cc03f1e07b3bba9f3f29879621/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:209:in `each'
/tmp/build_009829cc03f1e07b3bba9f3f29879621/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:209:in `stat_directory'
/tmp/build_009829cc03f1e07b3bba9f3f29879621/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:227:in `stat_tree'
/tmp/build_009829cc03f1e07b3bba9f3f29879621/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:105:in `each'
/tmp/build_009829cc03f1e07b3bba9f3f29879621/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:105:in `block in logical_paths'
/tmp/build_009829cc03f1e07b3bba9f3f29879621/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:104:in `each'
/tmp/build_009829cc03f1e07b3bba9f3f29879621/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:104:in `logical_paths'
/tmp/build_009829cc03f1e07b3bba9f3f29879621/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/manifest.rb:140:in `find'
/tmp/build_009829cc03f1e07b3bba9f3f29879621/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/manifest.rb:186:in `compile'
/tmp/build_009829cc03f1e07b3bba9f3f29879621/vendor/bundle/ruby/2.5.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/task.rb:68:in `block (3 levels) in define'
/tmp/build_009829cc03f1e07b3bba9f3f29879621/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/rake/sprocketstask.rb:147:in `with_logger'
/tmp/build_009829cc03f1e07b3bba9f3f29879621/vendor/bundle/ruby/2.5.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/task.rb:67:in `block (2 levels) in define'
/tmp/build_009829cc03f1e07b3bba9f3f29879621/vendor/bundle/ruby/2.5.0/gems/rake-12.3.2/exe/rake:27:in `<top (required)>'
Tasks: TOP => assets:precompile
(See full trace by running task with --trace)
!
! Precompiling assets failed.
!
! Push rejected, failed to compile Ruby app.
! Push failed
The issue already have a solution in the error description itself
To use ES6 syntax, harmony mode must be enabled with Uglifier.new(:harmony => true)
Solution:
To fix the issue replace the following in config/environments/production.rb
config.assets.js_compressor = :uglifier
with
config.assets.js_compressor = Uglifier.new(harmony: true)
Refer, this issue raised in uglifier https://github.com/lautis/uglifier/issues/127
You could try to precompile the assets before uploading to heroku, with the following command:
RAILS_ENV=production bundle exec rake assets:precompile
And create a new commit and push
git add .
git commit -m "precompile"
git push
Also worth checking: https://devcenter.heroku.com/articles/rails-asset-pipeline
I got multiple errors when trying to install the gems in a rails application cloned from remote repo, here's a screenshot of the error knowing that I'm still junior with RoR, knowing that I tried many answers but nothing worked
elta3lab#elta3lab-Inspiron-N5110:~/raye7-api$ bundle install
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. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32`.
Fetching gem metadata from http://rubygems.org/.............
Fetching gem metadata from http://rubygems.org/..
Resolving dependencies...........................................................................
Using rake 12.3.1
Fetching concurrent-ruby 1.1.3
Your user account isn't allowed to install to the system RubyGems.
You can cancel this installation and run:
bundle install --path vendor/bundle
to install the gems into ./vendor/bundle/, or you can enter your password
and install the bundled gems to RubyGems using sudo.
Password:
Your user account isn't allowed to install to the system RubyGems.
You can cancel this installation and run:
bundle install --path vendor/bundle
to install the gems into ./vendor/bundle/, or you can enter your password
and install the bundled gems to RubyGems using sudo.
Password:
Installing concurrent-ruby 1.1.3
Using i18n 0.9.5
Using minitest 5.11.3
Using thread_safe 0.3.6
Using tzinfo 1.2.5
Fetching activesupport 4.2.11
Installing activesupport 4.2.11
Using builder 3.2.3
Using erubis 2.7.0
Using mini_portile2 2.3.0
Fetching nokogiri 1.8.5
Installing nokogiri 1.8.5 with native extensions
Using rails-deprecated_sanitizer 1.0.3
Using rails-dom-testing 1.0.9
Fetching crass 1.0.4
Installing crass 1.0.4
Fetching loofah 2.2.3
Installing loofah 2.2.3
Using rails-html-sanitizer 1.0.4
Fetching actionview 4.2.11
Installing actionview 4.2.11
Fetching rack 1.6.11
Installing rack 1.6.11
Using rack-test 0.6.3
Fetching actionpack 4.2.11
Installing actionpack 4.2.11
Using globalid 0.4.1
Fetching activejob 4.2.11
Installing activejob 4.2.11
Fetching mini_mime 1.0.1
Installing mini_mime 1.0.1
Fetching mail 2.7.1
Installing mail 2.7.1
Fetching actionmailer 4.2.11
Installing actionmailer 4.2.11
Fetching activemodel 4.2.11
Installing activemodel 4.2.11
Using arel 6.0.4
Fetching activerecord 4.2.11
Installing activerecord 4.2.11
Using activerecord-import 0.20.2
Fetching public_suffix 3.0.3
Installing public_suffix 3.0.3
Using addressable 2.5.2
Using bundler 1.16.1
Using thor 0.19.4
Fetching railties 4.2.11
Installing railties 4.2.11
Using hike 1.2.3
Using multi_json 1.13.1
Using tilt 1.4.1
Fetching sprockets 2.12.5
Installing sprockets 2.12.5
Using sprockets-rails 2.3.3
Fetching rails 4.2.11
Installing rails 4.2.11
Fetching apipie-rails 0.5.14
Installing apipie-rails 0.5.14
Using ast 2.4.0
Using execjs 2.7.0
Fetching autoprefixer-rails 9.4.2
Installing autoprefixer-rails 9.4.2
Fetching aws-sigv4 1.0.3
Installing aws-sigv4 1.0.3
Fetching jmespath 1.4.0
Installing jmespath 1.4.0
Fetching aws-sdk-core 2.11.184
Installing aws-sdk-core 2.11.184
Fetching aws-sdk-resources 2.11.184
Installing aws-sdk-resources 2.11.184
Fetching aws-sdk 2.11.184
Installing aws-sdk 2.11.184
Fetching bcrypt 3.1.12
Installing bcrypt 3.1.12 with native extensions
Using bootstrap-datepicker-rails 1.7.1.1
Using sass 3.2.19
Using bootstrap-sass 3.3.5
Using momentjs-rails 2.17.1
Using bootstrap3-datetimepicker-rails 3.1.3
Using bugsnag 6.9.0
Using uniform_notifier 1.10.0
Using bullet 5.6.1
Using byebug 9.1.0
Using cancancan 1.17.0
Using xpath 2.1.0
Using capybara 2.15.4
Using capybara-email 2.5.0
Fetching mime-types-data 3.2018.0812
Installing mime-types-data 3.2018.0812
Fetching mime-types 3.2.2
Installing mime-types 3.2.2
Fetching carrierwave 1.2.3
Installing carrierwave 1.2.3
Using carrierwave-aws 1.2.0
Using carrierwave-base64 2.6.1
Using chartkick 2.2.5
Using coffee-script-source 1.12.2
Using coffee-script 2.4.1
Using coffee-rails 4.0.1
Using sass-rails 4.0.5
Using chosen-rails 1.5.2
Using chronic 0.10.2
Using coderay 1.1.2
Fetching connection_pool 2.2.2
Installing connection_pool 2.2.2
Using cookiejar 0.3.3
Using daemons 1.2.6
Using data_migrate 3.2.2
Using database_cleaner 1.6.2
Fetching delayed_job 4.1.5
Installing delayed_job 4.1.5
Fetching delayed_job_active_record 4.1.3
Installing delayed_job_active_record 4.1.3
Using orm_adapter 0.5.0
Using responders 2.4.0
Using warden 1.2.7
Using devise 4.3.0
Using devise_token_auth 0.1.43
Using diff-lcs 1.3
Using docile 1.1.5
Using unf_ext 0.0.7.5
Using unf 0.1.4
Fetching domain_name 0.5.20180417
Installing domain_name 0.5.20180417
Using eventmachine 1.0.9.1
Using em-socksify 0.3.2
Using http_parser.rb 0.6.0
Using em-http-request 1.1.5
Using email_check 1.0.1
Using erubi 1.7.1
Fetching factory_bot 4.11.1
Installing factory_bot 4.11.1
Fetching factory_bot_rails 4.11.1
Installing factory_bot_rails 4.11.1
Using faker 1.8.7
Using multipart-post 2.0.0
Fetching faraday 0.15.4
Installing faraday 0.15.4
Using faraday_middleware 0.12.2
Using websocket-extensions 0.1.3
Using websocket-driver 0.7.0
Using faye-websocket 0.10.7
Using faye 1.1.2
Using faye-rails 2.0.3
Using multi_xml 0.6.0
Using httparty 0.15.7
Fetching fcm 0.0.6
Installing fcm 0.0.6
Fetching ffi 1.9.25
Installing ffi 1.9.25 with native extensions
Using file_validators 2.1.0
Fetching font-awesome-rails 4.7.0.4
Installing font-awesome-rails 4.7.0.4
Using font-awesome-sass 4.7.0
Using foreman 0.84.0
Using formatador 0.2.5
Using formtastic 3.1.5
Fetching geocoder 1.4.9
Installing geocoder 1.4.9
Fetching geokit 1.13.1
Installing geokit 1.13.1
Fetching geokit-rails 2.3.1
Installing geokit-rails 2.3.1
Using rb-fsevent 0.10.3
Using rb-inotify 0.9.10
Using ruby_dep 1.5.0
Using listen 3.1.5
Fetching lumberjack 1.0.13
Installing lumberjack 1.0.13
Using nenv 0.3.0
Using shellany 0.0.1
Using notiffany 0.1.1
Fetching method_source 0.9.2
Installing method_source 0.9.2
Using pry 0.11.3
Fetching guard 2.15.0
Installing guard 2.15.0
Using guard-compat 1.2.1
Using rspec-support 3.7.1
Using rspec-core 3.7.1
Using rspec-expectations 3.7.0
Using rspec-mocks 3.7.0
Using rspec 3.7.0
Using guard-rspec 4.7.3
Using haml 4.0.7
Using hash-deep-merge 0.1.1
Using hashie 3.5.7
Fetching highline 2.0.0
Installing highline 2.0.0
Using http-cookie 1.0.3
Using json 1.8.6
Fetching hypertrack 0.1.6
Installing hypertrack 0.1.6
Fetching parser 2.5.3.0
Installing parser 2.5.3.0
Fetching rails-i18n 4.0.9
Installing rails-i18n 4.0.9
Fetching rainbow 2.2.2
Installing rainbow 2.2.2 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /tmp/bundler20181204-31799-okhy3brainbow-2.2.2/gems/rainbow-2.2.2/ext
/usr/bin/ruby2.5 mkrf_conf.rb
current directory: /tmp/bundler20181204-31799-okhy3brainbow-2.2.2/gems/rainbow-2.2.2/ext
/usr/bin/ruby2.5 -rrubygems /usr/share/rubygems-integration/all/gems/rake-12.3.1/exe/rake
RUBYARCHDIR=/tmp/bundler20181204-31799-okhy3brainbow-2.2.2/extensions/x86_64-linux/2.5.0/rainbow-2.2.2
RUBYLIBDIR=/tmp/bundler20181204-31799-okhy3brainbow-2.2.2/extensions/x86_64-linux/2.5.0/rainbow-2.2.2
/usr/bin/ruby2.5: No such file or directory -- /usr/share/rubygems-integration/all/gems/rake-12.3.1/exe/rake (LoadError)
rake failed, exit code 1
Gem files will remain installed in /tmp/bundler20181204-31799-okhy3brainbow-2.2.2/gems/rainbow-2.2.2 for inspection.
Results logged to /tmp/bundler20181204-31799-okhy3brainbow-2.2.2/extensions/x86_64-linux/2.5.0/rainbow-2.2.2/gem_make.out
An error occurred while installing rainbow (2.2.2), and Bundler cannot continue.
Make sure that `gem install rainbow -v '2.2.2'` succeeds before bundling.
In Gemfile:
i18n-tasks was resolved to 0.9.28, which depends on
rainbowMake sure that `gem install rainbow -v '2.2.2'` succeeds before bundling.
In Gemfile:
i18n-tasks was resolved to 0.9.28, which depends on
rainbow
and when trying to install rainbow, either with or without sudo, I got this error
Building native extensions. This could take a while...
ERROR: Error installing rainbow:
ERROR: Failed to build gem native extension.
current directory: /var/lib/gems/2.5.0/gems/rainbow-2.2.2/ext
/usr/bin/ruby2.5 mkrf_conf.rb
current directory: /var/lib/gems/2.5.0/gems/rainbow-2.2.2/ext
/usr/bin/ruby2.5 -rrubygems /usr/share/rubygems-integration/all/gems/rake-12.3.1/exe/rake RUBYARCHDIR=/var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/rainbow-2.2.2 RUBYLIBDIR=/var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/rainbow-2.2.2
/usr/bin/ruby2.5: No such file or directory -- /usr/share/rubygems-integration/all/gems/rake-12.3.1/exe/rake (LoadError)
rake failed, exit code 1
Gem files will remain installed in /var/lib/gems/2.5.0/gems/rainbow-2.2.2 for inspection.
Results logged to /var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/rainbow-2.2.2/gem_make.out
solved using
sudo gem install rake
sudo gem install rainbow -v '2.2.2'
sudo bundle install
I'm pushing my rails app to heroku and It fails and I don't know what is the problem, here's the heroku log, knowing that I'm still a beginner
! Warning: Multiple default buildpacks reported the ability to handle this app. The first buildpack in the list below will be used.
Detected buildpacks: Ruby,Node.js
See https://devcenter.heroku.com/articles/buildpacks#buildpack-detect-order
-----> Ruby app detected
-----> Compiling Ruby/Rails
-----> Using Ruby version: ruby-2.5.1
-----> Installing dependencies using bundler 1.15.2
Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
Your Gemfile lists the gem bootstrap-sass (= 3.3.7) more than once.
You should probably keep only one of them.
While it's not a problem now, it could cause errors if you change the version of one of them later.
Warning: the running version of Bundler (1.15.2) is older than the version that created the lockfile (1.16.2). We suggest you upgrade to the latest version of Bundler by running `gem install bundler`.
Fetching gem metadata from https://rubygems.org/..........
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
Fetching rake 12.3.1
Fetching concurrent-ruby 1.0.5
Fetching minitest 5.10.3
Installing minitest 5.10.3
Installing rake 12.3.1
Installing concurrent-ruby 1.0.5
Fetching thread_safe 0.3.6
Installing thread_safe 0.3.6
Fetching builder 3.2.3
Installing builder 3.2.3
Fetching erubi 1.7.1
Installing erubi 1.7.1
Fetching mini_portile2 2.3.0
Installing mini_portile2 2.3.0
Fetching crass 1.0.4
Installing crass 1.0.4
Fetching rack 2.0.5
Installing rack 2.0.5
Fetching nio4r 2.3.1
Installing nio4r 2.3.1 with native extensions
Fetching websocket-extensions 0.1.3
Installing websocket-extensions 0.1.3
Fetching mini_mime 1.0.1
Installing mini_mime 1.0.1
Fetching coffee-script-source 1.12.2
Installing coffee-script-source 1.12.2
Fetching execjs 2.7.0
Installing execjs 2.7.0
Fetching method_source 0.9.0
Installing method_source 0.9.0
Fetching thor 0.20.0
Installing thor 0.20.0
Fetching formtastic_i18n 0.6.0
Installing formtastic_i18n 0.6.0
Fetching kaminari-core 1.1.1
Fetching arel 9.0.0
Installing kaminari-core 1.1.1
Installing arel 9.0.0
Fetching rb-fsevent 0.10.3
Installing rb-fsevent 0.10.3
Fetching ffi 1.9.25
Fetching mimemagic 0.3.2
Installing mimemagic 0.3.2
Installing ffi 1.9.25 with native extensions
Fetching bcrypt 3.1.12
Installing bcrypt 3.1.12 with native extensions
Fetching msgpack 1.2.4
Installing msgpack 1.2.4 with native extensions
Using bundler 1.15.2
Using json 2.1.0
Fetching mime-types-data 3.2018.0812
Installing mime-types-data 3.2018.0812
Fetching orm_adapter 0.5.0
Installing orm_adapter 0.5.0
Fetching multi_json 1.13.1
Installing multi_json 1.13.1
Fetching pg 0.18.4
Installing pg 0.18.4 with native extensions
Fetching puma 3.12.0
Installing puma 3.12.0 with native extensions
Fetching tilt 2.0.8
Installing tilt 2.0.8
Fetching tzinfo 1.2.5
Installing tzinfo 1.2.5
Fetching i18n 0.9.5
Installing i18n 0.9.5
Fetching nokogiri 1.8.4
Installing nokogiri 1.8.4 with native extensions
Fetching websocket-driver 0.7.0
Installing websocket-driver 0.7.0 with native extensions
Fetching mail 2.7.0
Installing mail 2.7.0
Fetching coffee-script 2.4.1
Installing coffee-script 2.4.1
Fetching autoprefixer-rails 9.1.3
Installing autoprefixer-rails 9.1.3
Fetching uglifier 4.1.18
Installing uglifier 4.1.18
Fetching rack-test 1.1.0
Installing rack-test 1.1.0
Fetching sprockets 3.7.2
Installing sprockets 3.7.2
Fetching warden 1.2.7
Installing warden 1.2.7
Fetching marcel 0.3.2
Installing marcel 0.3.2
Fetching mime-types 3.2.2
Installing mime-types 3.2.2
Fetching rb-inotify 0.9.10
Installing rb-inotify 0.9.10
Fetching bootsnap 1.3.1
Installing bootsnap 1.3.1 with native extensions
Fetching activesupport 5.2.1
Installing activesupport 5.2.1
Fetching faker 1.7.3
Fetching sass-listen 4.0.0
Installing sass-listen 4.0.0
Installing faker 1.7.3
Fetching loofah 2.2.2
Installing loofah 2.2.2
Fetching rails-dom-testing 2.0.3
Fetching globalid 0.4.1
Installing rails-dom-testing 2.0.3
Installing globalid 0.4.1
Fetching arbre 1.1.1
Installing arbre 1.1.1
Fetching activemodel 5.2.1
Installing activemodel 5.2.1
Fetching jbuilder 2.7.0
Fetching sass 3.5.7
Fetching rails-html-sanitizer 1.0.4
Installing jbuilder 2.7.0
Installing rails-html-sanitizer 1.0.4
Installing sass 3.5.7
Fetching activejob 5.2.1
Installing activejob 5.2.1
Fetching activerecord 5.2.1
Installing activerecord 5.2.1
Fetching carrierwave 0.11.2
Installing carrierwave 0.11.2
Fetching actionview 5.2.1
Installing actionview 5.2.1
Fetching actionpack 5.2.1
Installing actionpack 5.2.1
Fetching kaminari-actionview 1.1.1
Installing kaminari-actionview 1.1.1
Fetching bootstrap-sass 3.3.7
Fetching kaminari-activerecord 1.1.1
Installing kaminari-activerecord 1.1.1
Installing bootstrap-sass 3.3.7
Fetching kaminari 1.1.1
Installing kaminari 1.1.1
Fetching actioncable 5.2.1
Fetching actionmailer 5.2.1
Installing actioncable 5.2.1
Installing actionmailer 5.2.1
Fetching railties 5.2.1
Installing railties 5.2.1
Fetching formtastic 3.1.5
Installing formtastic 3.1.5
Fetching has_scope 0.7.2
Installing has_scope 0.7.2
Fetching ransack 2.0.1
Installing ransack 2.0.1
Fetching activestorage 5.2.1
Installing activestorage 5.2.1
Fetching sprockets-rails 3.2.1
Installing sprockets-rails 3.2.1
Fetching responders 2.4.0
Fetching coffee-rails 4.2.2
Fetching jquery-rails 4.3.1
Installing coffee-rails 4.2.2
Installing responders 2.4.0
Installing jquery-rails 4.3.1
Fetching rails 5.2.1
Installing rails 5.2.1
Fetching sass-rails 5.0.7
Fetching inherited_resources 1.9.0
Installing sass-rails 5.0.7
Installing inherited_resources 1.9.0
Fetching devise 4.5.0
Fetching activeadmin 1.3.1
Installing activeadmin 1.3.1
Installing devise 4.5.0
Bundle complete! 29 Gemfile dependencies, 83 gems now installed.
Gems in the groups development and test were not installed.
Bundled gems are installed into ./vendor/bundle.
Post-install message from sass:
Ruby Sass is deprecated and will be unmaintained as of 26 March 2019.
* If you use Sass as a command-line tool, we recommend using Dart Sass, the new
primary implementation: https://sass-lang.com/install
* If you use Sass as a plug-in for a Ruby web framework, we recommend using the
sassc gem: https://github.com/sass/sassc-ruby#readme
* For more details, please refer to the Sass blog:
http://sass.logdown.com/posts/7081811
Bundle completed (80.77s)
Cleaning up the bundler cache.
Your Gemfile lists the gem bootstrap-sass (= 3.3.7) more than once.
You should probably keep only one of them.
While it's not a problem now, it could cause errors if you change the version of one of them later.
Warning: the running version of Bundler (1.15.2) is older than the version that created the lockfile (1.16.2). We suggest you upgrade to the latest version of Bundler by running `gem install bundler`.
-----> Installing node-v8.10.0-linux-x64
-----> Detecting rake tasks
-----> Preparing app for Rails asset pipeline
Running: rake assets:precompile
Yarn executable was not detected in the system.
Download Yarn at https://yarnpkg.com/en/docs/install
I, [2018-09-08T19:25:07.734693 #1679] INFO -- : Writing /tmp/build_c75357820f68f58674096bc8758f9029/public/assets/active_admin-2f0c629fec336846acce347e83766ca452d7cd2476c4982b2754ee82f9ec07d2.css
I, [2018-09-08T19:25:07.735467 #1679] INFO -- : Writing /tmp/build_c75357820f68f58674096bc8758f9029/public/assets/active_admin-2f0c629fec336846acce347e83766ca452d7cd2476c4982b2754ee82f9ec07d2.css.gz
I, [2018-09-08T19:25:07.736190 #1679] INFO -- : Writing /tmp/build_c75357820f68f58674096bc8758f9029/public/assets/active_admin/nested_menu_arrow-15084d93c65c1964d7077700ea748bd2d70cfa2d4c19707c58a9c64e232dd442.gif
I, [2018-09-08T19:25:07.737492 #1679] INFO -- : Writing /tmp/build_c75357820f68f58674096bc8758f9029/public/assets/active_admin/nested_menu_arrow_dark-7c43b8e0a5f8823875f49a093c9d7a6b374f885b6f9cc248ae9cd7e6e9b29034.gif
I, [2018-09-08T19:25:07.738714 #1679] INFO -- : Writing /tmp/build_c75357820f68f58674096bc8758f9029/public/assets/active_admin/orderable-29374dbb55b0012d78a37c614d573bb3474f0779849b478a147d0f1845ca6617.png
I, [2018-09-08T19:25:07.922270 #1679] INFO -- : Writing /tmp/build_c75357820f68f58674096bc8758f9029/public/assets/active_admin/print-cf99cbf27fb92065a9eacd28e6fad48fa72cadaf6e0918790e8d35b11d8f99f6.css
I, [2018-09-08T19:25:07.922488 #1679] INFO -- : Writing /tmp/build_c75357820f68f58674096bc8758f9029/public/assets/active_admin/print-cf99cbf27fb92065a9eacd28e6fad48fa72cadaf6e0918790e8d35b11d8f99f6.css.gz
I, [2018-09-08T19:25:16.019597 #1679] INFO -- : Writing /tmp/build_c75357820f68f58674096bc8758f9029/public/assets/active_admin-f23692a0f65604671f6920cdddfccfc6a2b48230d03d594e317a335f8f821854.js
I, [2018-09-08T19:25:16.020503 #1679] INFO -- : Writing /tmp/build_c75357820f68f58674096bc8758f9029/public/assets/active_admin-f23692a0f65604671f6920cdddfccfc6a2b48230d03d594e317a335f8f821854.js.gz
I, [2018-09-08T19:25:16.024346 #1679] INFO -- : Writing /tmp/build_c75357820f68f58674096bc8758f9029/public/assets/eseed-03cb614c50858ccb77604c8880c5e2e161a53bd3e4e1581d1b9db920771bcab9.jpg
rake aborted!
Uglifier::Error: Unexpected character '#'
/tmp/build_c75357820f68f58674096bc8758f9029/vendor/bundle/ruby/2.5.0/gems/uglifier-4.1.18/lib/uglifier.rb:234:in `parse_result'
/tmp/build_c75357820f68f58674096bc8758f9029/vendor/bundle/ruby/2.5.0/gems/uglifier-4.1.18/lib/uglifier.rb:216:in `run_uglifyjs'
/tmp/build_c75357820f68f58674096bc8758f9029/vendor/bundle/ruby/2.5.0/gems/uglifier-4.1.18/lib/uglifier.rb:168:in `compile'
/tmp/build_c75357820f68f58674096bc8758f9029/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/uglifier_compressor.rb:53:in `call'
/tmp/build_c75357820f68f58674096bc8758f9029/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/uglifier_compressor.rb:28:in `call'
/tmp/build_c75357820f68f58674096bc8758f9029/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:75:in `call_processor'
/tmp/build_c75357820f68f58674096bc8758f9029/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:57:in `block in call_processors'
/tmp/build_c75357820f68f58674096bc8758f9029/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:56:in `reverse_each'
/tmp/build_c75357820f68f58674096bc8758f9029/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:56:in `call_processors'
/tmp/build_c75357820f68f58674096bc8758f9029/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:134:in `load_from_unloaded'
/tmp/build_c75357820f68f58674096bc8758f9029/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:60:in `block in load'
/tmp/build_c75357820f68f58674096bc8758f9029/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:317:in `fetch_asset_from_dependency_cache'
/tmp/build_c75357820f68f58674096bc8758f9029/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:44:in `load'
/tmp/build_c75357820f68f58674096bc8758f9029/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/cached_environment.rb:20:in `block in initialize'
/tmp/build_c75357820f68f58674096bc8758f9029/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/cached_environment.rb:47:in `load'
/tmp/build_c75357820f68f58674096bc8758f9029/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/base.rb:66:in `find_asset'
/tmp/build_c75357820f68f58674096bc8758f9029/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/base.rb:73:in `find_all_linked_assets'
/tmp/build_c75357820f68f58674096bc8758f9029/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/manifest.rb:142:in `block in find'
/tmp/build_c75357820f68f58674096bc8758f9029/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:114:in `block (2 levels) in logical_paths'
/tmp/build_c75357820f68f58674096bc8758f9029/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:228:in `block in stat_tree'
/tmp/build_c75357820f68f58674096bc8758f9029/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:212:in `block in stat_directory'
/tmp/build_c75357820f68f58674096bc8758f9029/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:209:in `each'
/tmp/build_c75357820f68f58674096bc8758f9029/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:209:in `stat_directory'
/tmp/build_c75357820f68f58674096bc8758f9029/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:227:in `stat_tree'
/tmp/build_c75357820f68f58674096bc8758f9029/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:105:in `each'
/tmp/build_c75357820f68f58674096bc8758f9029/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:105:in `block in logical_paths'
/tmp/build_c75357820f68f58674096bc8758f9029/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:104:in `each'
/tmp/build_c75357820f68f58674096bc8758f9029/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:104:in `logical_paths'
/tmp/build_c75357820f68f58674096bc8758f9029/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/manifest.rb:140:in `find'
/tmp/build_c75357820f68f58674096bc8758f9029/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/manifest.rb:186:in `compile'
/tmp/build_c75357820f68f58674096bc8758f9029/vendor/bundle/ruby/2.5.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/task.rb:68:in `block (3 levels) in define'
/tmp/build_c75357820f68f58674096bc8758f9029/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/rake/sprocketstask.rb:147:in `with_logger'
/tmp/build_c75357820f68f58674096bc8758f9029/vendor/bundle/ruby/2.5.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/task.rb:67:in `block (2 levels) in define'
/tmp/build_c75357820f68f58674096bc8758f9029/vendor/bundle/ruby/2.5.0/gems/rake-12.3.1/exe/rake:27:in `<top (required)>'
Tasks: TOP => assets:precompile
(See full trace by running task with --trace)
!
! Precompiling assets failed.
!
! Push rejected, failed to compile Ruby app.
! Push failed
Notes: tried to fix the uglifier by changing production.rb using this answer, but it's not working though
Syntax error when deploying Rails app to Heroku: ExecJS::RuntimeError: SyntaxError: Unexpected character
Solution:
remove the comment line which is start with "#" from any of your .js file
source of answer: ExecJS::ProgramError: Unexpected character '#'
You would use bundle update, to update the version of gem, run gem install bundler
Your application must be up to date because is rely on gems that have deprecated features and about update gems
see here
I have recently noticed when deploying my app to heroku that the devise gem seems to be causing me some grief due to the ruby version. I have tried lowering the devise version 3.9 but this still didn't fix it
-----> Using set buildpack heroku/ruby
-----> Ruby app detected
-----> Compiling Ruby/Rails
-----> Using Ruby version: ruby-2.0.0
-----> Installing dependencies using bundler 1.11.2
Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
Fetching gem metadata from https://rubygems.org/...........
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
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.
Using rake 11.1.2
Installing aasm 4.10.0
Using i18n 0.7.0
Using json 1.8.3
Using minitest 5.8.4
Using thread_safe 0.3.5
Using builder 3.2.2
Using erubis 2.7.0
Using mini_portile2 2.0.0
Using rack 1.6.4
Using mime-types-data 3.2016.0221
Using arel 6.0.3
Using execjs 2.6.0
Using bcrypt 3.1.11
Using tilt 2.0.2
Using highline 1.7.8
Using sexp_processor 4.7.0
Using safe_yaml 1.0.4
Using sass 3.4.22
Using temple 0.7.6
Using terminal-table 1.5.2
Using cancancan 1.13.1
Using coffee-script-source 1.10.0
Using thor 0.19.1
Using concurrent-ruby 1.0.1
Using dalli 2.7.6
Using orm_adapter 0.5.0
Installing geocoder 1.3.4
Using jwt 1.5.4
Using kgio 2.10.0
Using memcachier 0.0.2
Using multi_json 1.11.2
Using pg 0.18.4
Installing puma 3.4.0 with native extensions
Using bundler 1.11.2
Using rails_serve_static_assets 0.0.5
Using rails_stdout_logging 0.0.5
Using rolify 5.1.0
Using tzinfo 1.2.2
Installing braintree 2.60.0
Using nokogiri 1.6.7.2
Using rack-test 0.6.3
Using warden 1.2.6
Using mime-types 3.0
Using autoprefixer-rails 6.3.6
Using uglifier 3.0.0
Using haml 4.0.7
Using ruby_parser 3.8.1
Using slim 3.0.6
Using coffee-script 2.4.1
Installing sprockets 3.6.0
Using twilio-ruby 4.11.1
Using rails_12factor 0.0.3
Using activesupport 4.2.4
Using loofah 2.0.3
Using mail 2.6.4
Using material_design_lite-sass 1.1.3
Using ruby2ruby 2.3.0
Using html2haml 2.0.0
Using rails-deprecated_sanitizer 1.0.3
Using globalid 0.3.6
Using activemerchant 1.58.0
Using activemodel 4.2.4
Using rails-html-sanitizer 1.0.3
Using brakeman 3.2.1
Using rails-dom-testing 1.0.7
Using activejob 4.2.4
Using activerecord 4.2.4
Using actionview 4.2.4
Using friendly_id 5.1.0
Using pg_search 1.0.5
Using actionpack 4.2.4
Using actionmailer 4.2.4
Using railties 4.2.4
Using kaminari 0.16.3
Using sprockets-rails 3.0.4
Using coffee-rails 4.1.1
Using responders 2.1.2
Using jquery-rails 4.1.1
Using rails 4.2.4
Using sass-rails 5.0.4
Installing devise 4.0.0
Gem::InstallError: devise requires Ruby version >= 2.1.0.
An error occurred while installing devise (4.0.0), and Bundler cannot continue.
Make sure that `gem install devise -v '4.0.0'` succeeds before bundling.
Bundler Output: Fetching gem metadata from https://rubygems.org/...........
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
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.
Using rake 11.1.2
Installing aasm 4.10.0
Using i18n 0.7.0
Using json 1.8.3
Using minitest 5.8.4
Using thread_safe 0.3.5
Using builder 3.2.2
Using erubis 2.7.0
Using mini_portile2 2.0.0
Using rack 1.6.4
Using mime-types-data 3.2016.0221
Using arel 6.0.3
Using execjs 2.6.0
Using bcrypt 3.1.11
Using tilt 2.0.2
Using highline 1.7.8
Using sexp_processor 4.7.0
Using safe_yaml 1.0.4
Using sass 3.4.22
Using temple 0.7.6
Using terminal-table 1.5.2
Using cancancan 1.13.1
Using coffee-script-source 1.10.0
Using thor 0.19.1
Using concurrent-ruby 1.0.1
Using dalli 2.7.6
Using orm_adapter 0.5.0
Installing geocoder 1.3.4
Using jwt 1.5.4
Using kgio 2.10.0
Using memcachier 0.0.2
Using multi_json 1.11.2
Using pg 0.18.4
Installing puma 3.4.0 with native extensions
Using bundler 1.11.2
Using rails_serve_static_assets 0.0.5
Using rails_stdout_logging 0.0.5
Using rolify 5.1.0
Using tzinfo 1.2.2
Installing braintree 2.60.0
Using nokogiri 1.6.7.2
Using rack-test 0.6.3
Using warden 1.2.6
Using mime-types 3.0
Using autoprefixer-rails 6.3.6
Using uglifier 3.0.0
Using haml 4.0.7
Using ruby_parser 3.8.1
Using slim 3.0.6
Using coffee-script 2.4.1
Installing sprockets 3.6.0
Using twilio-ruby 4.11.1
Using rails_12factor 0.0.3
Using activesupport 4.2.4
Using loofah 2.0.3
Using mail 2.6.4
Using material_design_lite-sass 1.1.3
Using ruby2ruby 2.3.0
Using html2haml 2.0.0
Using rails-deprecated_sanitizer 1.0.3
Using globalid 0.3.6
Using activemerchant 1.58.0
Using activemodel 4.2.4
Using rails-html-sanitizer 1.0.3
Using brakeman 3.2.1
Using rails-dom-testing 1.0.7
Using activejob 4.2.4
Using activerecord 4.2.4
Using actionview 4.2.4
Using friendly_id 5.1.0
Using pg_search 1.0.5
Using actionpack 4.2.4
Using actionmailer 4.2.4
Using railties 4.2.4
Using kaminari 0.16.3
Using sprockets-rails 3.0.4
Using coffee-rails 4.1.1
Using responders 2.1.2
Using jquery-rails 4.1.1
Using rails 4.2.4
Using sass-rails 5.0.4
Installing devise 4.0.0
Gem::InstallError: devise requires Ruby version >= 2.1.0.
An error occurred while installing devise (4.0.0), and Bundler cannot continue.
Make sure that `gem install devise -v '4.0.0'` succeeds before bundling.
!
! Failed to install gems via Bundler.
!
! Push rejected, failed to compile Ruby app
You can specify the ruby in your Gemfile, or better yet set an environment variable in your heroku app config: devcenter.heroku.com/articles/ruby-versions
I just added the gem 'bootstrap-sass', '~> 3.3.3' into my gemfile pages. I reinstall the bundle as follows (as specified):
Fetching gem metadata from https://rubygems.org/..........
Fetching version metadata from https://rubygems.org/..
Resolving dependencies...
Installing rake 10.4.2
Installing i18n 0.7.0
Installing json 1.8.2
Installing minitest 5.5.1
Installing thread_safe 0.3.4
Installing tzinfo 1.2.2
Installing activesupport 4.2.0
Installing builder 3.2.2
Installing erubis 2.7.0
Installing mini_portile 0.6.2
Installing nokogiri 1.6.6.2
Installing rails-deprecated_sanitizer 1.0.3
Installing rails-dom-testing 1.0.5
Installing loofah 2.0.1
Installing rails-html-sanitizer 1.0.1
Installing actionview 4.2.0
Installing rack 1.6.0
Installing rack-test 0.6.3
Installing actionpack 4.2.0
Installing globalid 0.3.3
Installing activejob 4.2.0
Installing mime-types 2.4.3
Installing mail 2.6.3
Installing actionmailer 4.2.0
Installing activemodel 4.2.0
Installing arel 6.0.0
Installing activerecord 4.2.0
Installing execjs 2.3.0
Installing autoprefixer-rails 5.1.7
Installing debug_inspector 0.0.2
Installing binding_of_caller 0.7.2
Installing sass 3.4.13
Installing bootstrap-sass 3.3.3
Using bundler 1.8.3
Installing columnize 0.9.0
Installing debugger-linecache 1.2.0
Installing slop 3.6.0
Installing byebug 3.5.1
Installing coffee-script-source 1.9.1
Installing coffee-script 2.3.0
Installing thor 0.19.1
Installing railties 4.2.0
Installing coffee-rails 4.1.0
Installing hike 1.2.3
Installing multi_json 1.10.1
Installing jbuilder 2.2.8
Installing jquery-rails 4.0.3
Installing tilt 1.4.1
Installing sprockets 2.12.3
Installing sprockets-rails 2.2.4
Installing rails 4.2.0
Installing rdoc 4.2.0
Installing sass-rails 5.0.1
Installing sdoc 0.4.1
Installing spring 1.3.3
Installing sqlite3 1.3.10
Installing turbolinks 2.5.3
Installing uglifier 2.7.1
Installing web-console 2.1.0
Bundle complete! 14 Gemfile dependencies, 59 gems now installed.
Gems in the group production were not installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.
Post-install message from rdoc:
Depending on your version of ruby, you may need to install ruby rdoc/ri data:
<= 1.8.6 : unsupported
= 1.8.7 : gem install rdoc-data; rdoc-data --install
= 1.9.1 : gem install rdoc-data; rdoc-data --install
>= 1.9.2 : nothing to do! Yay!
All good till here.
Then i added the code #import "bootstrap"; into my styles.css.scss file.
I restarted the server for the changes to reflect in localhost:3000
Then this happens:
rails server
Warning: Running `gem pristine --all` to regenerate your installed gemspecs (and deleting then reinstalling your bundle if you use bundle --path) will improve the startup performance of Spring.
Could not find autoprefixer-rails-5.1.7 in any of the sources
Run `bundle install` to install missing gems.
I tried running 'bundle install' but to my dismay the same error crept up again and again.
So in a jist, the server doesn't start citing "it couldn't find autoprefixer-rails-5.1.7 gem " but if you check the script above it has actually installed it.
Please help me fix this.
I ran the command bundle exec rails s. The server runs now. But it still isn't running if the command rails s is executed. It throws the same error.