I have a "small issue".
Trying to learn Ruby On Rails, and now i want to deploy my project on heroku.
-----> Ruby app detected
-----> Compiling Ruby/Rails
-----> Using Ruby version: ruby-2.5.3
-----> Installing dependencies using bundler 1.15.2
Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
Warning: the running version of Bundler (1.15.2) is older than the version that created the lockfile (1.16.6). 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.2
Fetching concurrent-ruby 1.1.5
Fetching json 1.8.6
Installing rake 12.3.2
Installing json 1.8.6 with native extensions
Installing concurrent-ruby 1.1.5
Fetching minitest 5.11.3
Installing minitest 5.11.3
Fetching thread_safe 0.3.6
Installing thread_safe 0.3.6
Fetching builder 3.2.3
Installing builder 3.2.3
Fetching erubis 2.7.0
Installing erubis 2.7.0
Fetching mini_portile2 2.4.0
Installing mini_portile2 2.4.0
Fetching crass 1.0.4
Installing crass 1.0.4
Fetching rack 1.6.11
Installing rack 1.6.11
Fetching mini_mime 1.0.1
Installing mini_mime 1.0.1
Fetching arel 6.0.4
Using bundler 1.15.2
Fetching coffee-script-source 1.12.2
Installing arel 6.0.4
Installing coffee-script-source 1.12.2
Fetching execjs 2.7.0
Installing execjs 2.7.0
Fetching thor 0.20.3
Installing thor 0.20.3
Fetching ffi 1.10.0
Fetching multi_json 1.13.1
Installing multi_json 1.13.1
Installing ffi 1.10.0 with native extensions
Fetching pg 0.17.1
Installing pg 0.17.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 rb-fsevent 0.10.3
Installing rb-fsevent 0.10.3
Fetching rdoc 4.3.0
Installing rdoc 4.3.0
Fetching tilt 1.4.1
Installing tilt 1.4.1
Fetching i18n 0.9.5
Installing i18n 0.9.5
Fetching tzinfo 1.2.5
Installing tzinfo 1.2.5
Fetching nokogiri 1.9.1
Installing nokogiri 1.9.1 with native extensions
Fetching rack-test 0.6.3
Installing rack-test 0.6.3
Fetching sprockets 3.7.2
Installing sprockets 3.7.2
Fetching mail 2.7.1
Installing mail 2.7.1
Fetching coffee-script 2.4.1
Installing coffee-script 2.4.1
Fetching rails_12factor 0.0.2
Installing rails_12factor 0.0.2
Fetching rb-inotify 0.9.10
Installing rb-inotify 0.9.10
Fetching activesupport 4.2.0
Installing activesupport 4.2.0
Fetching sdoc 0.4.0
Installing sdoc 0.4.0
Fetching uglifier 2.5.3
Installing uglifier 2.5.3
Fetching sass-listen 4.0.0
Installing sass-listen 4.0.0
Fetching rails-deprecated_sanitizer 1.0.3
Fetching globalid 0.4.2
Installing globalid 0.4.2
Installing rails-deprecated_sanitizer 1.0.3
Fetching activemodel 4.2.0
Fetching jbuilder 2.2.3
Installing activemodel 4.2.0
Installing jbuilder 2.2.3
Fetching sass 3.7.3
Fetching activejob 4.2.0
Installing activejob 4.2.0
Installing sass 3.7.3
Fetching activerecord 4.2.0
Installing activerecord 4.2.0
Fetching rails-dom-testing 1.0.9
Fetching loofah 2.2.3
Installing rails-dom-testing 1.0.9
Installing loofah 2.2.3
Fetching rails-html-sanitizer 1.0.4
Installing rails-html-sanitizer 1.0.4
Fetching actionview 4.2.0
Installing actionview 4.2.0
Fetching actionpack 4.2.0
Installing actionpack 4.2.0
Fetching railties 4.2.0
Fetching actionmailer 4.2.0
Fetching sprockets-rails 3.2.1
Installing sprockets-rails 3.2.1
Installing railties 4.2.0
Installing actionmailer 4.2.0
Fetching jquery-rails 4.0.3
Fetching rails 4.2.0
Fetching coffee-rails 4.1.0
Installing coffee-rails 4.1.0
Installing jquery-rails 4.0.3
Installing rails 4.2.0
Fetching sass-rails 5.0.3
Installing sass-rails 5.0.3
Fetching turbolinks 2.3.0
Installing turbolinks 2.3.0
Bundle complete! 17 Gemfile dependencies, 57 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 (39.08s)
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
/tmp/build_af4ee1266f205da440cd39f395d56ff3/vendor/bundle/ruby/2.5.0/gems/activesupport-4.2.0/lib/active_support/core_ext/numeric/conversions.rb:121: warning: constant ::Fixnum is deprecated
/tmp/build_af4ee1266f205da440cd39f395d56ff3/vendor/bundle/ruby/2.5.0/gems/activesupport-4.2.0/lib/active_support/core_ext/numeric/conversions.rb:121: warning: constant ::Bignum is deprecated
rake aborted!
SystemStackError: stack level too deep
After this i have so much errors, and after them:
Tasks: TOP => environment
(See full trace by running task with --trace)
!
! Precompiling assets failed.
!
! Push rejected, failed to compile Ruby app.
! Push failed
I tried to:
1.Add "config.assets.initialize_on_precompile = false" to my application.rb file.
2.Initialize RAILS_ENV=production bundle exec rake assets:precompile
3.Delete application.css (actually, this css file is blank)
But i still can't deploy.
Maybe this can help you:
Gemfile:
source 'https://rubygems.org'
gem 'rails', '4.2.0'
gem 'uglifier', '2.5.3'
gem 'coffee-rails', '4.1.0'
gem 'jquery-rails', '4.0.3'
gem 'turbolinks', '2.3.0'
gem 'jbuilder', '2.2.3'
gem 'sdoc', '0.4.0', group: :doc
group :development, :test do
gem 'sqlite3', '1.3.9'
gem 'byebug', '3.4.0'
gem 'web-console', '2.0.0.beta3'
gem 'spring', '1.1.3'
end
group :test do
gem 'minitest-reporters', '1.0.5'
gem 'mini_backtrace', '0.1.3'
gem 'guard-minitest', '2.3.1'
end
group :production do
gem 'pg', '0.17.1'
gem 'rails_12factor', '0.0.2'
end
Database.yml file (maybe problem is here, idk):
# PostgreSQL. Versions 8.2 and up are supported.
#
# Install the pg driver:
# gem install pg
# On Mac OS X with macports:
# gem install pg -- --with-pg-config=/opt/local/lib/postgresql84/bin/pg_config
# On Windows:
# gem install pg
# Choose the win32 build.
# Install PostgreSQL and put its /bin directory on your path.
#
# Configure Using Gemfile
# gem 'pg'
#
development:
adapter: postgresql
encoding: unicode
database: sample_postgres_development
pool: 5
username: sample_postgres
password:
# Connect on a TCP socket. Omitted by default since the client uses a
# domain socket that doesn't need configuration. Windows does not have
# domain sockets, so uncomment these lines.
#host: localhost
#port: 5432
# Schema search path. The server defaults to $user,public
#schema_search_path: myapp,sharedapp,public
# Minimum log levels, in increasing order:
# debug5, debug4, debug3, debug2, debug1,
# log, notice, warning, error, fatal, and panic
# The server defaults to notice.
#min_messages: warning
# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test:
adapter: postgresql
encoding: unicode
database: sample_postgres_test
pool: 5
username: sample_postgres
password:
production:
adapter: postgresql
encoding: unicode
database: sample_postgres_production
pool: 5
username: sample_postgres
password:
Application.js file(actually blank):
// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
//
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// compiled file.
//
// Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
// about supported directives.
//
//= require jquery
//= require jquery_ujs
//= require turbolinks
//= require_tree .
Related
I'm creating a new rails app in order to use it for practicing adding a front-end theme to it and makes it work, so I created a new rails application (totally new app), after that I just edited the rails app gemfile to add all the gems I added for my older projects, after that I created a new heroku repo, and tried to push my new project to heroku, but It want work and it failed, here are my gemfile and my heroku logs knowing that I'm totally newbie
my gemfile
source 'https://rubygems.org'
ruby "2.5.1"
gem 'rails', '5.1.4'
gem 'devise', '~> 4.4', '>= 4.4.3'
gem 'activeadmin', '~> 1.3' #for admin dashboard
gem "paperclip", "~> 6.0.0" #for uploading photos
gem 'bootstrap-sass', '3.3.7'
gem 'country_select'
gem 'bcrypt', '3.1.12'
gem 'faker', '1.7.3'
gem 'puma', '3.9.1'
gem 'sass-rails', '5.0.6'
gem 'uglifier', '3.2.0'
gem 'coffee-rails', '4.2.2'
gem 'jquery-rails', '4.3.1'
gem 'jbuilder', '2.7.0'
gem 'carrierwave', '~> 0.11.2'
group :development, :test do
gem 'sqlite3', '1.3.13'
gem 'byebug', '9.0.6', platform: :mri #for checking and debugging the code
gem 'awesome_print' #for awesome printing the results in the rails console
end
group :development do
gem 'web-console', '3.5.1'
gem 'listen', '3.1.5'
gem 'spring', '2.0.2'
gem 'spring-watcher-listen', '2.0.1'
end
group :test do
gem 'rails-controller-testing', '1.0.2'
gem 'minitest', '5.10.3'
gem 'minitest-reporters', '1.1.14'
gem 'guard', '2.13.0'
gem 'guard-minitest', '2.4.4'
end
group :production do
gem 'pg', '0.18.4'
end
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
my heroku 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.1
-----> Installing dependencies using bundler 1.15.2
Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
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 rake 12.3.1
Installing minitest 5.10.3
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
Fetching crass 1.0.4
Installing mini_portile2 2.3.0
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.0
Installing mini_mime 1.0.0
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
Fetching formtastic_i18n 0.6.0
Installing formtastic_i18n 0.6.0
Installing thor 0.20.0
Fetching kaminari-core 1.1.1
Installing kaminari-core 1.1.1
Fetching arel 8.0.0
Installing arel 8.0.0
Fetching rb-fsevent 0.10.3
Installing rb-fsevent 0.10.3
Fetching ffi 1.9.25
Fetching bcrypt 3.1.12
Installing bcrypt 3.1.12 with native extensions
Installing ffi 1.9.25 with native extensions
Using bundler 1.15.2
Using json 2.1.0
Fetching mime-types-data 3.2016.0521
Installing mime-types-data 3.2016.0521
Fetching mimemagic 0.3.2
Installing mimemagic 0.3.2
Fetching climate_control 0.2.0
Installing climate_control 0.2.0
Fetching i18n_data 0.8.0
Installing i18n_data 0.8.0
Fetching sixarm_ruby_unaccent 1.2.0
Installing sixarm_ruby_unaccent 1.2.0
Fetching unicode_utils 1.4.0
Installing unicode_utils 1.4.0
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.9.1
Installing puma 3.9.1 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.6.5
Installing websocket-driver 0.6.5 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.0.0
Installing autoprefixer-rails 9.0.0
Fetching uglifier 3.2.0
Installing uglifier 3.2.0
Fetching rack-test 1.0.0
Installing rack-test 1.0.0
Fetching sprockets 3.7.2
Installing sprockets 3.7.2
Fetching warden 1.2.7
Installing warden 1.2.7
Fetching mime-types 3.1
Installing mime-types 3.1
Fetching terrapin 0.6.0
Installing terrapin 0.6.0
Fetching sort_alphabetical 1.1.0
Installing sort_alphabetical 1.1.0
Fetching rb-inotify 0.9.10
Installing rb-inotify 0.9.10
Fetching activesupport 5.1.4
Installing activesupport 5.1.4
Fetching money 6.12.0
Installing money 6.12.0
Fetching faker 1.7.3
Installing faker 1.7.3
Fetching sass-listen 4.0.0
Installing sass-listen 4.0.0
Fetching globalid 0.4.1
Installing globalid 0.4.1
Fetching arbre 1.1.1
Installing arbre 1.1.1
Fetching activemodel 5.1.4
Installing activemodel 5.1.4
Fetching jbuilder 2.7.0
Installing jbuilder 2.7.0
Fetching countries 2.1.4
Installing countries 2.1.4
Fetching sass 3.5.7
Installing sass 3.5.7
Fetching activejob 5.1.4
Installing activejob 5.1.4
Fetching activerecord 5.1.4
Installing activerecord 5.1.4
Fetching carrierwave 0.11.2
Installing carrierwave 0.11.2
Fetching paperclip 6.0.0
Installing paperclip 6.0.0
Fetching country_select 3.1.1
Installing country_select 3.1.1
Fetching bootstrap-sass 3.3.7
Installing bootstrap-sass 3.3.7
Fetching kaminari-activerecord 1.1.1
Installing kaminari-activerecord 1.1.1
Fetching polyamorous 1.3.3
Installing polyamorous 1.3.3
Fetching rails-dom-testing 2.0.3
Fetching loofah 2.2.2
Installing rails-dom-testing 2.0.3
Installing loofah 2.2.2
Fetching rails-html-sanitizer 1.0.4
Installing rails-html-sanitizer 1.0.4
Fetching actionview 5.1.4
Installing actionview 5.1.4
Fetching actionpack 5.1.4
Fetching kaminari-actionview 1.1.1
Installing kaminari-actionview 1.1.1
Installing actionpack 5.1.4
Fetching kaminari 1.1.1
Installing kaminari 1.1.1
Fetching actionmailer 5.1.4
Fetching railties 5.1.4
Fetching actioncable 5.1.4
Installing actionmailer 5.1.4
Installing actioncable 5.1.4
Installing railties 5.1.4
Fetching formtastic 3.1.5
Installing formtastic 3.1.5
Fetching has_scope 0.7.2
Installing has_scope 0.7.2
Fetching ransack 1.8.8
Installing ransack 1.8.8
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
Fetching rails 5.1.4
Installing jquery-rails 4.3.1
Installing rails 5.1.4
Fetching sass-rails 5.0.6
Fetching inherited_resources 1.8.0
Installing sass-rails 5.0.6
Installing inherited_resources 1.8.0
Fetching devise 4.4.3
Installing devise 4.4.3
Fetching activeadmin 1.3.0
Installing activeadmin 1.3.0
Bundle complete! 29 Gemfile dependencies, 90 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
Post-install message from paperclip:
##################################################
# NOTE FOR UPGRADING FROM 4.3.0 OR EARLIER #
##################################################
Paperclip is now compatible with aws-sdk >= 2.0.0.
If you are using S3 storage, aws-sdk >= 2.0.0 requires you to make a few small
changes:
* You must set the `s3_region`
* If you are explicitly setting permissions anywhere, such as in an initializer,
note that the format of the permissions changed from using an underscore to
using a hyphen. For example, `:public_read` needs to be changed to
`public-read`.
For a walkthrough of upgrading from 4 to 5 and aws-sdk >= 2.0 you can watch
http://rubythursday.com/episodes/ruby-snack-27-upgrade-paperclip-and-aws-sdk-in-prep-for-rails-5
Bundle completed (38.06s)
Cleaning up the bundler cache.
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`.
The latest bundler is 1.16.3, but you are currently running 1.15.2.
To update, run `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
rake aborted!
Sprockets::FileNotFound: couldn't find file 'turbolinks' with type 'application/javascript'
Checked in these paths:
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/app/assets/config
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/app/assets/images
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/app/assets/javascripts
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/app/assets/stylesheets
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/activeadmin-1.3.0/app/assets/images
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/activeadmin-1.3.0/app/assets/javascripts
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/activeadmin-1.3.0/app/assets/stylesheets
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/activeadmin-1.3.0/vendor/assets/javascripts
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/activeadmin-1.3.0/vendor/assets/stylesheets
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/jquery-rails-4.3.1/vendor/assets/javascripts
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/formtastic-3.1.5/app/assets/stylesheets
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/actioncable-5.1.4/lib/assets/compiled
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/actionview-5.1.4/lib/assets/compiled
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/node_modules
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/bootstrap-sass-3.3.7/assets/stylesheets
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/bootstrap-sass-3.3.7/assets/javascripts
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/bootstrap-sass-3.3.7/assets/fonts
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/bootstrap-sass-3.3.7/assets/images
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/app/assets/javascripts/application.js:14
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/resolve.rb:65:in `resolve!'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/directive_processor.rb:399:in `resolve'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/directive_processor.rb:207:in `process_require_directive'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/directive_processor.rb:180:in `block in process_directives'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/directive_processor.rb:178:in `each'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/directive_processor.rb:178:in `process_directives'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/directive_processor.rb:83:in `_call'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/directive_processor.rb:68:in `call'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:75:in `call_processor'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:57:in `block in call_processors'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:56:in `reverse_each'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:56:in `call_processors'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:134:in `load_from_unloaded'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:60:in `block in load'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:317:in `fetch_asset_from_dependency_cache'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:44:in `load'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/cached_environment.rb:20:in `block in initialize'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/cached_environment.rb:47:in `load'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/bundle.rb:23:in `block in call'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/utils.rb:200:in `dfs'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/bundle.rb:24:in `call'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:75:in `call_processor'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:57:in `block in call_processors'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:56:in `reverse_each'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:56:in `call_processors'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:134:in `load_from_unloaded'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:60:in `block in load'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:317:in `fetch_asset_from_dependency_cache'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:44:in `load'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/cached_environment.rb:20:in `block in initialize'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/cached_environment.rb:47:in `load'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/base.rb:66:in `find_asset'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/base.rb:73:in `find_all_linked_assets'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/manifest.rb:142:in `block in find'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/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_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:228:in `block in stat_tree'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:212:in `block in stat_directory'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:209:in `each'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:209:in `stat_directory'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:227:in `stat_tree'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:105:in `each'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:105:in `block in logical_paths'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:104:in `each'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:104:in `logical_paths'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/manifest.rb:140:in `find'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/manifest.rb:186:in `compile'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/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_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/rake/sprocketstask.rb:147:in `with_logger'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/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_66540dbef9a5c6fa97bf6a74441a919d/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
As this lines says:
Sprockets::FileNotFound: couldn't find file 'turbolinks' with type 'application/javascript'.
turbolinks gem is missing in your gemfile, maybe including it in your gemfile solves the issue.
When I run the git push heroku master command, I have an error: failed to push somerefs to 'https://git.heroku.com/cafeteria-jetruby.git'. In the local version on my computer, the program works without problems.
The problem appeared when I installed the carrierwave gem.
Please tell me what the problem is and where to look for an error ?
The settings in the carrierwave config are as follows
if Rails.env.production?
CarrierWave.configure do |config|
config.fog_credentials = {
provider: 'AWS',
aws_access_key_id: ENV['S3_ACCESS_KEY'],
aws_secret_access_key: ENV['S3_SECRET_KEY']
}
config.fog_directory = ENV['S3_BUCKET_NAME']
end
end
application log
! 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.3.7
-----> Installing dependencies using bundler 1.15.2
Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
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.11.3
Installing minitest 5.11.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
Fetching crass 1.0.4
Installing mini_portile2 2.3.0
Fetching rack 2.0.5
Installing crass 1.0.4
Fetching nio4r 2.3.1
Installing rack 2.0.5
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.0
Installing mini_mime 1.0.0
Fetching arel 8.0.0
Installing arel 8.0.0
Fetching bcrypt 3.1.12
Installing bcrypt 3.1.12 with native extensions
Using bundler 1.15.2
Fetching mime-types-data 3.2016.0521
Installing mime-types-data 3.2016.0521
Fetching climate_control 0.2.0
Installing climate_control 0.2.0
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 orm_adapter 0.5.0
Installing orm_adapter 0.5.0
Fetching excon 0.62.0
Installing excon 0.62.0
Fetching ffi 1.9.23
Installing ffi 1.9.23 with native extensions
Fetching formatador 0.2.5
Installing formatador 0.2.5
Fetching multi_json 1.13.1
Installing multi_json 1.13.1
Fetching ipaddress 0.8.3
Installing ipaddress 0.8.3
Fetching mimemagic 0.3.2
Installing mimemagic 0.3.2
Fetching mini_magick 4.8.0
Installing mini_magick 4.8.0
Fetching pg 1.0.0
Installing pg 1.0.0 with native extensions
Fetching puma 3.11.4
Installing puma 3.11.4 with native extensions
Fetching rb-fsevent 0.10.3
Installing rb-fsevent 0.10.3
Fetching tilt 2.0.8
Installing tilt 2.0.8
Fetching turbolinks-source 5.1.0
Installing turbolinks-source 5.1.0
Fetching i18n 1.0.1
Installing i18n 1.0.1
Fetching tzinfo 1.2.5
Installing tzinfo 1.2.5
Fetching nokogiri 1.8.2
Installing nokogiri 1.8.2 with native extensions
Fetching websocket-driver 0.6.5
Installing websocket-driver 0.6.5 with native extensions
Fetching mail 2.7.0
Installing mail 2.7.0
Fetching rack-test 1.0.0
Installing rack-test 1.0.0
Fetching warden 1.2.7
Installing warden 1.2.7
Fetching sprockets 3.7.1
Installing sprockets 3.7.1
Fetching mime-types 3.1
Installing mime-types 3.1
Fetching cocaine 0.5.8
Installing cocaine 0.5.8
Fetching coffee-script 2.4.1
Installing coffee-script 2.4.1
Fetching uglifier 4.1.10
Installing uglifier 4.1.10
Fetching rb-inotify 0.9.10
Installing rb-inotify 0.9.10
Fetching turbolinks 5.1.1
Installing turbolinks 5.1.1
Fetching activesupport 5.1.6
Installing activesupport 5.1.6
Fetching fog-core 2.1.0
Installing fog-core 2.1.0
Fetching sass-listen 4.0.0
Installing sass-listen 4.0.0
Fetching globalid 0.4.1
Installing globalid 0.4.1
Fetching activemodel 5.1.6
Installing activemodel 5.1.6
Fetching jbuilder 2.7.0
Installing jbuilder 2.7.0
Fetching fog-json 1.1.0
Installing fog-json 1.1.0
Fetching sass 3.5.6
Installing sass 3.5.6
Fetching activejob 5.1.6
Installing activejob 5.1.6
Fetching activerecord 5.1.6
Installing activerecord 5.1.6
Fetching carrierwave 1.2.2
Installing carrierwave 1.2.2
Fetching paperclip 5.2.1
Installing paperclip 5.2.1
Fetching rails-dom-testing 2.0.3
Fetching loofah 2.2.2
Installing rails-dom-testing 2.0.3
Installing loofah 2.2.2
Fetching fog-xml 0.1.3
Installing fog-xml 0.1.3
Fetching rails-html-sanitizer 1.0.4
Fetching fog-aws 3.0.0
Installing rails-html-sanitizer 1.0.4
Fetching actionview 5.1.6
Installing actionview 5.1.6
Installing fog-aws 3.0.0
Fetching actionpack 5.1.6
Installing actionpack 5.1.6
Fetching actioncable 5.1.6
Fetching actionmailer 5.1.6
Installing actioncable 5.1.6
Installing actionmailer 5.1.6
Fetching railties 5.1.6
Fetching sprockets-rails 3.2.1
Installing sprockets-rails 3.2.1
Installing railties 5.1.6
Fetching simple_form 4.0.1
Installing simple_form 4.0.1
Fetching coffee-rails 4.2.2
Fetching responders 2.4.0
Installing coffee-rails 4.2.2
Installing responders 2.4.0
Fetching jquery-ui-rails 6.0.1
Fetching rails 5.1.6
Installing rails 5.1.6
Fetching sass-rails 5.0.7
Installing jquery-ui-rails 6.0.1
Installing sass-rails 5.0.7
Fetching devise 4.4.3
Installing devise 4.4.3
Bundle complete! 25 Gemfile dependencies, 78 gems now installed.
Gems in the groups development and test were not installed.
Bundled gems are installed into ./vendor/bundle.
Post-install message from paperclip:
##################################################
# NOTE FOR UPGRADING FROM 4.3.0 OR EARLIER #
##################################################
Paperclip is now compatible with aws-sdk >= 2.0.0.
If you are using S3 storage, aws-sdk >= 2.0.0 requires you to make a few small
changes:
* You must set the `s3_region`
* If you are explicitly setting permissions anywhere, such as in an initializer,
note that the format of the permissions changed from using an underscore to
using a hyphen. For example, `:public_read` needs to be changed to
`public-read`.
For a walkthrough of upgrading from 4 to 5 and aws-sdk >= 2.0 you can watch
http://rubythursday.com/episodes/ruby-snack-27-upgrade-paperclip-and-aws-sdk-in-prep-for-rails-5
Bundle completed (32.18s)
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
rake aborted!
LoadError: cannot load such file -- fog
/tmp/build_bedb5e2c296a47ff2369b0d19d1fe3cf/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:292:in `require'
/tmp/build_bedb5e2c296a47ff2369b0d19d1fe3cf/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:292:in `block in require'
/tmp/build_bedb5e2c296a47ff2369b0d19d1fe3cf/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:258:in `load_dependency'
/tmp/build_bedb5e2c296a47ff2369b0d19d1fe3cf/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:292:in `require'
/tmp/build_bedb5e2c296a47ff2369b0d19d1fe3cf/vendor/bundle/ruby/2.3.0/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:122:in `eager_load_fog'
/tmp/build_bedb5e2c296a47ff2369b0d19d1fe3cf/vendor/bundle/ruby/2.3.0/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:137:in `fog_credentials='
/tmp/build_bedb5e2c296a47ff2369b0d19d1fe3cf/config/initializers/carriervawe.rb:3:in `block in <top (required)>'
/tmp/build_bedb5e2c296a47ff2369b0d19d1fe3cf/vendor/bundle/ruby/2.3.0/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:159:in `configure'
/tmp/build_bedb5e2c296a47ff2369b0d19d1fe3cf/vendor/bundle/ruby/2.3.0/gems/carrierwave-1.2.2/lib/carrierwave.rb:14:in `configure'
/tmp/build_bedb5e2c296a47ff2369b0d19d1fe3cf/config/initializers/carriervawe.rb:2:in `<top (required)>'
/tmp/build_bedb5e2c296a47ff2369b0d19d1fe3cf/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:286:in `load'
/tmp/build_bedb5e2c296a47ff2369b0d19d1fe3cf/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:286:in `block in load'
/tmp/build_bedb5e2c296a47ff2369b0d19d1fe3cf/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:258:in `load_dependency'
/tmp/build_bedb5e2c296a47ff2369b0d19d1fe3cf/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:286:in `load'
/tmp/build_bedb5e2c296a47ff2369b0d19d1fe3cf/vendor/bundle/ruby/2.3.0/gems/railties-5.1.6/lib/rails/engine.rb:655:in `block in load_config_initializer'
/tmp/build_bedb5e2c296a47ff2369b0d19d1fe3cf/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.6/lib/active_support/notifications.rb:168:in `instrument'
/tmp/build_bedb5e2c296a47ff2369b0d19d1fe3cf/vendor/bundle/ruby/2.3.0/gems/railties-5.1.6/lib/rails/engine.rb:654:in `load_config_initializer'
/tmp/build_bedb5e2c296a47ff2369b0d19d1fe3cf/vendor/bundle/ruby/2.3.0/gems/railties-5.1.6/lib/rails/engine.rb:612:in `block (2 levels) in <class:Engine>'
/tmp/build_bedb5e2c296a47ff2369b0d19d1fe3cf/vendor/bundle/ruby/2.3.0/gems/railties-5.1.6/lib/rails/engine.rb:611:in `each'
/tmp/build_bedb5e2c296a47ff2369b0d19d1fe3cf/vendor/bundle/ruby/2.3.0/gems/railties-5.1.6/lib/rails/engine.rb:611:in `block in <class:Engine>'
/tmp/build_bedb5e2c296a47ff2369b0d19d1fe3cf/vendor/bundle/ruby/2.3.0/gems/railties-5.1.6/lib/rails/initializable.rb:30:in `instance_exec'
/tmp/build_bedb5e2c296a47ff2369b0d19d1fe3cf/vendor/bundle/ruby/2.3.0/gems/railties-5.1.6/lib/rails/initializable.rb:30:in `run'
/tmp/build_bedb5e2c296a47ff2369b0d19d1fe3cf/vendor/bundle/ruby/2.3.0/gems/railties-5.1.6/lib/rails/initializable.rb:59:in `block in run_initializers'
/tmp/build_bedb5e2c296a47ff2369b0d19d1fe3cf/vendor/bundle/ruby/2.3.0/gems/railties-5.1.6/lib/rails/initializable.rb:48:in `each'
/tmp/build_bedb5e2c296a47ff2369b0d19d1fe3cf/vendor/bundle/ruby/2.3.0/gems/railties-5.1.6/lib/rails/initializable.rb:48:in `tsort_each_child'
/tmp/build_bedb5e2c296a47ff2369b0d19d1fe3cf/vendor/bundle/ruby/2.3.0/gems/railties-5.1.6/lib/rails/initializable.rb:58:in `run_initializers'
/tmp/build_bedb5e2c296a47ff2369b0d19d1fe3cf/vendor/bundle/ruby/2.3.0/gems/railties-5.1.6/lib/rails/application.rb:353:in `initialize!'
/tmp/build_bedb5e2c296a47ff2369b0d19d1fe3cf/config/environment.rb:5:in `<top (required)>'
/tmp/build_bedb5e2c296a47ff2369b0d19d1fe3cf/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:292:in `require'
/tmp/build_bedb5e2c296a47ff2369b0d19d1fe3cf/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:292:in `block in require'
/tmp/build_bedb5e2c296a47ff2369b0d19d1fe3cf/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:258:in `load_dependency'
/tmp/build_bedb5e2c296a47ff2369b0d19d1fe3cf/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:292:in `require'
/tmp/build_bedb5e2c296a47ff2369b0d19d1fe3cf/vendor/bundle/ruby/2.3.0/gems/railties-5.1.6/lib/rails/application.rb:329:in `require_environment!'
/tmp/build_bedb5e2c296a47ff2369b0d19d1fe3cf/vendor/bundle/ruby/2.3.0/gems/railties-5.1.6/lib/rails/application.rb:445:in `block in run_tasks_blocks'
/tmp/build_bedb5e2c296a47ff2369b0d19d1fe3cf/vendor/bundle/ruby/2.3.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/task.rb:62:in `block (2 levels) in define'
/tmp/build_bedb5e2c296a47ff2369b0d19d1fe3cf/vendor/bundle/ruby/2.3.0/gems/rake-12.3.1/exe/rake:27:in `<top (required)>'
Tasks: TOP => environment
(See full trace by running task with --trace)
!
! Precompiling assets failed.
!
! Push rejected, failed to compile Ruby app.
! Push failed
and my gem file
source 'https://rubygems.org'
git_source(:github) do |repo_name|
repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
"https://github.com/#{repo_name}.git"
end
gem 'rails', '~> 5.1.6'
gem 'puma', '~> 3.7'
gem 'sass-rails', '~> 5.0'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.2'
gem 'turbolinks', '~> 5'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.5'
# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development
gem 'jquery-ui-rails'
gem 'devise', '~> 4.2'
gem 'carrierwave', '~> 1.2', '>= 1.2.2'
gem 'mini_magick', '~> 4.8'
gem 'simple_form'
gem 'fog-aws'
group :development, :test do
gem 'sqlite3'
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
# Adds support for Capybara system testing and selenium driver
gem 'capybara', '~> 2.13'
gem 'selenium-webdriver'
gem 'rspec-rails', '~> 3.7', '>= 3.7.2'
end
group :development do
gem 'web-console', '>= 3.3.0'
gem 'listen', '>= 3.0.5', '< 3.2'
gem 'spring'
gem 'spring-watcher-listen', '~> 2.0.0'
end
group :production do
gem 'pg'
end
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
So im a total newbie and going through Michael Hartl's rails tutorial. Ive become totally stuck when trying to config picture uploads using carrierwave, fog-aws to S3 AWS. When pushing to heroku I get the following error:
LoadError: cannot load such file -- fog
As a side note i've tried using the exact same code in development mode, rails server works just fine and I am able to upload files to AWS successfully. So it's not a configuration setup problem with AWS. My problem comes when trying to push the app to Heroku.
Here is my setup:
gemfile
source 'https://rubygems.org'
gem 'rails', '5.1.4'
gem 'bcrypt', git: 'https://github.com/codahale/bcrypt-ruby.git', :require => 'bcrypt'
gem 'faker', '1.7.3'
gem 'carrierwave', '1.0.0'
gem 'fog-aws', '2.0.0'
gem 'mini_magick', '4.7.0'
gem 'nokogiri', '1.8.1'
gem 'will_paginate', '3.1.6'
gem 'bootstrap-will_paginate', '1.0.0'
gem 'bootstrap-sass', '3.3.7'
gem 'puma', '3.9.1'
gem 'sass-rails', '5.0.6'
gem 'uglifier', '3.2.0'
gem 'coffee-rails', '4.2.2'
gem 'jquery-rails', '4.3.1'
gem 'turbolinks', '5.0.1'
gem 'jbuilder', '2.7.0'
group :development, :test do
gem 'sqlite3', '1.3.13'
gem 'byebug', '9.0.6', platform: :mri
end
group :development do
gem 'web-console', '3.5.1'
gem 'listen', '3.0.8'
gem 'spring', '2.0.2'
gem 'spring-watcher-listen', '2.0.1'
end
group :test do
gem 'rails-controller-testing', '1.0.2'
gem 'minitest-reporters', '1.1.14'
gem 'guard', '2.13.0'
gem 'guard-minitest', '2.4.4'
end
group :production do
gem 'pg', '0.18.4'
end
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
app/uploaders/picture_uploader.rb
class PictureUploader < CarrierWave::Uploader::Base
include CarrierWave::MiniMagick
process resize_to_limit: [400, 400]
if Rails.env.production?
storage :fog
else
storage :file
end
config/initializers/carrierwave.rb
if Rails.env.production?
CarrierWave.configure do |config|
config.fog_provider = 'fog/aws'
config.fog_credentials = {
# Configuration for Amazon S3
:provider => 'AWS',
:aws_access_key_id => ENV['S3_ACCESS_KEY'],
:aws_secret_access_key => ENV['S3_SECRET_KEY'],
:region => ENV['S3_REGION'],
}
config.cache_dir = "#{Rails.root}/tmp/uploads" # For Heroku
config.fog_directory = ENV['S3_BUCKET']
config.fog_public = true
config.fog_attributes = { 'Cache-Control' => "max-age=#{365.day.to_i}" }
end
end
Heroku log with error:
! 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.3.4
###### 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 1.15.2
Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4
Fetching https://github.com/codahale/bcrypt-ruby.git
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 version metadata from https://rubygems.org/..
Fetching dependency metadata from https://rubygems.org/.
Resolving dependencies...
Fetching rake 12.3.0
Fetching concurrent-ruby 1.0.5
Fetching minitest 5.10.3
Installing minitest 5.10.3
Installing rake 12.3.0
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.0
Fetching mini_portile2 2.3.0
Installing erubi 1.7.0
Fetching crass 1.0.3
Installing mini_portile2 2.3.0
Fetching rack 2.0.3
Installing crass 1.0.3
Fetching nio4r 2.2.0
Installing rack 2.0.3
Installing nio4r 2.2.0 with native extensions
Fetching websocket-extensions 0.1.3
Installing websocket-extensions 0.1.3
Fetching mini_mime 1.0.0
Installing mini_mime 1.0.0
Fetching arel 8.0.0
Installing arel 8.0.0
Fetching execjs 2.7.0
Using bcrypt 3.1.11 from https://github.com/codahale/bcrypt-ruby.git (at master#f2db689)
Installing execjs 2.7.0
Fetching rb-fsevent 0.10.2
Installing rb-fsevent 0.10.2
Fetching ffi 1.9.18
Installing ffi 1.9.18 with native extensions
Fetching will_paginate 3.1.6
Installing will_paginate 3.1.6
Using bundler 1.15.2
Fetching mime-types-data 3.2016.0521
Installing mime-types-data 3.2016.0521
Fetching coffee-script-source 1.12.2
Installing coffee-script-source 1.12.2
Fetching method_source 0.9.0
Installing method_source 0.9.0
Fetching thor 0.20.0
Installing thor 0.20.0
Fetching excon 0.60.0
Installing excon 0.60.0
Fetching formatador 0.2.5
Installing formatador 0.2.5
Fetching multi_json 1.12.2
Installing multi_json 1.12.2
Fetching ipaddress 0.8.3
Installing ipaddress 0.8.3
Fetching mini_magick 4.7.0
Installing mini_magick 4.7.0
Fetching pg 0.18.4
Installing pg 0.18.4 with native extensions
Fetching puma 3.9.1
Installing puma 3.9.1 with native extensions
Fetching tilt 2.0.8
Installing tilt 2.0.8
Fetching turbolinks-source 5.0.3
Installing turbolinks-source 5.0.3
Fetching i18n 0.9.1
Installing i18n 0.9.1
Fetching tzinfo 1.2.4
Installing tzinfo 1.2.4
Fetching nokogiri 1.8.1
Installing nokogiri 1.8.1 with native extensions
Fetching websocket-driver 0.6.5
Installing websocket-driver 0.6.5 with native extensions
Fetching mail 2.7.0
Installing mail 2.7.0
Fetching rack-test 0.8.2
Installing rack-test 0.8.2
Fetching sprockets 3.7.1
Installing sprockets 3.7.1
Fetching autoprefixer-rails 7.2.3
Installing autoprefixer-rails 7.2.3
Fetching uglifier 3.2.0
Installing uglifier 3.2.0
Fetching bootstrap-will_paginate 1.0.0
Installing bootstrap-will_paginate 1.0.0
Fetching mime-types 3.1
Installing mime-types 3.1
Fetching coffee-script 2.4.1
Installing coffee-script 2.4.1
Fetching fog-core 1.45.0
Installing fog-core 1.45.0
Fetching rb-inotify 0.9.10
Installing rb-inotify 0.9.10
Fetching turbolinks 5.0.1
Installing turbolinks 5.0.1
Fetching faker 1.7.3
Installing faker 1.7.3
Fetching activesupport 5.1.4
Installing activesupport 5.1.4
Fetching fog-json 1.0.2
Installing fog-json 1.0.2
Fetching sass-listen 4.0.0
Installing sass-listen 4.0.0
Fetching globalid 0.4.1
Installing globalid 0.4.1
Fetching activemodel 5.1.4
Installing activemodel 5.1.4
Fetching jbuilder 2.7.0
Installing jbuilder 2.7.0
Fetching sass 3.5.4
Installing sass 3.5.4
Fetching activejob 5.1.4
Installing activejob 5.1.4
Fetching activerecord 5.1.4
Installing activerecord 5.1.4
Fetching carrierwave 1.1.0
Installing carrierwave 1.1.0
Fetching bootstrap-sass 3.3.7
Installing bootstrap-sass 3.3.7
Fetching rails-dom-testing 2.0.3
Fetching loofah 2.1.1
Installing rails-dom-testing 2.0.3
Installing loofah 2.1.1
Fetching fog-xml 0.1.3
Installing fog-xml 0.1.3
Fetching rails-html-sanitizer 1.0.3
Installing rails-html-sanitizer 1.0.3
Fetching fog-aws 2.0.0
Fetching actionview 5.1.4
Installing actionview 5.1.4
Installing fog-aws 2.0.0
Fetching actionpack 5.1.4
Installing actionpack 5.1.4
Fetching actioncable 5.1.4
Fetching actionmailer 5.1.4
Installing actionmailer 5.1.4
Installing actioncable 5.1.4
Fetching railties 5.1.4
Fetching sprockets-rails 3.2.1
Installing sprockets-rails 3.2.1
Installing railties 5.1.4
Fetching coffee-rails 4.2.2
Fetching jquery-rails 4.3.1
Installing coffee-rails 4.2.2
Fetching rails 5.1.4
Installing rails 5.1.4
Fetching sass-rails 5.0.6
Installing sass-rails 5.0.6
Installing jquery-rails 4.3.1
Bundle complete! 29 Gemfile dependencies, 74 gems now installed.
Gems in the groups development and test were not installed.
Bundled gems are installed into ./vendor/bundle.
Bundle completed (32.67s)
Cleaning up the bundler cache.
-----> Installing node-v6.11.1-linux-x64
-----> Detecting rake tasks
-----> Preparing app for Rails asset pipeline
Running: rake assets:precompile
rake aborted!
LoadError: cannot load such file -- fog
/tmp/build_09f91bebad38e0d893f4a5cd532d3b6b/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:292:in `require'
/tmp/build_09f91bebad38e0d893f4a5cd532d3b6b/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:292:in `block in require'
/tmp/build_09f91bebad38e0d893f4a5cd532d3b6b/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:258:in `load_dependency'
/tmp/build_09f91bebad38e0d893f4a5cd532d3b6b/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:292:in `require'
/tmp/build_09f91bebad38e0d893f4a5cd532d3b6b/vendor/bundle/ruby/2.3.0/gems/carrierwave-1.1.0/lib/carrierwave/uploader/configuration.rb:122:in `eager_load_fog'
/tmp/build_09f91bebad38e0d893f4a5cd532d3b6b/vendor/bundle/ruby/2.3.0/gems/carrierwave-1.1.0/lib/carrierwave/uploader/configuration.rb:137:in `fog_credentials='
/tmp/build_09f91bebad38e0d893f4a5cd532d3b6b/config/initializers/carrier_wave.rb:3:in `block in <top (required)>'
/tmp/build_09f91bebad38e0d893f4a5cd532d3b6b/vendor/bundle/ruby/2.3.0/gems/carrierwave-1.1.0/lib/carrierwave/uploader/configuration.rb:159:in `configure'
/tmp/build_09f91bebad38e0d893f4a5cd532d3b6b/vendor/bundle/ruby/2.3.0/gems/carrierwave-1.1.0/lib/carrierwave.rb:14:in `configure'
/tmp/build_09f91bebad38e0d893f4a5cd532d3b6b/config/initializers/carrier_wave.rb:2:in `<top (required)>'
/tmp/build_09f91bebad38e0d893f4a5cd532d3b6b/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:286:in `load'
/tmp/build_09f91bebad38e0d893f4a5cd532d3b6b/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:286:in `block in load'
/tmp/build_09f91bebad38e0d893f4a5cd532d3b6b/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:258:in `load_dependency'
/tmp/build_09f91bebad38e0d893f4a5cd532d3b6b/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:286:in `load'
/tmp/build_09f91bebad38e0d893f4a5cd532d3b6b/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/engine.rb:655:in `block in load_config_initializer'
/tmp/build_09f91bebad38e0d893f4a5cd532d3b6b/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/notifications.rb:168:in `instrument'
/tmp/build_09f91bebad38e0d893f4a5cd532d3b6b/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/engine.rb:654:in `load_config_initializer'
/tmp/build_09f91bebad38e0d893f4a5cd532d3b6b/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/engine.rb:612:in `block (2 levels) in <class:Engine>'
/tmp/build_09f91bebad38e0d893f4a5cd532d3b6b/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/engine.rb:611:in `each'
/tmp/build_09f91bebad38e0d893f4a5cd532d3b6b/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/engine.rb:611:in `block in <class:Engine>'
/tmp/build_09f91bebad38e0d893f4a5cd532d3b6b/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/initializable.rb:30:in `instance_exec'
/tmp/build_09f91bebad38e0d893f4a5cd532d3b6b/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/initializable.rb:30:in `run'
/tmp/build_09f91bebad38e0d893f4a5cd532d3b6b/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/initializable.rb:59:in `block in run_initializers'
/tmp/build_09f91bebad38e0d893f4a5cd532d3b6b/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/initializable.rb:48:in `each'
/tmp/build_09f91bebad38e0d893f4a5cd532d3b6b/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/initializable.rb:48:in `tsort_each_child'
/tmp/build_09f91bebad38e0d893f4a5cd532d3b6b/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/initializable.rb:58:in `run_initializers'
/tmp/build_09f91bebad38e0d893f4a5cd532d3b6b/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/application.rb:353:in `initialize!'
/tmp/build_09f91bebad38e0d893f4a5cd532d3b6b/config/environment.rb:5:in `<top (required)>'
/tmp/build_09f91bebad38e0d893f4a5cd532d3b6b/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/application.rb:329:in `require'
/tmp/build_09f91bebad38e0d893f4a5cd532d3b6b/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/application.rb:329:in `require_environment!'
/tmp/build_09f91bebad38e0d893f4a5cd532d3b6b/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/application.rb:445:in `block in run_tasks_blocks'
/tmp/build_09f91bebad38e0d893f4a5cd532d3b6b/vendor/bundle/ruby/2.3.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/task.rb:62:in `block (2 levels) in define'
/tmp/build_09f91bebad38e0d893f4a5cd532d3b6b/vendor/bundle/ruby/2.3.0/gems/rake-12.3.0/exe/rake:27:in `<top (required)>'
Tasks: TOP => environment
(See full trace by running task with --trace)
!
! Precompiling assets failed.
!
! Push rejected, failed to compile Ruby app.
! Push failed
Had the same issue. I resolved in this way:
Gemfile:
gem 'fog-aws', group: :production
Adding to config/initializers/carrierwave.rb:
config.fog_provider = 'fog/aws'
After you don't need upgrading carrierwave.
First, uninstall the gem then install the latest version which is 1.2.1
Try to add gem 'fog' directly to your Gemfile
Gemfile:
gem 'fog'
gem 'fog-aws'
if you define gem in Gemfile it will automatically require it (by default).
Minor update: I was able to reproduce the Heroku deployment production error in development mode.
LoadError: cannot load such file -- fog
Gemfile:
gem 'carrierwave', '1.1.0' #also tried 1.2.1 with same results
gem 'mini_magick', '4.7.0'
gem 'fog-aws', '2.0.0'
config/initiliazers/carrierwave.rb
if Rails.env.production?
CarrierWave.configure do |config|
config.fog_credentials = {
# Configuration for Amazon S3
:provider => 'AWS',
:aws_access_key_id => ENV['S3_ACCESS_KEY'],
:aws_secret_access_key => ENV['S3_SECRET_KEY']
}
config.fog_directory = ENV['S3_BUCKET']
end
To solve the issue in development mode either of the following steps worked for me:
1) Add the following to carrierwave.rb before the credentials (and with
only gem 'fog-aws' in the gemfile):
config.fog_provider = 'fog/aws'
2) add fog gem to the gemfile:
gem 'fog', '1.41'
With this carrierwave picture upload to Amazon S3 is now fully functional in development mode. Unfortunately this does not solve the problem deploying to Heroku. Could it be that Heroku is unable to establish the provider based on the above? The production log indicates the fog-aws is installed so I dont get it.
Finally resolved the problem and it was so simple. Embarrassingly so!
All I needed to do is reset the database at Heroku (before pushing)
heroku pg:reset DATABASE
Now deployment to Heroku works without crashing (including picture uploads to S3 AWS)
Well,I got same issue but different reason.
I coded wrong symbol "provide" in carrier_wave.rb configration
:provide => "AWS"
It caused a error at
require self.fog_provider
and retrieved heroku logs in
/var/lib/gems/2.5.0/gems/carrierwave-1.2.1/lib/carrierwave/uploader/configuration.rb :122:in `eager_load_fog'
self.fog_provider default is "fog",so is that.
Then I add gem "fog" in my gemfile ,it worked
I create a new Refinery application and face some problems. I following to instuction on official web-site Refinery http://refinerycms.com/guides/heroku. One of this mistakes says: NOTE: FriendlyId 4.x breaks compatibility with 3.x. But I unload rails version 3.2.18. What problem is? When I open my application on heroku: We're sorry, but something went wrong.
My Gemfile:
source 'https://rubygems.org'
gem 'rails', '3.2.18'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
group :development, :test do
gem 'sqlite3'
end
group :production do
gem 'pg'
end
group :production do
gem 'rails_log_stdout', github: 'heroku/rails_log_stdout'
gem 'rails3_serve_static_assets', github: 'heroku/rails3_serve_static_assets'
end
gem 'rails_12factor', group: :production
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', :platforms => :ruby
gem 'uglifier', '>= 1.0.3'
end
gem 'jquery-rails'
# To use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'
# To use Jbuilder templates for JSON
# gem 'jbuilder'
# Use unicorn as the app server
# gem 'unicorn'
# Deploy with Capistrano
# gem 'capistrano'
# To use debugger
# gem 'debugger'
# Refinery CMS
gem 'refinerycms', '~> 2.1.0'
# Optionally, specify additional Refinery CMS Extensions here:
gem 'refinerycms-acts-as-indexed', '~> 1.0.0'
# gem 'refinerycms-blog', '~> 2.1.0'
# gem 'refinerycms-inquiries', '~> 2.1.0'
# gem 'refinerycms-search', '~> 2.1.0'
# gem 'refinerycms-page-images', '~> 2.1.0'
# The Heroku gem allows you to interface with Heroku's API
gem 'heroku'
# Fog allows you to use S3 assets (added for Heroku)
gem 'fog'
# Postgres support (added for Heroku)
gem 'pg'
Terminal:
ark#ark-Aspire-5750G:~/mirprirodi$ git push heroku master
Initializing repository, done.
Counting objects: 95, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (81/81), done.
Writing objects: 100% (95/95), 35.82 KiB, done.
Total 95 (delta 15), reused 0 (delta 0)
-----> Ruby app detected
-----> Compiling Ruby/Rails
-----> Using Ruby version: ruby-2.0.0
-----> Installing dependencies using 1.6.3
Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
Your Gemfile lists the gem pg (>= 0) 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 just one of them later.
Fetching gem metadata from https://rubygems.org/.......
Fetching additional metadata from https://rubygems.org/..
Fetching git://github.com/heroku/rails3_serve_static_assets.git
Fetching git://github.com/heroku/rails_log_stdout.git
Installing multi_json 1.10.1
Installing i18n 0.6.9
Installing rake 10.3.2
Installing builder 3.0.4
Installing journey 1.0.4
Installing erubis 2.7.0
Installing hike 1.2.3
Installing rack 1.4.5
Installing tilt 1.4.1
Installing polyglot 0.3.5
Installing mime-types 1.25.1
Installing arel 3.0.3
Installing acts_as_indexed 0.8.3
Installing addressable 2.3.6
Installing babosa 0.3.11
Installing tzinfo 0.3.39
Installing coffee-script-source 1.7.0
Installing execjs 2.2.1
Installing thor 0.19.1
Installing orm_adapter 0.5.0
Installing excon 0.37.0
Installing formatador 0.2.5
Installing json 1.8.1
Installing bcrypt 3.1.7
Installing inflecto 0.0.2
Installing ipaddress 0.8.0
Installing net-ssh 2.9.1
Installing mini_portile 0.6.0
Installing netrc 0.7.7
Using bundler 1.6.3
Using rails3_serve_static_assets 0.0.1 from git://github.com/heroku/rails3_serve_static_assets.git (at master)
Installing rubyzip 1.1.4
Installing rails_serve_static_assets 0.0.2
Using rails_log_stdout 0.0.1 from git://github.com/heroku/rails_log_stdout.git (at master)
Installing rails_stdout_logging 0.0.3
Installing truncate_html 0.9.2
Installing sass 3.3.9
Installing will_paginate 3.0.6
Installing fog-json 1.0.0
Installing activesupport 3.2.18
Installing rails-i18n 0.7.4
Installing rack-test 0.6.2
Installing rack-cache 1.2
Installing rack-ssl 1.3.4
Installing warden 1.2.3
Installing sprockets 2.2.2
Installing dragonfly 0.9.15
Installing treetop 1.4.15
Installing rest-client 1.6.7
Installing launchy 2.4.2
Installing coffee-script 2.2.0
Installing heroku-api 0.3.18
Installing rdoc 3.12.2
Installing uglifier 2.5.1
Installing bcrypt-ruby 3.1.5
Installing net-scp 1.2.1
Installing rails_12factor 0.0.2
Installing activemodel 3.2.18
Installing mail 2.5.4
Installing heroku 3.8.4
Installing fog-core 1.22.0
Installing actionpack 3.2.18
Installing activerecord 3.2.18
Installing activeresource 3.2.18
Installing fog-brightbox 0.1.0
Installing actionmailer 3.2.18
Installing railties 3.2.18
Installing routing-filter 0.3.1
Installing pg 0.17.1
Installing awesome_nested_set 2.1.6
Installing friendly_id 4.0.10.1
Installing globalize 3.1.0
Installing coffee-rails 3.2.2
Installing decorators 1.0.3
Installing devise 2.2.8
Installing jquery-rails 2.3.0
Installing rails 3.2.18
Installing sass-rails 3.2.6
Installing seo_meta 1.4.0
Installing refinerycms-i18n 2.1.0
Installing refinerycms-core 2.1.2
Installing refinerycms-dashboard 2.1.2
Installing refinerycms-authentication 2.1.2
Installing refinerycms-images 2.1.2
Installing refinerycms-pages 2.1.2
Installing refinerycms-resources 2.1.2
Installing refinerycms-acts-as-indexed 1.0.0
Installing refinerycms 2.1.2
Installing nokogiri 1.6.2.1
Installing fog 1.22.1
Your bundle is complete!
Gems in the groups development and test were not installed.
It was installed into ./vendor/bundle
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!
Post-install message from bcrypt-ruby:
#######################################################
The bcrypt-ruby gem has changed its name to just bcrypt. Instead of
installing `bcrypt-ruby`, you should install `bcrypt`. Please update your
dependencies accordingly.
#######################################################
Post-install message from heroku:
! The `heroku` gem has been deprecated and replaced with the Heroku Toolbelt.
! Download and install from: https://toolbelt.heroku.com
! For API access, see: https://github.com/heroku/heroku.rb
Post-install message from friendly_id:
NOTE: FriendlyId 4.x breaks compatibility with 3.x. If you're upgrading
from 3.x, please see this document:
http://rubydoc.info/github/norman/friendly_id/master/file/WhatsNew.md
Post-install message from globalize:
Globalize has extracted versioning support to a separate gem named
globalize-versioning. If you are using versioning (with paper_trail
or any other versioning gem), please add the line
"gem 'globalize-versioning'" to your Gemfile and go to the github
page at globalize/globalize-versioning if you encounter any problems.
Note that the globalize-versioning gem does not delegate versions to
the translation table, so you will have to update your syntax to
the form: `post.translation.versions`. See the globalize-versioning
readme for details.
Bundle completed (31.77s)
Cleaning up the bundler cache.
-----> Writing config/database.yml to read from DATABASE_URL
-----> Preparing app for Rails asset pipeline
Running: rake assets:precompile
Compiled jquery.js (4ms) (pid 1429)
Compiled jquery_ujs.js (0ms) (pid 1429)
Compiled application.js (15ms) (pid 1429)
Compiled application.css (0ms) (pid 1429)
Compiled jquery.js (5ms) (pid 1429)
Compiled jquery_ujs.js (0ms) (pid 1429)
Compiled application.js (69ms) (pid 1429)
Compiled application.css (0ms) (pid 1429)
Asset precompilation completed (18.38s)
-----> WARNINGS:
You have not declared a Ruby version in your Gemfile.
To set your Ruby version add this line to your Gemfile:
ruby '2.0.0'
# See https://devcenter.heroku.com/articles/ruby-versions for more information.
No Procfile detected, using the default web server (webrick)
https://devcenter.heroku.com/articles/ruby-default-web-server
-----> Discovering process types
Procfile declares types -> (none)
Default types for Ruby -> console, rake, web, worker
-----> Compressing... done, 27.3MB
-----> Launching... done, v6
http://stormy-caverns-7064.herokuapp.com/ deployed to Heroku
To git#heroku.com:stormy-caverns-7064.git
* [new branch] master -> master
ark#ark-Aspire-5750G:~/mirprirodi$ heroku open
Opening stormy-caverns-7064... done
ark#ark-Aspire-5750G:~/mirprirodi$
I added to my new RoR application - gem twitter bootstrap. I used CSS stylesheets
gem "twitter-bootstrap-rails"
rails generate bootstrap:install static
I changed my GEMFILE
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
gem 'uglifier', '>= 1.0.3'
gem "twitter-bootstrap-rails"
end
And when I deployed my app on Heroku, I received this log
Delta compression using up to 4 threads.
Compressing objects: 100% (59/59), done.
Writing objects: 100% (70/70), 26.75 KiB, done.
Total 70 (delta 4), reused 0 (delta 0)
-----> Ruby/Rails app detected
-----> Installing dependencies using Bundler version 1.3.0.pre.5
Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin --deployment
Fetching gem metadata from https://rubygems.org/.........
Fetching gem metadata from https://rubygems.org/..
Installing rake (10.0.3)
Installing i18n (0.6.1)
Installing multi_json (1.5.0)
Installing activesupport (3.2.9.rc2)
Installing builder (3.0.4)
Installing activemodel (3.2.9.rc2)
Installing erubis (2.7.0)
Installing journey (1.0.4)
Installing rack (1.4.3)
Installing rack-cache (1.2)
Installing rack-test (0.6.2)
Installing hike (1.2.1)
Installing tilt (1.3.3)
Installing sprockets (2.8.2)
Installing actionpack (3.2.9.rc2)
Installing mime-types (1.19)
Installing polyglot (0.3.3)
Installing treetop (1.4.12)
Installing mail (2.4.4)
Installing actionmailer (3.2.9.rc2)
Installing arel (3.0.2)
Installing tzinfo (0.3.35)
Installing activerecord (3.2.9.rc2)
Installing activeresource (3.2.9.rc2)
Installing coffee-script-source (1.4.0)
Installing execjs (1.4.0)
Installing coffee-script (2.2.0)
Installing rack-ssl (1.3.2)
Installing json (1.7.6)
Installing rdoc (3.12)
Installing thor (0.16.0)
Installing railties (3.2.9.rc2)
Installing coffee-rails (3.2.2)
Installing commonjs (0.2.6)
Installing jquery-rails (2.1.4)
Installing less (2.2.2)
Installing less-rails (2.2.6)
Installing libv8 (3.11.8.13)
Using bundler (1.3.0.pre.5)
Installing rails (3.2.9.rc2)
Installing ref (1.0.2)
Installing sass (3.2.5)
Installing sass-rails (3.2.5)
Installing therubyracer (0.11.2)
Installing twitter-bootstrap-rails (2.2.0)
Installing uglifier (1.3.0)
Your bundle is complete! It was installed into ./vendor/bundle
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!
Post-install message from twitter-bootstrap-rails:
Important: You may need to add a javascript runtime to your Gemfile in order for bootstrap's LESS files to compile to CSS.
**********************************************
ExecJS supports these runtimes:
therubyracer - Google V8 embedded within Ruby
therubyrhino - Mozilla Rhino embedded within JRuby
Node.js
Apple JavaScriptCore - Included with Mac OS X
Microsoft Windows Script Host (JScript)
**********************************************
Cleaning up the bundler cache.
-----> Writing config/database.yml to read from DATABASE_URL
-----> Preparing app for Rails asset pipeline
Running: rake assets:precompile
Asset precompilation completed (25.98s)
-----> Rails plugin injection
Injecting rails_log_stdout
Injecting rails3_serve_static_assets
-----> Discovering process types
Procfile declares types -> (none)
Default types for Ruby/Rails -> console, rake, web, worker
-----> Compiled slug size: 15.9MB
-----> Launching... done, v6
http://rocky-badlands-2634.herokuapp.com deployed to Heroku
When I start my app, I receive message - "We're sorry, but something went wrong."
I think maybe it's connected with this message in log
Post-install message from twitter-bootstrap-rails:
Important: You may need to add a javascript runtime to your Gemfile in order for bootstrap's LESS files to compile to CSS.
If I use the Less stylesheets I also receive this message
Rails uses SASS instead of LESS. You will have to install the less-rails gem to have LESS support.
Following the twitter-bootstrap-rails instructions you will end up with:
gem "therubyracer"
gem "less-rails"
gem "twitter-bootstrap-rails"
installed out of the assets group. This might solve your problem.
Just add this to the Gemfile
gem 'twitter-bootstrap-rails', '2.1.3'
and then do
bundle install
and then push to heroku