I am trying to deploy the app Catarse on heroku, but it does not want to push it.
I am quite new to git and heroku, so perhaps I am just making a very stupid basic error, but still..
This is what I got:
git push heroku master
Counting objects: 1740, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (1657/1657), done.
Writing objects: 100% (1740/1740), 4.90 MiB | 356.00 KiB/s, done.
Total 1740 (delta 308), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Warning: Multiple default buildpacks reported the ability to handle this app. The first buildpack in the list below will be used.
remote: Detected buildpacks: Ruby, Node.js
remote: See https://devcenter.heroku.com/articles/buildpacks#buildpack-detect-order
remote: -----> Ruby app detected
remote: -----> Compiling Ruby/Rails
remote: -----> Using Ruby version: ruby-2.2.2
remote: -----> Installing dependencies using 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: Fetching git://github.com/bernat/best_in_place
remote: Fetching git://github.com/catarse/catarse_api.git
remote: Fetching git://github.com/catarse/moip-ruby.git
remote: Fetching git://github.com/catarse/redactor-rails.git
remote: Using rake 10.4.2
remote: Installing CFPropertyList 2.3.1
remote: Installing i18n 0.7.0
remote: Installing minitest 5.7.0
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 2.6.1
remote: Installing arel 5.0.1.20140414130214
remote: Installing addressable 2.3.8
remote: Installing json 1.8.3
remote: Installing extlib 0.9.16
remote: Installing rinku 1.5.1
remote: Installing multi_json 1.11.0
remote: Installing browser 0.8.0
remote: Using bundler 1.9.7
remote: Installing thor 0.19.1
remote: Installing hike 1.2.3
remote: Installing tilt 1.4.1
remote: Installing crack 0.1.8
remote: Installing redcarpet 3.2.3
remote: Installing excon 0.45.3
remote: Installing bcrypt 3.1.10
remote: Installing netrc 0.10.3
remote: Installing weekdays 1.0.2
remote: Installing libxml-ruby 2.8.0
remote: Installing chartkick 1.3.2
remote: Installing chunky_png 1.3.4
remote: Installing cocoon 1.2.6
remote: Installing unf_ext 0.0.7.1
remote: Installing coffee-script-source 1.9.1.1
remote: Installing execjs 2.5.2
remote: Installing sass 3.4.15
remote: Installing rb-fsevent 0.9.4
remote: Installing connection_pool 2.2.0
remote: Installing hitimes 1.2.2
remote: Installing multipart-post 2.0.0
remote: Installing jwt 1.5.1
remote: Installing little-plugger 1.1.3
remote: Installing memoist 0.12.0
remote: Installing retriable 1.4.1
remote: Installing mini_portile 0.6.2
remote: Installing oauth 0.4.7
remote: Installing multi_xml 0.5.5
remote: Installing temple 0.7.6
remote: Installing orm_adapter 0.5.0
remote: Installing request_store 1.1.0
remote: Installing ezcrypto 0.7.2
remote: Installing sax-machine 1.3.2
remote: Installing formatador 0.2.5
remote: Installing net-ssh 2.9.2
remote: Installing ipaddress 0.8.0
remote: Installing inflecto 0.0.2
remote: Installing hashie 3.4.1
remote: Installing high_voltage 2.3.0
remote: Installing htmlentities 4.3.3
remote: Installing http_accept_language 2.0.5
remote: Installing httpclient 2.6.0.1
remote: Installing curb 0.8.8
remote: Installing mini_magick 4.2.4
remote: Installing mixpanel-ruby 2.1.0
remote: Installing newrelic_rpm 3.12.0.288
remote: Installing ffi 1.9.8
remote: Installing rails_serve_static_assets 0.0.4
remote: Installing rails_stdout_logging 0.0.3
remote: Installing kgio 2.9.3
remote: Installing rb-readline 0.5.2
remote: Installing redis 3.2.1
remote: Installing ruby-ole 1.2.11.8
remote: Installing valuable 0.9.9
remote: Installing state_machine 1.2.0
remote: Installing fission 0.5.0
remote: Installing tzinfo 1.2.2
remote: Installing rack-test 0.6.3
remote: Installing warden 1.2.3
remote: Installing heroku-deflater 0.5.3
remote: Installing mail 2.6.3
remote: Installing launchy 2.4.3
remote: Installing autoparse 0.3.3
remote: Installing sprockets 2.12.3
remote: Installing httparty 0.6.1
remote: Installing auto_html 1.6.4
remote: Installing mailchimp-api 2.0.6
remote: Installing unf 0.1.4
remote: Installing coffee-script 2.4.1
remote: Installing uglifier 2.7.1
remote: Installing compass-core 1.0.3
remote: Installing compass-import-once 1.0.5
remote: Installing timers 4.0.1
remote: Installing faraday 0.9.1
remote: Installing logging 2.0.0
remote: Installing pg 0.17.1
remote: Installing slim 3.0.6
remote: Installing net-scp 1.2.1
remote: Installing omniauth 1.2.2
remote: Installing video_info 2.4.2
remote: Installing rb-inotify 0.9.5
remote: Installing raindrops 0.13.0
remote: Installing ethon 0.7.3
remote: Installing rails_12factor 0.0.3
remote: Installing redis-namespace 1.5.2
remote: Installing spreadsheet 1.0.3
remote: Installing activesupport 4.1.11
remote: Installing domain_name 0.5.24
remote: Installing celluloid 0.16.0
remote: Installing signet 0.6.1
remote: Installing oauth2 1.0.0
remote: Installing fog-core 1.30.0
remote: Installing omniauth-oauth 1.1.0
remote: Installing compass 1.0.3
remote: Installing typhoeus 0.7.1
remote: Installing to_xls 1.5.3
remote: Installing actionview 4.1.11
remote: Installing activemodel 4.1.11
remote: Installing enumerate_it 1.2.6
remote: Installing i18n_alchemy 0.2.1
remote: Installing pundit 1.0.0
remote: Installing http-cookie 1.0.2
remote: Installing sidekiq 3.1.4
remote: Installing googleauth 0.4.1
remote: Installing omniauth-oauth2 1.3.0
remote: Installing fog-json 1.0.1
remote: Installing fog-local 0.2.1
remote: Installing fog-vmfusion 0.1.0
remote: Installing omniauth-twitter 1.2.0
remote: Installing compass-960-plugin 0.10.4
remote: Installing mixpanel_client 4.1.2
remote: Installing nokogiri 1.6.6.2
remote: Installing actionpack 4.1.11
remote: Installing active_model_serializers 0.8.0
remote: Installing activerecord 4.1.11
remote: Installing carrierwave 0.10.0
remote: Installing rails-observers 0.1.2
remote: Installing protected_attributes 1.0.9
remote: Installing rest-client 1.8.0
remote: Installing spectator-validates_email 0.2.0
remote: Installing google-api-client 0.8.6
remote: Installing omniauth-facebook 2.0.1
remote: Installing fog-sakuracloud 1.0.1
remote: Installing fog-brightbox 0.7.1
remote: Installing fog-serverlove 0.1.2
remote: Installing fog-softlayer 0.4.6
remote: Installing fog-storm_on_demand 0.1.1
remote: Installing loofah 2.0.2
remote: Installing fog-xml 0.1.2
remote: Installing actionmailer 4.1.11
remote: Using moip 1.0.2 from git://github.com/catarse/moip-ruby.git (at c0225ad)
remote: Using best_in_place 3.0.0.alpha from git://github.com/bernat/best_in_place (at ee95961)
remote: Installing unicorn 4.9.0
remote: Installing has_scope 0.6.0
remote: Installing kaminari 0.16.3
remote: Installing railties 4.1.11
remote: Installing sprockets-rails 2.3.2
remote: Installing draper 2.1.0
remote: Installing routing-filter 0.4.0.1
remote: Installing simple_form 3.1.0
remote: Installing ranked-model 0.4.0
remote: Installing pg_search 1.0.3
remote: Installing schema_plus 1.8.9
remote: Installing pagarme 1.10.0
remote: Installing fog-atmos 0.1.0
remote: Installing feedjira 1.6.0
remote: Installing google_drive 1.0.1
remote: Installing fog-ecloud 0.1.1
remote: Installing fog-google 0.0.5
remote: Installing fog-powerdns 0.1.1
remote: Installing fog-aws 0.2.2
remote: Installing fog-profitbricks 0.0.2
remote: Installing fog-radosgw 0.0.4
remote: Installing fog-riakcs 0.1.0
remote: Installing fog-terremark 0.1.0
remote: Installing fog-voxel 0.1.0
remote: Installing mail_form 1.5.1
remote: Installing coffee-rails 4.1.0
remote: Installing responders 1.1.2
remote: Installing slim-rails 3.0.1
remote: Installing sass-rails 5.0.1
remote: Installing rails 4.1.11
remote: Installing devise 3.4.1
remote: Installing inherited_resources 1.6.0
remote: Using catarse_api 0.0.2 from git://github.com/catarse/catarse_api.git (at master)
remote: Installing compass-rails 2.0.4
remote: Installing catarse_monkeymail 0.1.6
remote: Installing catarse_moip 3.2.0
remote: Installing catarse_settings_db 0.1.1
remote: Installing catarse_pagarme 2.6.10
remote: Installing postgres-copy 0.9.2
remote: Installing dbhero 1.1.8
remote: Using redactor-rails 0.5.0 from git://github.com/catarse/redactor-rails.git (at master)
remote: Installing fog 1.30.0
remote: Installing user_notifier 0.0.5
remote: Bundle complete! 85 Gemfile dependencies, 192 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 httparty:
remote: When you HTTParty, you must party hard!
remote: Post-install message from compass:
remote: Compass is charityware. If you love it, please donate on our behalf at http://umdf.org/compass Thanks!
remote: Bundle completed (174.96s)
remote: Cleaning up the bundler cache.
remote: -----> Preparing app for Rails asset pipeline
remote: Running: rake assets:precompile
remote: rake aborted!
remote: SyntaxError: /tmp/build_97424fde514623846dbc1198d6b0f17f/config/environments/production.rb:91: syntax error, unexpected ...
remote: /tmp/build_97424fde514623846dbc1198d6b0f17f/config/environments/production.rb:93: syntax error, unexpected ..., expecting keyword_end
remote: /tmp/build_97424fde514623846dbc1198d6b0f17f/vendor/bundle/ruby/2.2.0/gems/activesupport-4.1.11/lib/active_support/dependencies.rb:247:in `require'
remote: /tmp/build_97424fde514623846dbc1198d6b0f17f/vendor/bundle/ruby/2.2.0/gems/activesupport-4.1.11/lib/active_support/dependencies.rb:247:in `block in require'
remote: /tmp/build_97424fde514623846dbc1198d6b0f17f/vendor/bundle/ruby/2.2.0/gems/activesupport-4.1.11/lib/active_support/dependencies.rb:232:in `load_dependency'
remote: /tmp/build_97424fde514623846dbc1198d6b0f17f/vendor/bundle/ruby/2.2.0/gems/activesupport-4.1.11/lib/active_support/dependencies.rb:247:in `require'
remote: /tmp/build_97424fde514623846dbc1198d6b0f17f/vendor/bundle/ruby/2.2.0/gems/railties-4.1.11/lib/rails/engine.rb:594:in `block (2 levels) in <class:Engine>'
remote: /tmp/build_97424fde514623846dbc1198d6b0f17f/vendor/bundle/ruby/2.2.0/gems/railties-4.1.11/lib/rails/engine.rb:593:in `each'
remote: /tmp/build_97424fde514623846dbc1198d6b0f17f/vendor/bundle/ruby/2.2.0/gems/railties-4.1.11/lib/rails/engine.rb:593:in `block in <class:Engine>'
remote: /tmp/build_97424fde514623846dbc1198d6b0f17f/vendor/bundle/ruby/2.2.0/gems/railties-4.1.11/lib/rails/initializable.rb:30:in `instance_exec'
remote: /tmp/build_97424fde514623846dbc1198d6b0f17f/vendor/bundle/ruby/2.2.0/gems/railties-4.1.11/lib/rails/initializable.rb:30:in `run'
remote: /tmp/build_97424fde514623846dbc1198d6b0f17f/vendor/bundle/ruby/2.2.0/gems/railties-4.1.11/lib/rails/initializable.rb:55:in `block in run_initializers'
remote: /tmp/build_97424fde514623846dbc1198d6b0f17f/vendor/bundle/ruby/2.2.0/gems/railties-4.1.11/lib/rails/initializable.rb:44:in `each'
remote: /tmp/build_97424fde514623846dbc1198d6b0f17f/vendor/bundle/ruby/2.2.0/gems/railties-4.1.11/lib/rails/initializable.rb:44:in `tsort_each_child'
remote: /tmp/build_97424fde514623846dbc1198d6b0f17f/vendor/bundle/ruby/2.2.0/gems/railties-4.1.11/lib/rails/initializable.rb:54:in `run_initializers'
remote: /tmp/build_97424fde514623846dbc1198d6b0f17f/vendor/bundle/ruby/2.2.0/gems/railties-4.1.11/lib/rails/application.rb:300:in `initialize!'
remote: /tmp/build_97424fde514623846dbc1198d6b0f17f/vendor/bundle/ruby/2.2.0/gems/railties-4.1.11/lib/rails/railtie.rb:194:in `public_send'
remote: /tmp/build_97424fde514623846dbc1198d6b0f17f/vendor/bundle/ruby/2.2.0/gems/railties-4.1.11/lib/rails/railtie.rb:194:in `method_missing'
remote: /tmp/build_97424fde514623846dbc1198d6b0f17f/config/environment.rb:7:in `<top (required)>'
remote: /tmp/build_97424fde514623846dbc1198d6b0f17f/vendor/bundle/ruby/2.2.0/gems/activesupport-4.1.11/lib/active_support/dependencies.rb:247:in `require'
remote: /tmp/build_97424fde514623846dbc1198d6b0f17f/vendor/bundle/ruby/2.2.0/gems/activesupport-4.1.11/lib/active_support/dependencies.rb:247:in `block in require'
remote: /tmp/build_97424fde514623846dbc1198d6b0f17f/vendor/bundle/ruby/2.2.0/gems/activesupport-4.1.11/lib/active_support/dependencies.rb:232:in `load_dependency'
remote: /tmp/build_97424fde514623846dbc1198d6b0f17f/vendor/bundle/ruby/2.2.0/gems/activesupport-4.1.11/lib/active_support/dependencies.rb:247:in `require'
remote: /tmp/build_97424fde514623846dbc1198d6b0f17f/vendor/bundle/ruby/2.2.0/gems/railties-4.1.11/lib/rails/application.rb:276:in `require_environment!'
remote: /tmp/build_97424fde514623846dbc1198d6b0f17f/vendor/bundle/ruby/2.2.0/gems/railties-4.1.11/lib/rails/application.rb:405:in `block in run_tasks_blocks'
remote: /tmp/build_97424fde514623846dbc1198d6b0f17f/vendor/bundle/ruby/2.2.0/gems/sprockets-rails-2.3.2/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 immense-depths-6113.
remote:
To https://git.heroku.com/immense-depths-6113.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/immense-depths-6113.git'
note that my config/application.rb is already set with config.assets.initialize_on_precompile = false , so the problem is not that..
From what you have provided on lines 90 through 94, it seems as if the ... are causing the issue - those are invalid syntax. Try rewriting it like so:
config.secret_key_base = ENV["SECRET_KEY_BASE"]
Because Rails.application.configure do and end are specified at the start and end of the file respectively, the extra repetition of those lines is not necessary. This should fix the syntax issue.
Hope it helps!
You will need to precompile your assets and then commit before you deploy:
RAILS_ENV=production bin/rake assets:precompile
Related
I am trying on pushing and making my app live on heroku but when I tried execute git push heroku master I got the ff error:
giboapp git:master ❯ git push heroku master ⏎
Enumerating objects: 930, done.
Counting objects: 100% (930/930), done.
Delta compression using up to 2 threads
Compressing objects: 100% (645/645), done.
Writing objects: 100% (930/930), 263.37 KiB | 2.29 MiB/s, done.
Total 930 (delta 516), reused 470 (delta 255), pack-reused 0
remote: Compressing source files... done.
remote: Building source:
remote:
remote: ! Warning: Multiple default buildpacks reported the ability to handle this app. The first buildpack in the list below will be used.
remote: Detected buildpacks: Ruby,Node.js
remote: See https://devcenter.heroku.com/articles/buildpacks#buildpack-detect-order
remote: -----> Ruby app detected
remote: -----> Installing bundler 2.0.2
remote: -----> Removing BUNDLED WITH version in the Gemfile.lock
remote: -----> Compiling Ruby/Rails
remote: -----> Using Ruby version: ruby-2.6.5
remote: -----> Installing dependencies using bundler 2.0.2
remote: Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
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 rake 13.0.1
remote: Installing rake 13.0.1
remote: Fetching concurrent-ruby 1.1.6
remote: Fetching thread_safe 0.3.6
remote: Fetching minitest 5.14.1
remote: Installing minitest 5.14.1
remote: Installing thread_safe 0.3.6
remote: Installing concurrent-ruby 1.1.6
remote: Fetching builder 3.2.4
remote: Installing builder 3.2.4
remote: Fetching erubi 1.9.0
remote: Installing erubi 1.9.0
remote: Fetching mini_portile2 2.4.0
remote: Fetching crass 1.0.6
remote: Installing mini_portile2 2.4.0
remote: Installing crass 1.0.6
remote: Fetching rack 2.2.2
remote: Fetching nio4r 2.5.2
remote: Installing rack 2.2.2
remote: Installing nio4r 2.5.2 with native extensions
remote: Fetching websocket-extensions 0.1.4
remote: Installing websocket-extensions 0.1.4
remote: Fetching mini_mime 1.0.2
remote: Installing mini_mime 1.0.2
remote: Fetching arel 9.0.0
remote: Installing arel 9.0.0
remote: Fetching mimemagic 0.3.5
remote: Installing mimemagic 0.3.5
remote: Fetching execjs 2.7.0
remote: Installing execjs 2.7.0
remote: Fetching bcrypt 3.1.13
remote: Installing bcrypt 3.1.13 with native extensions
remote: Fetching msgpack 1.3.3
remote: Installing msgpack 1.3.3 with native extensions
remote: Fetching popper_js 1.16.0
remote: Installing popper_js 1.16.0
remote: Fetching method_source 1.0.0
remote: Installing method_source 1.0.0
remote: Fetching thor 1.0.1
remote: Installing thor 1.0.1
remote: Fetching ffi 1.13.0
remote: Installing ffi 1.13.0 with native extensions
remote: Fetching tilt 2.0.10
remote: Installing tilt 2.0.10
remote: Using bundler 2.0.2
remote: Fetching coffee-script-source 1.12.2
remote: Installing coffee-script-source 1.12.2
remote: Fetching orm_adapter 0.5.0
remote: Installing orm_adapter 0.5.0
remote: Fetching kaminari-core 1.2.0
remote: Installing kaminari-core 1.2.0
remote: Fetching pg 1.2.3
remote: Installing pg 1.2.3 with native extensions
remote: Fetching puma 3.12.4
remote: Installing puma 3.12.4 with native extensions
remote: Fetching rb-fsevent 0.10.4
remote: Installing rb-fsevent 0.10.4
remote: Fetching turbolinks-source 5.2.0
remote: Installing turbolinks-source 5.2.0
remote: Fetching tzinfo 1.2.7
remote: Installing tzinfo 1.2.7
remote: Fetching nokogiri 1.10.9
remote: Installing nokogiri 1.10.9 with native extensions
remote: Fetching i18n 1.8.2
remote: Installing i18n 1.8.2
remote: Fetching websocket-driver 0.7.2
remote: Installing websocket-driver 0.7.2 with native extensions
remote: Fetching rack-test 1.1.0
remote: Installing rack-test 1.1.0
remote: Fetching sprockets 3.7.2
remote: Installing sprockets 3.7.2
remote: Fetching warden 1.2.8
remote: Installing warden 1.2.8
remote: Fetching mail 2.7.1
remote: Installing mail 2.7.1
remote: Fetching marcel 0.3.3
remote: Installing marcel 0.3.3
remote: Fetching autoprefixer-rails 9.7.4
remote: Installing autoprefixer-rails 9.7.4
remote: Fetching uglifier 4.2.0
remote: Installing uglifier 4.2.0
remote: Fetching coffee-script 2.4.1
remote: Installing coffee-script 2.4.1
remote: Fetching bootsnap 1.4.6
remote: Installing bootsnap 1.4.6 with native extensions
remote: Fetching sassc 2.3.0
remote: Installing sassc 2.3.0 with native extensions
remote: Fetching rb-inotify 0.10.1
remote: Installing rb-inotify 0.10.1
remote: Fetching turbolinks 5.2.1
remote: Installing turbolinks 5.2.1
remote: Fetching activesupport 5.2.4.2
remote: Installing activesupport 5.2.4.2
remote: Fetching faker 1.9.6
remote: Installing faker 1.9.6
remote: Fetching loofah 2.5.0
remote: Installing loofah 2.5.0
remote: Fetching sass-listen 4.0.0
remote: Installing sass-listen 4.0.0
remote: Fetching rails-dom-testing 2.0.3
remote: Installing rails-dom-testing 2.0.3
remote: Fetching globalid 0.4.2
remote: Installing globalid 0.4.2
remote: Fetching activemodel 5.2.4.2
remote: Installing activemodel 5.2.4.2
remote: Fetching jbuilder 2.10.0
remote: Installing jbuilder 2.10.0
remote: Fetching pundit 1.1.0
remote: Installing pundit 1.1.0
remote: Fetching rails-html-sanitizer 1.3.0
remote: Installing rails-html-sanitizer 1.3.0
remote: Fetching sass 3.7.4
remote: Installing sass 3.7.4
remote: Fetching activejob 5.2.4.2
remote: Installing activejob 5.2.4.2
remote: Fetching activerecord 5.2.4.2
remote: Installing activerecord 5.2.4.2
remote: Fetching actionview 5.2.4.2
remote: Installing actionview 5.2.4.2
remote: Fetching actionpack 5.2.4.2
remote: Installing actionpack 5.2.4.2
remote: Fetching kaminari-actionview 1.2.0
remote: Installing kaminari-actionview 1.2.0
remote: Fetching kaminari-activerecord 1.2.0
remote: Installing kaminari-activerecord 1.2.0
remote: Fetching kaminari 1.2.0
remote: Installing kaminari 1.2.0
remote: Fetching actionmailer 5.2.4.2
remote: Fetching actioncable 5.2.4.2
remote: Installing actionmailer 5.2.4.2
remote: Installing actioncable 5.2.4.2
remote: Fetching activestorage 5.2.4.2
remote: Installing activestorage 5.2.4.2
remote: Fetching railties 5.2.4.2
remote: Installing railties 5.2.4.2
remote: Fetching sprockets-rails 3.2.1
remote: Installing sprockets-rails 3.2.1
remote: Fetching coffee-rails 4.2.2
remote: Fetching responders 3.0.0
remote: Installing coffee-rails 4.2.2
remote: Installing responders 3.0.0
remote: Fetching font-awesome-rails 4.7.0.5
remote: Fetching jquery-rails 4.3.5
remote: Installing font-awesome-rails 4.7.0.5
remote: Installing jquery-rails 4.3.5
remote: Fetching jquery-ui-rails 6.0.1
remote: Installing jquery-ui-rails 6.0.1
remote: Fetching rails 5.2.4.2
remote: Installing rails 5.2.4.2
remote: Fetching rails-ujs 0.1.0
remote: Installing rails-ujs 0.1.0
remote: Fetching sass-rails 5.1.0
remote: Installing sass-rails 5.1.0
remote: Fetching toastr-rails 1.0.3
remote: Installing toastr-rails 1.0.3
remote: Fetching devise 4.7.1
remote: Installing devise 4.7.1
remote: Fetching sassc-rails 2.1.2
remote: Installing sassc-rails 2.1.2
remote: Fetching bootstrap 4.4.1
remote: Installing bootstrap 4.4.1
remote: Bundle complete! 29 Gemfile dependencies, 81 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: Post-install message from sass:
remote:
remote: Ruby Sass has reached end-of-life and should no longer be used.
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: https://sass-lang.com/blog/posts/7828841
remote:
remote: Bundle completed (205.46s)
remote: Cleaning up the bundler cache.
remote: -----> Installing node-v10.15.3-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, [2020-06-02T04:42:57.811792 #1618] INFO -- : Writing /tmp/build_9bbd97d889fb02756ba5cbdef84e8320/public/assets/custom-0f9c6eb8f419d40212aae1b1abd8dd92617ab9a6b297929f414ad07d06d8499c.css
remote: I, [2020-06-02T04:42:57.812515 #1618] INFO -- : Writing /tmp/build_9bbd97d889fb02756ba5cbdef84e8320/public/assets/custom-0f9c6eb8f419d40212aae1b1abd8dd92617ab9a6b297929f414ad07d06d8499c.css.gz
remote: I, [2020-06-02T04:42:57.815816 #1618] INFO -- : Writing /tmp/build_9bbd97d889fb02756ba5cbdef84e8320/public/assets/100x100-bb24ed89d670dafbdedc9b92250df33b1d7e1ed19a752316576b49ddc59692cd.png
remote: I, [2020-06-02T04:42:57.817712 #1618] INFO -- : Writing /tmp/build_9bbd97d889fb02756ba5cbdef84e8320/public/assets/intro-bg-a44085e80be1f8213987eb40045db6f039e02308c0405b5f84874743f1fb2c63.png
remote: I, [2020-06-02T04:42:57.820262 #1618] INFO -- : Writing /tmp/build_9bbd97d889fb02756ba5cbdef84e8320/public/assets/intro-img-46db85e95b37abe91c9d7356ab6d975b967b2f6da4fab28edad0106658c51b24.svg
remote: I, [2020-06-02T04:42:57.821419 #1618] INFO -- : Writing /tmp/build_9bbd97d889fb02756ba5cbdef84e8320/public/assets/intro-img-46db85e95b37abe91c9d7356ab6d975b967b2f6da4fab28edad0106658c51b24.svg.gz
remote: I, [2020-06-02T04:42:57.824955 #1618] INFO -- : Writing /tmp/build_9bbd97d889fb02756ba5cbdef84e8320/public/assets/list-img-e69b310f8037732ce25e835bdeff8185af501e530047c454248935496f3ed5a5.svg
remote: I, [2020-06-02T04:42:57.825201 #1618] INFO -- : Writing /tmp/build_9bbd97d889fb02756ba5cbdef84e8320/public/assets/list-img-e69b310f8037732ce25e835bdeff8185af501e530047c454248935496f3ed5a5.svg.gz
remote: I, [2020-06-02T04:42:57.828445 #1618] INFO -- : Writing /tmp/build_9bbd97d889fb02756ba5cbdef84e8320/public/assets/logo-e09c3450e5b47daf835806cad4de85b81c66eba28411acfc26072238016c4ab3.png
remote: I, [2020-06-02T04:42:57.831251 #1618] INFO -- : Writing /tmp/build_9bbd97d889fb02756ba5cbdef84e8320/public/assets/testimonial-029a9f73596373572da3aa2b3bf601804ae209e0fbc6bb74e81ffcf3a4f374b9.jpg
remote: rake aborted!
remote: Uglifier::Error: Unexpected token: name (newOption). To use ES6 syntax, harmony mode must be enabled with Uglifier.new(:harmony => true).
remote: --
remote: 38072 $.ajax({
remote: 38073 url: '/categories',
remote: 38074 method: 'post',
remote: 38075 data: {
remote: 38076 category: { name: capitalizeFirstLetter($('#new-category').val()) }
remote: 38077 },
remote: 38078 success: function (category) {
remote: 38079 if (category.id != null) {
remote: => let newOption = $('<option/>')
remote: 38081 .attr('value', category.id)
remote: 38082 .attr('selected', true)
remote: 38083 .text(category.name)
remote: 38084
remote: 38085 $('#category_select').append(newOption);
remote: 38086 $('#new-category').val('');
remote: 38087 }
remote: 38088 },
remote: ==
remote: /tmp/build_9bbd97d889fb02756ba5cbdef84e8320/vendor/bundle/ruby/2.6.0/gems/uglifier-4.2.0/lib/uglifier.rb:291:in `parse_result'
remote: /tmp/build_9bbd97d889fb02756ba5cbdef84e8320/vendor/bundle/ruby/2.6.0/gems/uglifier-4.2.0/lib/uglifier.rb:221:in `run_uglifyjs'
remote: /tmp/build_9bbd97d889fb02756ba5cbdef84e8320/vendor/bundle/ruby/2.6.0/gems/uglifier-4.2.0/lib/uglifier.rb:166:in `compile'
remote: /tmp/build_9bbd97d889fb02756ba5cbdef84e8320/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/uglifier_compressor.rb:53:in `call'
remote: /tmp/build_9bbd97d889fb02756ba5cbdef84e8320/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/uglifier_compressor.rb:28:in `call'
remote: /tmp/build_9bbd97d889fb02756ba5cbdef84e8320/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:75:in `call_processor'
remote: /tmp/build_9bbd97d889fb02756ba5cbdef84e8320/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:57:in `block in call_processors'
remote: /tmp/build_9bbd97d889fb02756ba5cbdef84e8320/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:56:in `reverse_each'
remote: /tmp/build_9bbd97d889fb02756ba5cbdef84e8320/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:56:in `call_processors'
remote: /tmp/build_9bbd97d889fb02756ba5cbdef84e8320/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:134:in `load_from_unloaded'
remote: /tmp/build_9bbd97d889fb02756ba5cbdef84e8320/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:60:in `block in load'
remote: /tmp/build_9bbd97d889fb02756ba5cbdef84e8320/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:317:in `fetch_asset_from_dependency_cache'
remote: /tmp/build_9bbd97d889fb02756ba5cbdef84e8320/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:44:in `load'
remote: /tmp/build_9bbd97d889fb02756ba5cbdef84e8320/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/cached_environment.rb:20:in `block in initialize'
remote: /tmp/build_9bbd97d889fb02756ba5cbdef84e8320/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/cached_environment.rb:47:in `load'
remote: /tmp/build_9bbd97d889fb02756ba5cbdef84e8320/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/base.rb:66:in `find_asset'
remote: /tmp/build_9bbd97d889fb02756ba5cbdef84e8320/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/base.rb:73:in `find_all_linked_assets'
remote: /tmp/build_9bbd97d889fb02756ba5cbdef84e8320/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/manifest.rb:142:in `block in find'
remote: /tmp/build_9bbd97d889fb02756ba5cbdef84e8320/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:114:in `block (2 levels) in logical_paths'
remote: /tmp/build_9bbd97d889fb02756ba5cbdef84e8320/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:228:in `block in stat_tree
remote: /tmp/build_9bbd97d889fb02756ba5cbdef84e8320/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:212:in `block in stat_directory'
remote: /tmp/build_9bbd97d889fb02756ba5cbdef84e8320/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:209:in `each'
remote: /tmp/build_9bbd97d889fb02756ba5cbdef84e8320/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:209:in `stat_directory'
remote: /tmp/build_9bbd97d889fb02756ba5cbdef84e8320/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:227:in `stat_tree'
remote: /tmp/build_9bbd97d889fb02756ba5cbdef84e8320/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:105:in `each'
remote: /tmp/build_9bbd97d889fb02756ba5cbdef84e8320/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:105:in `block in logical_paths
remote: /tmp/build_9bbd97d889fb02756ba5cbdef84e8320/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:104:in `each'
remote: /tmp/build_9bbd97d889fb02756ba5cbdef84e8320/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:104:in `logical_paths'
remote: /tmp/build_9bbd97d889fb02756ba5cbdef84e8320/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/manifest.rb:140:in `find'
remote: /tmp/build_9bbd97d889fb02756ba5cbdef84e8320/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/manifest.rb:186:in `compile'
remote: /tmp/build_9bbd97d889fb02756ba5cbdef84e8320/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_9bbd97d889fb02756ba5cbdef84e8320/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/rake/sprocketstask.rb:147:in `with_logger'
remote: /tmp/build_9bbd97d889fb02756ba5cbdef84e8320/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_9bbd97d889fb02756ba5cbdef84e8320/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 giboapp.
remote:
To https://git.heroku.com/giboapp.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/giboapp.git'
giboapp git:master ❯ ⏎
For the record I am using postgresql for my app.
I tried to on adding this code on my config/application.rb file:
config.assets.initialize_on_precompile = false
But still did not work after pushing again.
I also tried compiling my assets via rails precompile:assets but still no effect.
Can anyone help me on this please? I am beginner with heroku.
Your Heroku Log states this:
#...
remote: Uglifier::Error: Unexpected token: name (newOption). To use ES6 syntax, harmony mode must be enabled with Uglifier.new(:harmony => true).
#...
Joel_Blum mentions it already in the comments, try replacing
config.assets.js_compressor = :uglifier
with
config.assets.js_compressor = Uglifier.new(harmony: true)
in config/environments/production.rb
See https://github.com/lautis/uglifier/issues/127#issuecomment-352224986
I am trying to launch my rails app in heroku but i am getting some errors
this this the log
I can successfully launch this app in my windows machine with out any problem the problem arises only with Heroku
D:\Ruby\Assignment2>git push heroku master
Counting objects: 390, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (369/369), done.
Writing objects: 100% (390/390), 136.69 KiB | 748.00 KiB/s, done.
Total 390 (delta 174), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: ! Warning: Multiple default buildpacks reported the ability to handle this app. The first buildpack in the list below will be used.
remote: Detected buildpacks: Ruby,Node.js
remote: See https://devcenter.heroku.com/articles/buildpacks#buildpack-detect-order
remote: -----> Ruby app detected
remote: -----> Compiling Ruby/Rails
remote: -----> Using Ruby version: ruby-2.4.4
remote: ###### WARNING:
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.15.2
remote: Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4
remote: Fetching https://github.com/codahale/bcrypt-ruby.git
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 version metadata from https://rubygems.org/..
remote: Fetching dependency metadata from https://rubygems.org/.
remote: Resolving dependencies...
remote: Fetching rake 12.3.1
remote: Fetching concurrent-ruby 1.0.5
remote: Fetching minitest 5.11.3
remote: Installing minitest 5.11.3
remote: Installing rake 12.3.1
remote: Installing concurrent-ruby 1.0.5
remote: Fetching thread_safe 0.3.6
remote: Installing thread_safe 0.3.6
remote: Fetching builder 3.2.3
remote: Installing builder 3.2.3
remote: Fetching erubi 1.7.1
remote: Installing erubi 1.7.1
remote: Fetching mini_portile2 2.3.0
remote: Fetching crass 1.0.4
remote: Installing mini_portile2 2.3.0
remote: Fetching rack 2.0.5
remote: Installing crass 1.0.4
remote: Fetching nio4r 2.3.1
remote: Installing rack 2.0.5
remote: Installing nio4r 2.3.1 with native extensions
remote: Fetching websocket-extensions 0.1.3
remote: Installing websocket-extensions 0.1.3
remote: Fetching mini_mime 1.0.0
remote: Installing mini_mime 1.0.0
remote: Fetching arel 9.0.0
remote: Installing arel 9.0.0
remote: Fetching mimemagic 0.3.2
remote: Using bcrypt 3.1.11 from https://github.com/codahale/bcrypt-ruby.git (at master#5c2d2d3)
remote: Installing mimemagic 0.3.2
remote: Fetching msgpack 1.2.4
remote: Installing msgpack 1.2.4 with native extensions
remote: Using bundler 1.15.2
remote: Fetching coffee-script-source 1.12.2
remote: Installing coffee-script-source 1.12.2
remote: Fetching execjs 2.7.0
remote: Installing execjs 2.7.0
remote: Fetching method_source 0.9.0
remote: Installing method_source 0.9.0
remote: Fetching thor 0.20.0
remote: Installing thor 0.20.0
remote: Fetching duktape 1.6.1.0
remote: Installing duktape 1.6.1.0 with native extensions
remote: Fetching ffi 1.9.23
remote: Installing ffi 1.9.23 with native extensions
remote: Fetching multi_json 1.13.1
remote: Installing multi_json 1.13.1
remote: Fetching pg 1.0.0
remote: Installing pg 1.0.0 with native extensions
remote: Fetching puma 3.11.4
remote: Installing puma 3.11.4 with native extensions
remote: Fetching rb-fsevent 0.10.3
remote: Installing rb-fsevent 0.10.3
remote: Fetching tilt 2.0.8
remote: Installing tilt 2.0.8
remote: Fetching turbolinks-source 5.1.0
remote: Installing turbolinks-source 5.1.0
remote: Fetching tzinfo 1.2.5
remote: Installing tzinfo 1.2.5
remote: Fetching i18n 1.0.1
remote: Installing i18n 1.0.1
remote: Fetching nokogiri 1.8.2
remote: Installing nokogiri 1.8.2 with native extensions
remote: Fetching websocket-driver 0.7.0
remote: Installing websocket-driver 0.7.0 with native extensions
remote: Fetching mail 2.7.0
remote: Installing mail 2.7.0
remote: Fetching rack-test 1.0.0
remote: Installing rack-test 1.0.0
remote: Fetching sprockets 3.7.1
remote: Installing sprockets 3.7.1
remote: Fetching marcel 0.3.2
remote: Installing marcel 0.3.2
remote: Fetching coffee-script 2.4.1
remote: Installing coffee-script 2.4.1
remote: Fetching uglifier 4.1.10
remote: Installing uglifier 4.1.10
remote: Fetching bootsnap 1.3.0
remote: Installing bootsnap 1.3.0 with native extensions
remote: Fetching rb-inotify 0.9.10
remote: Installing rb-inotify 0.9.10
remote: Fetching turbolinks 5.1.1
remote: Installing turbolinks 5.1.1
remote: Fetching activesupport 5.2.0
remote: Installing activesupport 5.2.0
remote: Fetching loofah 2.2.2
remote: Installing loofah 2.2.2
remote: Fetching sass-listen 4.0.0
remote: Fetching rails-dom-testing 2.0.3
remote: Installing rails-dom-testing 2.0.3
remote: Installing sass-listen 4.0.0
remote: Fetching globalid 0.4.1
remote: Installing globalid 0.4.1
remote: Fetching activemodel 5.2.0
remote: Fetching jbuilder 2.7.0
remote: Installing activemodel 5.2.0
remote: Installing jbuilder 2.7.0
remote: Fetching rails-html-sanitizer 1.0.4
remote: Installing rails-html-sanitizer 1.0.4
remote: Fetching sass 3.5.6
remote: Fetching activejob 5.2.0
remote: Installing activejob 5.2.0
remote: Fetching activerecord 5.2.0
remote: Installing sass 3.5.6
remote: Fetching actionview 5.2.0
remote: Installing activerecord 5.2.0
remote: Installing actionview 5.2.0
remote: Fetching actionpack 5.2.0
remote: Installing actionpack 5.2.0
remote: Fetching actioncable 5.2.0
remote: Fetching actionmailer 5.2.0
remote: Fetching activestorage 5.2.0
remote: Installing actionmailer 5.2.0
remote: Installing activestorage 5.2.0
remote: Installing actioncable 5.2.0
remote: Fetching railties 5.2.0
remote: Fetching sprockets-rails 3.2.1
remote: Installing railties 5.2.0
remote: Installing sprockets-rails 3.2.1
remote: Fetching jquery-rails 4.3.3
remote: Fetching rails 5.2.0
remote: Fetching coffee-rails 4.2.2
remote: Installing rails 5.2.0
remote: Installing coffee-rails 4.2.2
remote: Fetching sass-rails 5.0.7
remote: Installing sass-rails 5.0.7
remote: Installing jquery-rails 4.3.3
remote: Bundle complete! 20 Gemfile dependencies, 64 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 (46.58s)
remote: Cleaning up the bundler cache.
remote: The latest bundler is 1.16.1, but you are currently running 1.15.2.
remote: To update, run `gem install bundler`
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-05-14T09:58:09.678891 #1526] INFO -- : Writing /tmp/build_c6b86f16f166c2e8a833fb45a48cab86/public/assets/bootstrap/bootstrap.min-41d69a549b928e8604da63024bd4c6fdc296140a12d98fc0598ebf25417ec
dc7.js
remote: I, [2018-05-14T09:58:09.679477 #1526] INFO -- : Writing /tmp/build_c6b86f16f166c2e8a833fb45a48cab86/public/assets/bootstrap/bootstrap.min-41d69a549b928e8604da63024bd4c6fdc296140a12d98fc0598ebf25417ec
dc7.js.gz
remote: I, [2018-05-14T09:58:14.425693 #1526] INFO -- : Writing /tmp/build_c6b86f16f166c2e8a833fb45a48cab86/public/assets/bootstrap/popper.min-a825c07c7e993c902b4523b21ac31ee3818600cc5c82538e61f5401fd516b8a0
.js
remote: I, [2018-05-14T09:58:14.425883 #1526] INFO -- : Writing /tmp/build_c6b86f16f166c2e8a833fb45a48cab86/public/assets/bootstrap/popper.min-a825c07c7e993c902b4523b21ac31ee3818600cc5c82538e61f5401fd516b8a0
.js.gz
remote: I, [2018-05-14T09:59:23.617617 #1526] INFO -- : Writing /tmp/build_c6b86f16f166c2e8a833fb45a48cab86/public/assets/bootstrap/mdb.min-628e2e9674c6df4e4bcd41fa2b7b88aa070a227955b83bb6da8fc8118fb4e9e5.js
remote: I, [2018-05-14T09:59:23.617808 #1526] INFO -- : Writing /tmp/build_c6b86f16f166c2e8a833fb45a48cab86/public/assets/bootstrap/mdb.min-628e2e9674c6df4e4bcd41fa2b7b88aa070a227955b83bb6da8fc8118fb4e9e5.js
.gz
remote: rake aborted!
remote: Uglifier::Error: invalid regexp character
remote: /tmp/build_c6b86f16f166c2e8a833fb45a48cab86/vendor/bundle/ruby/2.4.0/gems/uglifier-4.1.10/lib/uglifier.rb:234:in `parse_result'
remote: /tmp/build_c6b86f16f166c2e8a833fb45a48cab86/vendor/bundle/ruby/2.4.0/gems/uglifier-4.1.10/lib/uglifier.rb:216:in `run_uglifyjs'
remote: /tmp/build_c6b86f16f166c2e8a833fb45a48cab86/vendor/bundle/ruby/2.4.0/gems/uglifier-4.1.10/lib/uglifier.rb:168:in `compile'
remote: /tmp/build_c6b86f16f166c2e8a833fb45a48cab86/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.1/lib/sprockets/uglifier_compressor.rb:53:in `call'
remote: /tmp/build_c6b86f16f166c2e8a833fb45a48cab86/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.1/lib/sprockets/uglifier_compressor.rb:28:in `call'
remote: /tmp/build_c6b86f16f166c2e8a833fb45a48cab86/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.1/lib/sprockets/processor_utils.rb:75:in `call_processor'
remote: /tmp/build_c6b86f16f166c2e8a833fb45a48cab86/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.1/lib/sprockets/processor_utils.rb:57:in `block in call_processors'
remote: /tmp/build_c6b86f16f166c2e8a833fb45a48cab86/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.1/lib/sprockets/processor_utils.rb:56:in `reverse_each'
remote: /tmp/build_c6b86f16f166c2e8a833fb45a48cab86/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.1/lib/sprockets/processor_utils.rb:56:in `call_processors'
remote: /tmp/build_c6b86f16f166c2e8a833fb45a48cab86/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.1/lib/sprockets/loader.rb:134:in `load_from_unloaded'
remote: /tmp/build_c6b86f16f166c2e8a833fb45a48cab86/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.1/lib/sprockets/loader.rb:60:in `block in load'
remote: /tmp/build_c6b86f16f166c2e8a833fb45a48cab86/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.1/lib/sprockets/loader.rb:317:in `fetch_asset_from_dependency_cache'
remote: /tmp/build_c6b86f16f166c2e8a833fb45a48cab86/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.1/lib/sprockets/loader.rb:44:in `load'
remote: /tmp/build_c6b86f16f166c2e8a833fb45a48cab86/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.1/lib/sprockets/cached_environment.rb:20:in `block in initialize'
remote: /tmp/build_c6b86f16f166c2e8a833fb45a48cab86/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.1/lib/sprockets/cached_environment.rb:47:in `load'
remote: /tmp/build_c6b86f16f166c2e8a833fb45a48cab86/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.1/lib/sprockets/base.rb:66:in `find_asset'
remote: /tmp/build_c6b86f16f166c2e8a833fb45a48cab86/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.1/lib/sprockets/base.rb:73:in `find_all_linked_assets'
remote: /tmp/build_c6b86f16f166c2e8a833fb45a48cab86/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.1/lib/sprockets/manifest.rb:142:in `block in find'
remote: /tmp/build_c6b86f16f166c2e8a833fb45a48cab86/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.1/lib/sprockets/legacy.rb:114:in `block (2 levels) in logical_paths'
remote: /tmp/build_c6b86f16f166c2e8a833fb45a48cab86/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.1/lib/sprockets/path_utils.rb:228:in `block in stat_tree'
remote: /tmp/build_c6b86f16f166c2e8a833fb45a48cab86/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.1/lib/sprockets/path_utils.rb:212:in `block in stat_directory'
remote: /tmp/build_c6b86f16f166c2e8a833fb45a48cab86/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.1/lib/sprockets/path_utils.rb:209:in `each'
remote: /tmp/build_c6b86f16f166c2e8a833fb45a48cab86/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.1/lib/sprockets/path_utils.rb:209:in `stat_directory'
remote: /tmp/build_c6b86f16f166c2e8a833fb45a48cab86/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.1/lib/sprockets/path_utils.rb:227:in `stat_tree'
remote: /tmp/build_c6b86f16f166c2e8a833fb45a48cab86/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.1/lib/sprockets/legacy.rb:105:in `each'
remote: /tmp/build_c6b86f16f166c2e8a833fb45a48cab86/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.1/lib/sprockets/legacy.rb:105:in `block in logical_paths'
remote: /tmp/build_c6b86f16f166c2e8a833fb45a48cab86/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.1/lib/sprockets/legacy.rb:104:in `each'
remote: /tmp/build_c6b86f16f166c2e8a833fb45a48cab86/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.1/lib/sprockets/legacy.rb:104:in `logical_paths'
remote: /tmp/build_c6b86f16f166c2e8a833fb45a48cab86/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.1/lib/sprockets/manifest.rb:140:in `find'
remote: /tmp/build_c6b86f16f166c2e8a833fb45a48cab86/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.1/lib/sprockets/manifest.rb:185:in `compile'
remote: /tmp/build_c6b86f16f166c2e8a833fb45a48cab86/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_c6b86f16f166c2e8a833fb45a48cab86/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.1/lib/rake/sprocketstask.rb:147:in `with_logger'
remote: /tmp/build_c6b86f16f166c2e8a833fb45a48cab86/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_c6b86f16f166c2e8a833fb45a48cab86/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: ! Precompiling assets failed.
remote: !
remote: ! Push rejected, failed to compile Ruby app.
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to fathomless-falls-15474.
remote:
To https://git.heroku.com/fathomless-falls-15474.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/fathomless-falls-15474.git'
When i run rake assets:precompile in my machine i am getting no errors but when i try to push it and run it to heroku it throws me some errors how to resolve it
This is my repo https://nijeeshjoshy#bitbucket.org/nijeeshjoshy/assignment2.git
Apparently what happens to you is that you have a js file with a spelling error, when uglifier tries to compress the files it breaks, look at this answer I think it would serve you
Rails 3.1 Possible Bug in Asset Pipeline and Uglifier
I have an app which runs on local machine.
Rails 4.2.0
Ruby 2.2.3
I am getting the following error on pushing to heroku. The app runs on local machine.
rake aborts with the error NameError: uninitialized constant Sprockets::Rails::VERSION
Counting objects: 1965, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (608/608), done.
Writing objects: 100% (1965/1965), 229.38 KiB | 0 bytes/s, done.
Total 1965 (delta 1275), reused 1958 (delta 1272)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Ruby app detected
remote: -----> Compiling Ruby/Rails
remote: -----> Using Ruby version: ruby-2.2.3
remote: ###### WARNING:
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.11.2
remote: Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4
remote: Fetching git://github.com/derekprior/momentjs-rails.git
remote: Fetching git://github.com/zpaulovics/datetimepicker-rails.git
remote: Cloning into 'bootstrap-datetimepicker'...
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: Resolving dependencies..........................................
remote: Installing json 1.8.3 with native extensions
remote: Installing rake 11.1.2
remote: Installing i18n 0.7.0
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 mini_portile2 2.0.0
remote: Installing rack 1.6.4
remote: Installing mime-types 2.99.1
remote: Installing arel 6.0.3
remote: Installing execjs 2.6.0
remote: Installing bcrypt 3.1.11 with native extensions
remote: Installing bootstrap_form 2.3.0
remote: Installing sass 3.4.22
remote: Using bundler 1.11.2
remote: Installing thor 0.19.1
remote: Installing hike 1.2.3
remote: Installing multi_json 1.11.3
remote: Installing tilt 1.4.1
remote: Installing coffee-script-source 1.10.0
remote: Installing daemons 1.2.3
remote: Installing orm_adapter 0.5.0
remote: Installing eventmachine 1.0.9.1 with native extensions
remote: Installing unf_ext 0.0.7.2 with native extensions
remote: Installing fabrication 2.15.0
remote: Installing google_visualr 2.5.1
remote: Installing sexp_processor 4.7.0
remote: Installing hashie 3.4.3
remote: Installing json_pure 1.8.3
remote: Installing libv8 3.16.14.13
remote: Installing nested_form 0.3.2
remote: Installing netrc 0.11.0
remote: Installing pg 0.18.4 with native extensions
remote: Installing phony 2.15.21
remote: Installing rails_serve_static_assets 0.0.5
remote: Installing rails_stdout_logging 0.0.5
remote: Installing remotipart 1.2.1
remote: Installing safe_yaml 1.0.4
remote: Installing ref 2.0.0
remote: Installing faker 1.6.3
remote: Installing validates_email_format_of 1.6.3
remote: Installing tzinfo 1.2.2
remote: Installing nokogiri 1.6.7.2 with native extensions
remote: Installing rack-test 0.6.3
remote: Installing rack-protection 1.5.3
remote: Installing warden 1.2.6
remote: Installing mail 2.6.4
remote: Installing rdoc 4.2.2
remote: Installing autoprefixer-rails 6.3.6
remote: Installing uglifier 3.0.0
remote: Installing figaro 1.1.1
remote: Installing sprockets 2.12.4
remote: Installing haml 4.0.7
remote: Installing coffee-script 2.4.1
remote: Installing ruby_parser 3.8.1
remote: Installing unf 0.1.4
remote: Installing tropo-webapi-ruby 0.1.13
remote: Installing therubyracer 0.12.2 with native extensions
remote: Installing rails_12factor 0.0.3
remote: Installing activesupport 4.2.0
remote: Installing sinatra 1.4.7
remote: Installing sdoc 0.4.1
remote: Installing bootstrap-sass 3.3.6
remote: Installing domain_name 0.5.20160310
remote: Installing rails-deprecated_sanitizer 1.0.3
remote: Installing globalid 0.3.6
remote: Installing activemodel 4.2.0
remote: Installing clockwork 2.0.0
remote: Installing delayed_job 4.1.1
remote: Installing jbuilder 1.5.3
remote: Installing phony_rails 0.14.0
remote: Installing http-cookie 1.0.2
remote: Installing rails-dom-testing 1.0.7
remote: Installing loofah 2.0.3
remote: Installing html2haml 2.0.0
remote: Installing rack-pjax 0.8.0
remote: Installing activejob 4.2.0
remote: Installing activerecord 4.2.0
remote: Installing rest-client 1.8.0
remote: Installing rails-html-sanitizer 1.0.3
remote: Installing delayed_job_active_record 4.1.0
remote: Installing delayed_job_web 1.2.10
remote: Installing has_secure_token 1.0.0
remote: Installing actionview 4.2.0
remote: Installing actionpack 4.2.0
remote: Installing railties 4.2.0
remote: Installing actionmailer 4.2.0
remote: Installing sprockets-rails 2.0.1
remote: Installing kaminari 0.16.3
remote: Installing simple_form 3.1.1
remote: Installing jquery-rails 4.1.1
remote: Using momentjs-rails 2.11.1 from git://github.com/derekprior/momentjs-rails.git (at master#41e30d4)
remote: Installing coffee-rails 4.0.1
remote: Installing responders 2.1.2
remote: Installing font-awesome-rails 4.6.1.0
remote: Installing jquery-ui-rails 5.0.5
remote: Installing haml-rails 0.9.0
remote: Installing rails 4.2.0
remote: Installing turbolinks 2.5.3
remote: Using datetimepicker-rails 4.7.16 from git://github.com/zpaulovics/datetimepicker-rails.git (at master#36d21ce)
remote: Installing sass-rails 4.0.1
remote: Installing devise 4.0.1
remote: Installing browser-timezone-rails 0.0.8
remote: Installing fullcalendar-rails 2.6.1.0
remote: Installing dateslices 0.0.4
remote: Installing jquery-turbolinks 2.1.0
remote: Installing jquery-datatables-rails 3.3.0
remote: Installing rails_admin 0.8.1
remote: Bundle complete! 52 Gemfile dependencies, 109 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: Post-install message from haml:
remote: HEADS UP! Haml 4.0 has many improvements, but also has changes that may break
remote: your application:
remote: * Support for Ruby 1.8.6 dropped
remote: * Support for Rails 2 dropped
remote: * Sass filter now always outputs <style> tags
remote: * Data attributes are now hyphenated, not underscored
remote: * html2haml utility moved to the html2haml gem
remote: * Textile and Maruku filters moved to the haml-contrib gem
remote: For more info see:
remote: http://rubydoc.info/github/haml/haml/file/CHANGELOG.md
remote: Post-install message from phony_rails:
remote: It now adds a '+' to the normalized number when it starts with a country number!
remote: Bundle completed (61.53s)
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 Sprockets::Rails::VERSION
remote: /tmp/build_ff86312346869b165736d37b1725f32c/vendor/bundle/ruby/2.2.0/gems/bootstrap-sass-3.3.6/lib/bootstrap-sass/engine.rb:11:in `block in <class:Engine>'
remote: /tmp/build_ff86312346869b165736d37b1725f32c/vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/initializable.rb:30:in `instance_exec'
remote: /tmp/build_ff86312346869b165736d37b1725f32c/vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/initializable.rb:30:in `run'
remote: /tmp/build_ff86312346869b165736d37b1725f32c/vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/initializable.rb:55:in `block in run_initializers'
remote: /tmp/build_ff86312346869b165736d37b1725f32c/vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/initializable.rb:54:in `run_initializers'
remote: /tmp/build_ff86312346869b165736d37b1725f32c/vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/application.rb:352:in `initialize!'
remote: /tmp/build_ff86312346869b165736d37b1725f32c/vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/railtie.rb:194:in `public_send'
remote: /tmp/build_ff86312346869b165736d37b1725f32c/vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/railtie.rb:194:in `method_missing'
remote: /tmp/build_ff86312346869b165736d37b1725f32c/config/environment.rb:5:in `<top (required)>'
remote: /tmp/build_ff86312346869b165736d37b1725f32c/vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/application.rb:328:in `require_environment!'
remote: /tmp/build_ff86312346869b165736d37b1725f32c/vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/application.rb:443:in `block in run_tasks_blocks'
remote: /tmp/build_ff86312346869b165736d37b1725f32c/vendor/bundle/ruby/2.2.0/gems/sprockets-rails-2.0.1/lib/sprockets/rails/task.rb:54: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 fathom-reef-94288.
remote:
To https://git.heroku.com/fathomless-reef-94288.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/fathom-reef-94288.git'
I get the following error on performing rake assets:precompile on my local machine. This is the same error I get on heroku push.
rake assets:precompile
[DEPRECATION] `last_comment` is deprecated. Please use `last_description` instead.
[DEPRECATION] `last_comment` is deprecated. Please use `last_description` instead.
[DEPRECATION] `last_comment` is deprecated. Please use `last_description` instead.
[DEPRECATION] `last_comment` is deprecated. Please use `last_description` instead.
[DEPRECATION] `last_comment` is deprecated. Please use `last_description` instead.
rake aborted!
NameError: uninitialized constant Sprockets::Rails::VERSION
/Users/azs/ror/maintr/config/environment.rb:5:in `<top (required)>'
Tasks: TOP => environment
(See full trace by running task with --trace)
It looks like you have an old version of sprockets-rails gem being installed. With Rails 4.2 you should be getting version 3 or later. But, in your case the bundler is installing version 2.0.1. Some version of the gem had this exact problem.
I guess the easiest way would be to generate a Gemfile.lock file on linux machine and force Heroku to use new version of the sprockets-rails gem.
First, I was getting a "precompile" error and I have solved it running this code RAILS_ENV=production bundle exec rake assets:precompile
Second I needed to add a code for the database run in production mode that was:
production:
adapter: postgresql
encoding: unicode
host: localhost
port: 5432
database: catarse_production
pool: 5
username: postgres
password: password
And everything apparently went smooth after do "git push heroku master" as you can see:
git push heroku master
Counting objects: 88230, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (25243/25243), done.
Writing objects: 100% (88230/88230), 52.07 MiB | 111.00 KiB/s, done.
Total 88230 (delta 61270), reused 88177 (delta 61251)
remote: Git submodules detected, installing:
remote:
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Ruby app detected
remote: -----> Compiling Ruby/Rails
remote: -----> Using Ruby version: ruby-2.1.2
remote: -----> Installing dependencies using 1.9.7
remote: Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
remote: Fetching gem metadata from rubygems.org/..........
remote: Fetching version metadata from rubygems.org/...
remote: Fetching dependency metadata from rubygems.org/..
remote: Fetching git://github.com/bernat/best_in_place
remote: Fetching git://github.com/catarse/catarse_api.git
remote: Fetching git://github.com/catarse/moip-ruby.git
remote: Fetching git://github.com/catarse/redactor-rails.git
remote: Installing CFPropertyList 2.3.1
remote: Installing i18n 0.7.0
remote: Installing rake 10.4.2
remote: Installing minitest 5.7.0
remote: Installing thread_safe 0.3.5
remote: Installing erubis 2.7.0
remote: Installing rack 1.5.3
remote: Installing mime-types 2.6.1
remote: Installing builder 3.2.2
remote: Installing arel 5.0.1.20140414130214
remote: Installing json 1.8.2
remote: Installing addressable 2.3.8
remote: Installing extlib 0.9.16
remote: Installing multi_json 1.11.0
remote: Installing redcarpet 3.2.3
remote: Installing browser 0.8.0
remote: Using bundler 1.9.7
remote: Installing thor 0.19.1
remote: Installing hike 1.2.3
remote: Installing rinku 1.5.1
remote: Installing crack 0.1.8
remote: Installing tilt 1.4.1
remote: Installing excon 0.45.3
remote: Installing bcrypt 3.1.10
remote: Installing netrc 0.10.3
remote: Installing libxml-ruby 2.8.0
remote: Installing chartkick 1.3.2
remote: Installing chunky_png 1.3.4
remote: Installing cocoon 1.2.6
remote: Installing coffee-script-source 1.9.1.1
remote: Installing execjs 2.5.2
remote: Installing unf_ext 0.0.7.1
remote: Installing rb-fsevent 0.9.5
remote: Installing sass 3.4.14
remote: Installing connection_pool 2.2.0
remote: Installing hitimes 1.2.2
remote: Installing multipart-post 2.0.0
remote: Installing jwt 1.5.0
remote: Installing little-plugger 1.1.3
remote: Installing memoist 0.12.0
remote: Installing retriable 1.4.1
remote: Installing mini_portile 0.6.2
remote: Installing oauth 0.4.7
remote: Installing multi_xml 0.5.5
remote: Installing temple 0.7.5
remote: Installing orm_adapter 0.5.0
remote: Installing request_store 1.1.0
remote: Installing ezcrypto 0.7.2
remote: Installing sax-machine 1.3.2
remote: Installing formatador 0.2.5
remote: Installing net-ssh 2.9.2
remote: Installing ipaddress 0.8.0
remote: Installing inflecto 0.0.2
remote: Installing hashie 3.4.1
remote: Installing high_voltage 2.3.0
remote: Installing htmlentities 4.3.3
remote: Installing http_accept_language 2.0.5
remote: Installing httpclient 2.6.0.1
remote: Installing curb 0.8.8
remote: Installing mini_magick 4.2.7
remote: Installing mixpanel-ruby 2.1.0
remote: Installing newrelic_rpm 3.12.0.288
remote: Installing ffi 1.9.8
remote: Installing rails_serve_static_assets 0.0.4
remote: Installing rails_stdout_logging 0.0.3
remote: Installing kgio 2.9.3
remote: Installing redis 3.2.1
remote: Installing ruby-ole 1.2.11.8
remote: Installing valuable 0.9.9
remote: Installing state_machine 1.2.0
remote: Installing weekdays 1.0.2
remote: Installing fission 0.5.0
remote: Installing tzinfo 1.2.2
remote: Installing rack-test 0.6.3
remote: Installing warden 1.2.3
remote: Installing heroku-deflater 0.5.3
remote: Installing mail 2.6.3
remote: Installing launchy 2.4.3
remote: Installing autoparse 0.3.3
remote: Installing auto_html 1.6.4
remote: Installing httparty 0.6.1
remote: Installing sprockets 2.12.3
remote: Installing mailchimp-api 2.0.6
remote: Installing coffee-script 2.4.1
remote: Installing uglifier 2.7.1
remote: Installing unf 0.1.4
remote: Installing compass-core 1.0.3
remote: Installing compass-import-once 1.0.5
remote: Installing timers 4.0.1
remote: Installing faraday 0.9.1
remote: Installing logging 2.0.0
remote: Installing pg 0.17.1
remote: Installing slim 3.0.3
remote: Installing net-scp 1.2.1
remote: Installing omniauth 1.2.2
remote: Installing video_info 2.4.2
remote: Installing raindrops 0.13.0
remote: Installing rb-inotify 0.9.5
remote: Installing rails_12factor 0.0.3
remote: Installing ethon 0.7.3
remote: Installing redis-namespace 1.5.2
remote: Installing activesupport 4.1.10
remote: Installing domain_name 0.5.24
remote: Installing spreadsheet 1.0.3
remote: Installing celluloid 0.16.0
remote: Installing oauth2 1.0.0
remote: Installing signet 0.6.0
remote: Installing omniauth-oauth 1.1.0
remote: Installing fog-core 1.30.0
remote: Installing compass 1.0.3
remote: Installing typhoeus 0.7.1
remote: Installing actionview 4.1.10
remote: Installing activemodel 4.1.10
remote: Installing enumerate_it 1.2.8
remote: Installing i18n_alchemy 0.2.1
remote: Installing pundit 1.0.1
remote: Installing http-cookie 1.0.2
remote: Installing to_xls 1.5.3
remote: Installing sidekiq 3.1.4
remote: Installing omniauth-oauth2 1.3.0
remote: Installing googleauth 0.4.1
remote: Installing omniauth-twitter 1.2.0
remote: Installing fog-json 1.0.1
remote: Installing fog-local 0.2.1
remote: Installing fog-vmfusion 0.1.0
remote: Installing compass-960-plugin 0.10.4
remote: Installing mixpanel_client 4.1.2
remote: Installing actionpack 4.1.10
remote: Installing active_model_serializers 0.8.0
remote: Installing activerecord 4.1.10
remote: Installing carrierwave 0.10.0
remote: Installing rails-observers 0.1.2
remote: Installing protected_attributes 1.0.9
remote: Installing spectator-validates_email 0.2.0
remote: Installing rest-client 1.8.0
remote: Installing omniauth-facebook 2.0.1
remote: Installing google-api-client 0.8.6
remote: Installing fog-brightbox 0.7.1
remote: Installing fog-sakuracloud 1.0.1
remote: Installing fog-serverlove 0.1.2
remote: Installing fog-softlayer 0.4.6
remote: Installing fog-storm_on_demand 0.1.1
remote: Installing actionmailer 4.1.10
remote: Installing nokogiri 1.6.6.2
remote: Installing has_scope 0.6.0
remote: Installing kaminari 0.16.3
remote: Installing railties 4.1.10
remote: Installing sprockets-rails 2.3.1
remote: Installing draper 2.1.0
remote: Installing routing-filter 0.4.0.1
remote: Installing simple_form 3.1.0
remote: Installing pg_search 1.0.3
remote: Installing ranked-model 0.4.0
remote: Installing schema_plus 1.8.9
remote: Installing pagarme 1.9.9
remote: Installing mail_form 1.5.1
remote: Using best_in_place 3.0.0.alpha from git://github.com/bernat/best_in_place (at ee95961)
remote: Installing unicorn 4.9.0
remote: Installing google_drive 1.0.1
remote: Using moip 1.0.2 from git://github.com/catarse/moip-ruby.git (at c0225ad)
remote: Installing fog-xml 0.1.2
remote: Installing loofah 2.0.2
remote: Installing coffee-rails 4.1.0
remote: Installing responders 1.1.2
remote: Installing slim-rails 3.0.1
remote: Installing jquery-rails 3.1.2
remote: Installing sass-rails 5.0.1
remote: Installing fog-atmos 0.1.0
remote: Installing rails 4.1.10
remote: Installing fog-ecloud 0.1.1
remote: Installing fog-powerdns 0.1.1
remote: Installing fog-google 0.0.5
remote: Installing fog-aws 0.4.0
remote: Installing fog-profitbricks 0.0.2
remote: Installing fog-radosgw 0.0.4
remote: Installing fog-riakcs 0.1.0
remote: Installing fog-terremark 0.1.0
remote: Installing fog-voxel 0.1.0
remote: Installing inherited_resources 1.6.0
remote: Installing feedjira 1.6.0
remote: Using catarse_api 0.0.1 from git://github.com/catarse/catarse_api.git (at master)
remote: Installing devise 3.5.1
remote: Installing compass-rails 2.0.4
remote: Installing catarse_monkeymail 0.1.6
remote: Installing catarse_moip 3.2.0
remote: Installing catarse_settings_db 0.1.1
remote: Installing postgres-copy 0.9.2
remote: Installing dbhero 1.1.6
remote: Installing user_notifier 0.0.5
remote: Using redactor-rails 0.5.0 from git://github.com/catarse/redactor-rails.git (at master)
remote: Installing catarse_pagarme 2.6.8
remote: Installing fog 1.30.0
remote: Bundle complete! 85 Gemfile dependencies, 192 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 httparty:
remote: When you HTTParty, you must party hard!
remote: Post-install message from compass:
remote: Compass is charityware. If you love it, please donate on our behalf at umdf.org/compass Thanks!
remote: Bundle completed (365.51s)
remote: Cleaning up the bundler cache.
remote: Detected manifest file, assuming assets were compiled locally
remote:
remote: -----> Discovering process types
remote: Procfile declares types -> web, worker
remote: Default types for Ruby -> console, rake
remote:
remote: -----> Compressing... done, 58.7MB
remote: -----> Launching... done, v5
remote: shrouded-stream-3654.herokuapp.com/ deployed to Heroku
remote:
remote: Verifying deploy..... done.
To git.heroku.com/shrouded-stream-3654.git
* [new branch] master -> master
However, now the app at Heroku is just a blank page and I do not know what I can do to solve it. You can check the app in this link: https://shrouded-stream-3654.herokuapp.com/
Thank you for your help!
Your error logs yield:
Missing `secret_token` and `secret_key_base` for 'production' environment, set these values in `config/secrets.yml` (RuntimeError)
You can resolve this issue by adding config/secrets.yml to version control, and then deploying again (explained in detail here: How to solve error "Missing `secret_key_base` for 'production' environment" (Rails 4.1))
I've bben trying to deploy a Ruby application to Heroku. The application works fine locally but I keep getting this error when I try and deploy.
Being very new to Ruby I'm not sure where I'm going wrong.
I've removed the the bootstrap-theme.css.map to see if that would make a difference.
I've been trying all week to get this working and keep getting to this point and get no further.
ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-darwin14]
Rails 4.2.0
Any ideas
Thanks
Total 1679 (delta 1010), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Removing .DS_Store files
remote: -----> Ruby app detected
remote: -----> Compiling Ruby/Rails
remote: -----> Using Ruby version: ruby-2.2.0
remote: -----> Installing dependencies using 1.7.12
remote: Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
remote: Fetching gem metadata from https://rubygems.org/...........
remote: Using rake 10.4.2
remote: Installing minitest 5.5.1
remote: Installing i18n 0.7.0
remote: Installing builder 3.2.2
remote: Installing thread_safe 0.3.5
remote: Installing mini_portile 0.6.2
remote: Installing erubis 2.7.0
remote: Installing rack 1.6.0
remote: Installing mime-types 2.4.3
remote: Installing arel 6.0.0
remote: Installing ice_nine 0.11.1
remote: Installing json 1.8.2
remote: Installing bootstrap_form 2.3.0
remote: Installing coffee-script-source 1.9.1
remote: Installing execjs 2.4.0
remote: Installing thor 0.19.1
remote: Installing equalizer 0.0.9
remote: Installing hashie 3.4.0
remote: Installing multi_json 1.11.0
remote: Installing multi_xml 0.5.5
remote: Installing hike 1.2.3
remote: Using bundler 1.7.12
remote: Installing bcrypt 3.1.10
remote: Using rdoc 4.2.0
remote: Installing tilt 1.4.1
remote: Installing sass 3.2.19
remote: Installing will_paginate 3.0.7
remote: Installing tzinfo 1.2.2
remote: Installing descendants_tracker 0.0.4
remote: Installing rack-test 0.6.3
remote: Installing rack-accept 0.4.5
remote: Installing rack-mount 0.8.3
remote: Installing mail 2.6.3
remote: Installing coffee-script 2.3.0
remote: Installing uglifier 2.7.1
remote: Installing sdoc 0.4.1
remote: Installing sprockets 2.12.3
remote: Installing activesupport 4.2.0
remote: Installing axiom-types 0.1.1
remote: Installing coercible 1.0.0
remote: Installing rails-deprecated_sanitizer 1.0.3
remote: Installing globalid 0.3.3
remote: Installing activemodel 4.2.0
remote: Installing climate_control 0.0.3
remote: Installing jbuilder 1.5.3
remote: Installing virtus 1.0.4
remote: Installing activejob 4.2.0
remote: Installing activerecord 4.2.0
remote: Installing protected_attributes 1.0.8
remote: Installing cocaine 0.5.7
remote: Installing grape 0.11.0
remote: Installing paperclip 4.2.1
remote: Installing nokogiri 1.6.6.2
remote: Installing loofah 2.0.1
remote: Installing rails-dom-testing 1.0.5
remote: Installing rails-html-sanitizer 1.0.2
remote: Installing actionview 4.2.0
remote: Installing actionpack 4.2.0
remote: Installing actionmailer 4.2.0
remote: Installing railties 4.2.0
remote: Installing pg 0.18.1
remote: Installing sprockets-rails 2.2.4
remote: Installing coffee-rails 4.0.1
remote: Installing jquery-rails 4.0.3
remote: Installing responders 2.1.0
remote: Installing jquery-ui-rails 5.0.3
remote: Installing sass-rails 4.0.5
remote: Installing turbolinks 2.5.3
remote: Installing rails 4.2.0
remote: Your bundle is complete!
remote: Gems in the groups development and test were not installed.
remote: It was installed into ./vendor/bundle
remote: Bundle completed (29.23s)
remote: Cleaning up the bundler cache.
remote: -----> Preparing app for Rails asset pipeline
remote: Running: rake assets:precompile
remote: DEPRECATION WARNING: The configuration option `config.serve_static_assets` has been renamed to `config.serve_static_files` to clarify its role (it merely enables serving everything in the `public` folder and is unrelated to the asset pipeline). The `serve_static_assets` alias will be removed in Rails 5.0. Please migrate your configuration files accordingly. (called from block in <top (required)> at /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/config/environments/production.rb:23)
remote: rake aborted!
remote: Sass::SyntaxError: Invalid CSS after "...":3,"sources":[": expected "|", was ""less/normalize..."
remote: (in /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/app/assets/bootstrap-3.1.1-dist/css/bootstrap.css.map)
remote: (sass):1
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sass-3.2.19/lib/sass/scss/parser.rb:1147:in `expected'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sass-3.2.19/lib/sass/scss/parser.rb:1085:in `expected'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sass-3.2.19/lib/sass/scss/parser.rb:1080:in `tok!'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sass-3.2.19/lib/sass/scss/parser.rb:785:in `attrib_name!'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sass-3.2.19/lib/sass/scss/parser.rb:753:in `attrib'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sass-3.2.19/lib/sass/scss/parser.rb:672:in `simple_selector_sequence'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sass-3.2.19/lib/sass/scss/parser.rb:646:in `_selector'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sass-3.2.19/lib/sass/scss/parser.rb:619:in `selector'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sass-3.2.19/lib/sass/scss/parser.rb:603:in `selector_sequence'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sass-3.2.19/lib/sass/scss/parser.rb:528:in `ruleset'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sass-3.2.19/lib/sass/scss/parser.rb:591:in `block in declaration_or_ruleset'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sass-3.2.19/lib/sass/scss/parser.rb:1123:in `call'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sass-3.2.19/lib/sass/scss/parser.rb:1123:in `rethrow'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sass-3.2.19/lib/sass/scss/parser.rb:592:in `declaration_or_ruleset'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sass-3.2.19/lib/sass/scss/parser.rb:554:in `block_child'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sass-3.2.19/lib/sass/scss/parser.rb:543:in `block_contents'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sass-3.2.19/lib/sass/scss/parser.rb:535:in `block'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sass-3.2.19/lib/sass/scss/parser.rb:529:in `ruleset'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sass-3.2.19/lib/sass/scss/parser.rb:553:in `block_child'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sass-3.2.19/lib/sass/scss/parser.rb:543:in `block_contents'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sass-3.2.19/lib/sass/scss/parser.rb:82:in `stylesheet'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sass-3.2.19/lib/sass/scss/parser.rb:27:in `parse'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sass-3.2.19/lib/sass/engine.rb:342:in `_to_tree'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sass-3.2.19/lib/sass/engine.rb:315:in `_render'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sass-3.2.19/lib/sass/engine.rb:262:in `render'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sprockets-2.12.3/lib/sprockets/sass_compressor.rb:24:in `evaluate'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/tilt-1.4.1/lib/tilt/template.rb:103:in `render'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sprockets-2.12.3/lib/sprockets/context.rb:197:in `block in evaluate'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sprockets-2.12.3/lib/sprockets/context.rb:194:in `each'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sprockets-2.12.3/lib/sprockets/context.rb:194:in `evaluate'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sprockets-2.12.3/lib/sprockets/bundled_asset.rb:25:in `initialize'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sprockets-2.12.3/lib/sprockets/base.rb:377:in `new'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sprockets-2.12.3/lib/sprockets/base.rb:377:in `build_asset'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sprockets-2.12.3/lib/sprockets/index.rb:94:in `block in build_asset'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sprockets-2.12.3/lib/sprockets/caching.rb:58:in `cache_asset'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sprockets-2.12.3/lib/sprockets/index.rb:93:in `build_asset'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sprockets-2.12.3/lib/sprockets/base.rb:287:in `find_asset'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sprockets-2.12.3/lib/sprockets/index.rb:61:in `find_asset'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sprockets-2.12.3/lib/sprockets/manifest.rb:211:in `block in find_asset'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sprockets-2.12.3/lib/sprockets/manifest.rb:257:in `benchmark'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sprockets-2.12.3/lib/sprockets/manifest.rb:210:in `find_asset'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sprockets-2.12.3/lib/sprockets/manifest.rb:119:in `block in compile'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sprockets-2.12.3/lib/sprockets/manifest.rb:118:in `each'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sprockets-2.12.3/lib/sprockets/manifest.rb:118:in `compile'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sprockets-rails-2.2.4/lib/sprockets/rails/task.rb:70:in `block (3 levels) in define'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sprockets-2.12.3/lib/rake/sprocketstask.rb:146:in `with_logger'
remote: /tmp/build_4096e4ec1586ed9cc408dfe450ef9328/vendor/bundle/ruby/2.2.0/gems/sprockets-rails-2.2.4/lib/sprockets/rails/task.rb:69:in `block (2 levels) in define'
remote: Tasks: TOP => assets:precompile
remote: (See full trace by running task with --trace)
remote: !
remote: ! Precompiling assets failed.
remote: !
remote:
remote: ! Push rejected, failed to compile Ruby app
remote:
remote: Verifying deploy...
remote:
remote: ! Push rejected to young-sands-7749.
remote:
To https://git.heroku.com/young-sands-7749.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/young-sands-7749.git'
I faced the similar problem, I run bundle update and it helped:
Installing spring 1.3.5 (was 1.3.4)
I eventually got the application code to deploy to Heroku.
I had to make sure that the Ruby and Rails version matched those supported by Heroku. I then followed this guide:
https://devcenter.heroku.com/articles/getting-started-with-rails4
An issue I still have is around the database data deployment. The development database was SQLite3 which is not supported by Heroku so I have to migrate the data to a local instance of PostgreSQL. This is proving to be a challenge and have posted another question to try and resolve this issue.
Thanks for the comments. Sontya's was useful to a R on R noobe.