Hi I am beginner for ROR deployment. I tried heroku deployment. But it's not working. I my gem file I have put following gems
source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.1.8'
# Use sqlite3 as the database for Active Record
group :production, :staging do
gem "pg"
end
group :development, :test do
gem "sqlite3"
end
# Use SCSS for stylesheets
gem 'sass-rails', '~> 4.0.3'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Use CoffeeScript for .js.coffee assets and views
gem 'coffee-rails', '~> 4.0.0'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby
# Use jquery as the JavaScript library
gem 'jquery-rails'
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
gem 'turbolinks'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.0'
# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', '~> 0.4.0', group: :doc
gem 'byebug'
# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'
# Use unicorn as the app server
# gem 'unicorn'
# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development
# Use debugger
# gem 'debugger', group: [:development, :test]
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin]
gem 'coffee-script-source', '1.8.0'
gem 'bcrypt'
My database.yml looks like
# SQLite version 3.x
# gem install sqlite3
#
# Ensure the SQLite 3 gem is defined in your Gemfile
# gem 'sqlite3'
#
default: &default
adapter: sqlite3
pool: 5
timeout: 5000
development:
<<: *default
database: db/development.sqlite3
# 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:
<<: *default
database: db/test.sqlite3
production:
adapter: postgresql
database: db/production.sqlite3
pool: 5
timeout: 5000
I am getting following error on heroku console:
-----> Ruby app detected
-----> Compiling Ruby/Rails
-----> Using Ruby version: ruby-2.0.0
###### 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 1.9.7
Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4
Fetching gem metadata from https://rubygems.org/............
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
Resolving dependencies...
Rubygems 2.0.14 is not threadsafe, so your gems must be installed one at a time. Upgrade to Rubygems 2.1.0 or higher to enable parallel gem installation.
Installing rake 10.4.2
Installing i18n 0.7.0
Installing json 1.8.3
Installing minitest 5.7.0
Installing thread_safe 0.3.5
Installing tzinfo 1.2.2
Installing activesupport 4.1.8
Installing builder 3.2.2
Installing erubis 2.7.0
Installing actionview 4.1.8
Installing rack 1.5.5
Installing rack-test 0.6.3
Installing actionpack 4.1.8
Installing mime-types 2.6.1
Installing mail 2.6.3
Installing actionmailer 4.1.8
Installing activemodel 4.1.8
Installing arel 5.0.1.20140414130214
Installing activerecord 4.1.8
Installing bcrypt 3.1.10
Using bundler 1.9.7
Installing columnize 0.9.0
Installing byebug 5.0.0
Installing coffee-script-source 1.8.0
Installing execjs 2.5.2
Installing coffee-script 2.4.1
Installing thor 0.19.1
Installing railties 4.1.8
Installing coffee-rails 4.0.1
Installing hike 1.2.3
Installing multi_json 1.11.2
Installing jbuilder 2.3.1
Installing jquery-rails 3.1.3
Installing pg 0.18.2
Installing tilt 1.4.1
Installing sprockets 2.12.4
Installing sprockets-rails 2.3.2
Installing rails 4.1.8
Installing rdoc 4.2.0
Installing sass 3.2.19
Installing sass-rails 4.0.5
Installing sdoc 0.4.1
Installing turbolinks 2.5.3
Installing uglifier 2.7.1
Bundle complete! 14 Gemfile dependencies, 44 gems now installed.
Gems in the groups development and test were not installed.
Bundled gems are 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!
Bundle completed (52.02s)
Cleaning up the bundler cache.
-----> Preparing app for Rails asset pipeline
Running: rake assets:precompile
DEPRECATION WARNING: Paths in SQLite3 database URLs of the form `sqlite3:///path` will be treated as absolute in Rails 4.2. Please switch to `sqlite3:dbname`. (called from <top (required)> at /tmp/build_7c327500f441bbe0f5ec1b5b2f7a306a/Rakefile:6)
rake aborted!
Gem::LoadError: Specified 'sqlite3' for database adapter, but the gem is not loaded. Add `gem 'sqlite3'` to your Gemfile (and ensure its version is at the minimum required by ActiveRecord).
/tmp/build_7c327500f441bbe0f5ec1b5b2f7a306a/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.8/lib/active_record/connection_adapters/connection_specification.rb:190:in `rescue in spec'
/tmp/build_7c327500f441bbe0f5ec1b5b2f7a306a/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.8/lib/active_record/connection_adapters/connection_specification.rb:187:in `spec'
/tmp/build_7c327500f441bbe0f5ec1b5b2f7a306a/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.8/lib/active_record/connection_handling.rb:50:in `establish_connection'
/tmp/build_7c327500f441bbe0f5ec1b5b2f7a306a/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.8/lib/active_record/railtie.rb:129:in `block (2 levels) in <class:Railtie>'
/tmp/build_7c327500f441bbe0f5ec1b5b2f7a306a/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/lazy_load_hooks.rb:38:in `instance_eval'
/tmp/build_7c327500f441bbe0f5ec1b5b2f7a306a/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/lazy_load_hooks.rb:38:in `execute_hook'
/tmp/build_7c327500f441bbe0f5ec1b5b2f7a306a/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/lazy_load_hooks.rb:28:in `block in on_load'
/tmp/build_7c327500f441bbe0f5ec1b5b2f7a306a/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/lazy_load_hooks.rb:27:in `each'
/tmp/build_7c327500f441bbe0f5ec1b5b2f7a306a/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/lazy_load_hooks.rb:27:in `on_load'
/tmp/build_7c327500f441bbe0f5ec1b5b2f7a306a/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.8/lib/active_record/railtie.rb:118:in `block in <class:Railtie>'
/tmp/build_7c327500f441bbe0f5ec1b5b2f7a306a/vendor/bundle/ruby/2.0.0/gems/railties-4.1.8/lib/rails/initializable.rb:30:in `instance_exec'
/tmp/build_7c327500f441bbe0f5ec1b5b2f7a306a/vendor/bundle/ruby/2.0.0/gems/railties-4.1.8/lib/rails/initializable.rb:30:in `run'
/tmp/build_7c327500f441bbe0f5ec1b5b2f7a306a/vendor/bundle/ruby/2.0.0/gems/railties-4.1.8/lib/rails/initializable.rb:55:in `block in run_initializers'
/tmp/build_7c327500f441bbe0f5ec1b5b2f7a306a/vendor/bundle/ruby/2.0.0/gems/railties-4.1.8/lib/rails/initializable.rb:54:in `run_initializers'
/tmp/build_7c327500f441bbe0f5ec1b5b2f7a306a/vendor/bundle/ruby/2.0.0/gems/railties-4.1.8/lib/rails/application.rb:300:in `initialize!'
/tmp/build_7c327500f441bbe0f5ec1b5b2f7a306a/config/environment.rb:5:in `<top (required)>'
/tmp/build_7c327500f441bbe0f5ec1b5b2f7a306a/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:247:in `require'
/tmp/build_7c327500f441bbe0f5ec1b5b2f7a306a/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:247:in `block in require'
/tmp/build_7c327500f441bbe0f5ec1b5b2f7a306a/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:232:in `load_dependency'
/tmp/build_7c327500f441bbe0f5ec1b5b2f7a306a/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:247:in `require'
/tmp/build_7c327500f441bbe0f5ec1b5b2f7a306a/vendor/bundle/ruby/2.0.0/gems/railties-4.1.8/lib/rails/application.rb:276:in `require_environment!'
/tmp/build_7c327500f441bbe0f5ec1b5b2f7a306a/vendor/bundle/ruby/2.0.0/gems/railties-4.1.8/lib/rails/application.rb:389:in `block in run_tasks_blocks'
/tmp/build_7c327500f441bbe0f5ec1b5b2f7a306a/vendor/bundle/ruby/2.0.0/gems/sprockets-rails-2.3.2/lib/sprockets/rails/task.rb:64:in `block (2 levels) in define'
Tasks: TOP => environment
(See full trace by running task with --trace)
!
! Precompiling assets failed.
!
! Push rejected, failed to compile Ruby app
I am using windows os for the development.
I am not able to figure it out what is the error? Need some help. Thank you.
After Adding rails_12factor into gem file I am getting following error on heroku logs
-----> Ruby app detected
-----> Compiling Ruby/Rails
-----> Using Ruby version: ruby-2.0.0
###### 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 1.9.7
Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4
Fetching gem metadata from https://rubygems.org/............
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
Resolving dependencies....
Rubygems 2.0.14 is not threadsafe, so your gems must be installed one at a time. Upgrade to Rubygems 2.1.0 or higher to enable parallel gem installation.
Installing rake 10.4.2
Installing i18n 0.7.0
Installing json 1.8.3
Installing minitest 5.7.0
Installing thread_safe 0.3.5
Installing tzinfo 1.2.2
Installing activesupport 4.1.8
Installing builder 3.2.2
Installing erubis 2.7.0
Installing actionview 4.1.8
Installing rack 1.5.5
Installing rack-test 0.6.3
Installing actionpack 4.1.8
Installing mime-types 2.6.1
Installing mail 2.6.3
Installing actionmailer 4.1.8
Installing activemodel 4.1.8
Installing arel 5.0.1.20140414130214
Installing activerecord 4.1.8
Installing bcrypt 3.1.10
Using bundler 1.9.7
Installing columnize 0.9.0
Installing byebug 5.0.0
Installing coffee-script-source 1.8.0
Installing execjs 2.5.2
Installing coffee-script 2.4.1
Installing thor 0.19.1
Installing railties 4.1.8
Installing coffee-rails 4.0.1
Installing hike 1.2.3
Installing multi_json 1.11.2
Installing jbuilder 2.3.1
Installing jquery-rails 3.1.3
Installing pg 0.18.2
Installing tilt 1.4.1
Installing sprockets 2.12.4
Installing sprockets-rails 2.3.2
Installing rails 4.1.8
Installing rdoc 4.2.0
Installing sass 3.2.19
Installing sass-rails 4.0.5
Installing sdoc 0.4.1
Installing turbolinks 2.5.3
Installing uglifier 2.7.1
Bundle complete! 15 Gemfile dependencies, 44 gems now installed.
Gems in the groups development and test were not installed.
Bundled gems are 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!
Bundle completed (57.99s)
Cleaning up the bundler cache.
-----> Preparing app for Rails asset pipeline
Running: rake assets:precompile
DEPRECATION WARNING: Paths in SQLite3 database URLs of the form `sqlite3:///path` will be treated as absolute in Rails 4.2. Please switch to `sqlite3:dbname`. (called from <top (required)> at /tmp/build_0e966ea42527f491d64dc7a384ec85b6/Rakefile:6)
rake aborted!
Gem::LoadError: Specified 'sqlite3' for database adapter, but the gem is not loaded. Add `gem 'sqlite3'` to your Gemfile (and ensure its version is at the minimum required by ActiveRecord).
/tmp/build_0e966ea42527f491d64dc7a384ec85b6/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.8/lib/active_record/connection_adapters/connection_specification.rb:190:in `rescue in spec'
/tmp/build_0e966ea42527f491d64dc7a384ec85b6/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.8/lib/active_record/connection_adapters/connection_specification.rb:187:in `spec'
/tmp/build_0e966ea42527f491d64dc7a384ec85b6/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.8/lib/active_record/connection_handling.rb:50:in `establish_connection'
/tmp/build_0e966ea42527f491d64dc7a384ec85b6/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.8/lib/active_record/railtie.rb:129:in `block (2 levels) in <class:Railtie>'
/tmp/build_0e966ea42527f491d64dc7a384ec85b6/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/lazy_load_hooks.rb:38:in `instance_eval'
/tmp/build_0e966ea42527f491d64dc7a384ec85b6/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/lazy_load_hooks.rb:38:in `execute_hook'
/tmp/build_0e966ea42527f491d64dc7a384ec85b6/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/lazy_load_hooks.rb:28:in `block in on_load'
/tmp/build_0e966ea42527f491d64dc7a384ec85b6/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/lazy_load_hooks.rb:27:in `each'
/tmp/build_0e966ea42527f491d64dc7a384ec85b6/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/lazy_load_hooks.rb:27:in `on_load'
/tmp/build_0e966ea42527f491d64dc7a384ec85b6/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.8/lib/active_record/railtie.rb:118:in `block in <class:Railtie>'
/tmp/build_0e966ea42527f491d64dc7a384ec85b6/vendor/bundle/ruby/2.0.0/gems/railties-4.1.8/lib/rails/initializable.rb:30:in `instance_exec'
/tmp/build_0e966ea42527f491d64dc7a384ec85b6/vendor/bundle/ruby/2.0.0/gems/railties-4.1.8/lib/rails/initializable.rb:30:in `run'
/tmp/build_0e966ea42527f491d64dc7a384ec85b6/vendor/bundle/ruby/2.0.0/gems/railties-4.1.8/lib/rails/initializable.rb:55:in `block in run_initializers'
/tmp/build_0e966ea42527f491d64dc7a384ec85b6/vendor/bundle/ruby/2.0.0/gems/railties-4.1.8/lib/rails/initializable.rb:54:in `run_initializers'
/tmp/build_0e966ea42527f491d64dc7a384ec85b6/vendor/bundle/ruby/2.0.0/gems/railties-4.1.8/lib/rails/application.rb:300:in `initialize!'
/tmp/build_0e966ea42527f491d64dc7a384ec85b6/config/environment.rb:5:in `<top (required)>'
/tmp/build_0e966ea42527f491d64dc7a384ec85b6/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:247:in `require'
/tmp/build_0e966ea42527f491d64dc7a384ec85b6/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:247:in `block in require'
/tmp/build_0e966ea42527f491d64dc7a384ec85b6/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:232:in `load_dependency'
/tmp/build_0e966ea42527f491d64dc7a384ec85b6/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:247:in `require'
/tmp/build_0e966ea42527f491d64dc7a384ec85b6/vendor/bundle/ruby/2.0.0/gems/railties-4.1.8/lib/rails/application.rb:276:in `require_environment!'
/tmp/build_0e966ea42527f491d64dc7a384ec85b6/vendor/bundle/ruby/2.0.0/gems/railties-4.1.8/lib/rails/application.rb:389:in `block in run_tasks_blocks'
/tmp/build_0e966ea42527f491d64dc7a384ec85b6/vendor/bundle/ruby/2.0.0/gems/sprockets-rails-2.3.2/lib/sprockets/rails/task.rb:64:in `block (2 levels) in define'
Tasks: TOP => environment
(See full trace by running task with --trace)
!
! Precompiling assets failed.
!
! Push rejected, failed to compile Ruby app
Its related to sqlite3.
You need to add the following into your gemfile and then bundle:
group :production do
gem 'rails_12factor', '0.0.2'
end
This will hopefully resolve your problem.
Related
I picked up a 4 year old project written in Ruby 2.1.3 and Rails 4.1.8.
Very few of the gems were versioned but I've managed to get the project running locally by installing mysql2 0.3.20 as suggested in multiple other threads. Doing this required me to (on MacOS) downgrade openssl and mysql with brew install mysql#57 and brew install openssl#10.
I could then install mysql2 with by passing the correct libraries to it:
gem install mysql2 -v 0.3.20 -- --with-mysql-config=/usr/local/opt/mysql#5.7/bin/mysql_config --with-ldflags=-L/usr/local/opt/openssl#1.0/lib --with-cppflags=-I/usr/local/opt/openssl#1.0/include
Everything works locally, all good.
I'm trying to deploy this project with Dokku on a Debian instance. Here's the readout from the push to dokku master including the error thrown when starting the Rails server:
Dev#Jordans-MacBook-Pro ~/runritewinDB2020 (master) $ git push dokku master
Enumerating objects: 1608, done.
Counting objects: 100% (1608/1608), done.
Delta compression using up to 4 threads
Compressing objects: 100% (975/975), done.
Writing objects: 100% (1608/1608), 14.90 MiB | 1.19 MiB/s, done.
Total 1608 (delta 611), reused 1520 (delta 554)
remote: Resolving deltas: 100% (611/611), done.
-----> Cleaning up...
-----> Building runrite from dockerfile...
remote: build context to Docker daemon 51.88MB
Step 1/17 : FROM ruby:2.1.3
---> e1f10119c75a
Step 2/17 : RUN apt-get install -y libpq-dev
---> Using cache
---> 18e44db81b01
Step 3/17 : RUN apt-get install -y libxml2-dev libxslt1-dev
---> Using cache
---> b753197bec2f
Step 4/17 : ENV RAILS_ENV production
---> Using cache
---> fe632f7c4b4f
Step 5/17 : ENV RACK_ENV production
---> Using cache
---> ebeb94b2a120
Step 6/17 : ENV RACK production
---> Using cache
---> 98942a7c066f
Step 7/17 : ENV DB_URL mysql://mysql:f7a080fdf10779b0#dokku-mysql-runrite-production:3306/runrite_production
---> Using cache
---> 0feff73f3952
Step 8/17 : ENV APP_HOME /myapp
---> Using cache
---> 472864c3692a
Step 9/17 : RUN mkdir $APP_HOME
---> Using cache
---> 8cf938f4771b
Step 10/17 : WORKDIR $APP_HOME
---> Using cache
---> 83c835ef8ba6
Step 11/17 : ADD Gemfile* $APP_HOME/
---> 687cafb12ca9
Step 12/17 : RUN bundle install
---> Running in df7a7d1b74a3
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and
installing your bundle as root will break this application for all non-root
users on this machine.
Fetching source index from https://rubygems.org/
Fetching git://github.com/activerecord-hackery/polyamorous.git
Fetching git://github.com/activeadmin/activeadmin.git
Fetching https://github.com/stripe/stripe-ruby
Installing rake 10.4.2
Installing CFPropertyList 2.2.8
Installing i18n 0.7.0
Installing json 1.8.3
Installing minitest 5.8.0
Installing thread_safe 0.3.5
Installing tzinfo 1.2.2
Installing activesupport 4.1.8
Installing builder 3.2.2
Installing erubis 2.7.0
Installing actionview 4.1.8
Installing rack 1.5.5
Installing rack-test 0.6.3
Installing actionpack 4.1.8
Installing mime-types 2.6.1
Installing mail 2.6.3
Installing actionmailer 4.1.8
Installing activemodel 4.1.8
Installing active_model_serializers 0.9.0
Installing arbre 1.0.3
Installing sass 3.2.19
Installing thor 0.19.1
Installing bourbon 3.2.4
Installing coffee-script-source 1.9.1.1
Installing execjs 2.6.0
Installing coffee-script 2.4.1
Installing railties 4.1.8
Installing coffee-rails 4.0.1
Installing formtastic 3.1.3
Installing formtastic_i18n 0.4.1
Installing has_scope 0.6.0
Installing responders 1.1.2
Installing inherited_resources 1.6.0
Installing jquery-rails 3.1.3
Installing jquery-ui-rails 5.0.5
Installing kaminari 0.16.3
Installing arel 5.0.1.20140414130214
Installing activerecord 4.1.8
Using bundler 1.7.4
Installing hike 1.2.3
Installing multi_json 1.11.2
Installing tilt 1.4.1
Installing sprockets 2.12.4
Installing sprockets-rails 2.3.2
Installing rails 4.1.8
Using polyamorous 1.3.3 from git://github.com/activerecord-hackery/polyamorous.git (at master)
Installing ransack 1.7.0
Installing sass-rails 4.0.5
Using activeadmin 1.0.0.pre1 from git://github.com/activeadmin/activeadmin.git (at master)
Installing addressable 2.3.6
Installing multipart-post 2.0.0
Installing avocado-docs 3.0.7
Installing mini_portile 0.6.0
Installing nokogiri 1.6.3.1
Installing aws-sdk-v1 1.56.0
Installing aws-sdk 1.56.0
Installing bcrypt 3.1.7
Installing coderay 1.1.0
Installing better_errors 2.0.0
Installing debug_inspector 0.0.2
Installing binding_of_caller 0.7.2
Installing columnize 0.8.9
Installing debugger-linecache 1.2.0
Installing slop 3.6.0
Installing byebug 3.5.1
Installing cancancan 1.9.2
Installing colorize 0.7.7
Installing net-ssh 2.9.2
Installing net-scp 1.2.1
Installing sshkit 1.7.1
Installing capistrano 3.4.0
Installing capistrano-bundler 1.1.3
Installing capistrano-rails 1.1.2
Installing capistrano-rbenv 2.0.2
Installing capistrano3-unicorn 0.2.1
Installing xpath 2.0.0
Installing capybara 2.4.4
Installing carrierwave 0.10.0
Installing streamio-ffmpeg 1.0.0
Installing carrierwave-video 0.5.6
Installing hitimes 1.2.2
Installing timers 4.0.1
Installing celluloid 0.16.0
Installing chartkick 1.3.2
Installing commonjs 0.2.7
Installing safe_yaml 1.0.4
Installing crack 0.4.2
Installing css_parser 1.3.7
Installing database_cleaner 1.3.0
Installing orm_adapter 0.5.0
Installing warden 1.2.3
Installing devise 3.4.0
Installing devise_invitable 1.4.1
Installing interception 0.5
Installing did_you_mean 0.9.6
Installing diff-lcs 1.2.5
Installing docile 1.1.5
Installing unf_ext 0.0.7.1
Installing unf 0.1.4
Installing domain_name 0.5.24
Installing launchy 2.4.2
Installing email_spec 1.6.0
Installing enumerize 0.9.0
Installing exception_notification 4.1.1
Installing excon 0.42.1
Installing fabrication 2.11.3
Installing faker 1.4.3
Installing faraday 0.9.0
Installing faraday_middleware 0.9.1
Installing ffi 1.9.6
Installing figaro 1.0.0
Installing fission 0.5.0
Installing formatador 0.2.5
Installing fog-core 1.27.2
Installing fog-xml 0.1.1
Installing fog-atmos 0.1.0
Installing fog-json 1.0.0
Installing inflecto 0.0.2
Installing fog-brightbox 0.7.1
Installing fog-ecloud 0.0.2
Installing fog-profitbricks 0.0.1
Installing fog-radosgw 0.0.3
Installing fog-sakuracloud 0.1.1
Installing fog-softlayer 0.3.25
Installing fog-storm_on_demand 0.1.0
Installing fog-terremark 0.0.3
Installing fog-vmfusion 0.0.1
Installing fog-voxel 0.0.2
Installing ipaddress 0.8.0
Installing fog 1.26.0
Installing font-awesome-rails 4.2.0.0
Installing rb-fsevent 0.9.4
Installing rb-inotify 0.9.5
Installing listen 2.7.11
Installing lumberjack 1.0.9
Installing method_source 0.8.2
Installing pry 0.10.1
Installing guard 2.6.1
Installing guard-bundler 2.0.0
Installing guard-rails 0.6.0
Installing rspec-support 3.1.2
Installing rspec-core 3.1.7
Installing rspec-expectations 3.1.2
Installing rspec-mocks 3.1.3
Installing rspec 3.1.0
Installing guard-rspec 4.3.1
Installing hashie 3.3.1
Installing htmlentities 4.3.4
Installing http-cookie 1.0.2
Installing multi_xml 0.5.5
Installing httparty 0.13.1
Installing jbuilder 2.2.3
Installing jwt 1.0.0
Installing kgio 2.9.2
Installing less 2.6.0
Installing less-rails 2.6.0
Installing libv8 3.16.14.7
Installing mysql2 0.3.20
Installing netrc 0.10.3
Installing oauth 0.4.7
Installing oauth2 1.0.0
Installing omniauth 1.2.2
Installing omniauth-oauth2 1.2.0
Installing omniauth-facebook 2.0.0
Installing omniauth-oauth 1.0.1
Installing omniauth-twitter 1.1.0
Installing owlcarousel-rails 1.1.3.3
Installing paper_trail 3.0.6
Installing premailer 1.8.6
Installing premailer-rails 1.8.2
Installing pry-byebug 2.0.0
Installing pry-rails 0.3.2
Installing puma 2.13.3
Installing pundit 0.3.0
Installing pushmeup 0.3.0
Installing rails-observers 0.1.2
Installing raindrops 0.13.0
Installing rb-fchange 0.0.6
Installing ref 1.0.5
Installing rest-client 1.8.0
Installing rmagick 2.15.0
Installing rspec-rails 3.1.0
Installing shoulda-context 1.2.1
Installing shoulda-matchers 2.7.0
Installing shoulda 3.5.0
Installing simple_form 3.1.0
Installing simplecov-html 0.8.0
Installing simplecov 0.9.1
Installing spring 1.1.3
Using stripe 1.26.0 from https://github.com/stripe/stripe-ruby (at master)
Installing therubyracer 0.12.1
Installing twitter-bootstrap-rails 3.2.0
Installing uglifier 2.5.3
Installing unicorn 4.8.3
Installing webmock 1.19.0
Installing yarjuf 2.0.0
Your bundle is complete!
It was installed into /usr/local/bundle
Post-install message from capistrano:
Capistrano 3.1 has some breaking changes. Please check the CHANGELOG: #Edited for shortened URL
If you're upgrading Capistrano from 2.x, we recommend to read the upgrade guide: # Remove shortened URL
The `deploy:restart` hook for passenger applications is now in a separate gem called capistrano-passenger. Just add it to your Gemfile and require it in your Capfile.
Post-install message from httparty:
When you HTTParty, you must party hard!
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)
**********************************************
Removing intermediate container df7a7d1b74a3
---> cab4f5704fc6
Step 13/17 : ADD . $APP_HOME
---> ffda2dba11f3
Step 14/17 : RUN bundle exec rails server
---> Running in 3079acec1dac
=> Booting Puma
=> Rails 4.1.8 application starting in production on http://0.0.0.0:3000
=> Run `rails server -h` for more startup options
=> Notice: server is listening on all interfaces (0.0.0.0). Consider using 127.0.0.1 (--binding option)
=> Ctrl-C to shutdown server
Exiting
/usr/local/bundle/gems/activerecord-4.1.8/lib/active_record/connection_adapters/connection_specification.rb:190:in `rescue in spec': Specified 'mysql' for database adapter, but the gem is not loaded. Add `gem 'mysql'` to your Gemfile (and ensure its version is at the minimum required by ActiveRecord). (Gem::LoadError)
remote: from /usr/local/bundle/gems/activerecord-4.1.8/lib/active_record/connection_adapters/connection_specification.rb:187:in `spec'
remote: from /usr/local/bundle/gems/activerecord-4.1.8/lib/active_record/connection_handling.rb:50:in `establish_connection'
remote: from /usr/local/bundle/gems/activerecord-4.1.8/lib/active_record/railtie.rb:129:in `block (2 levels) in <class:Railtie>'
remote: from /usr/local/bundle/gems/activesupport-4.1.8/lib/active_support/lazy_load_hooks.rb:38:in `instance_eval'
remote: from /usr/local/bundle/gems/activesupport-4.1.8/lib/active_support/lazy_load_hooks.rb:38:in `execute_hook'
remote: from /usr/local/bundle/gems/activesupport-4.1.8/lib/active_support/lazy_load_hooks.rb:28:in `block in on_load'
remote: from /usr/local/bundle/gems/activesupport-4.1.8/lib/active_support/lazy_load_hooks.rb:27:in `each'
remote: from /usr/local/bundle/gems/activesupport-4.1.8/lib/active_support/lazy_load_hooks.rb:27:in `on_load'
remote: from /usr/local/bundle/gems/activerecord-4.1.8/lib/active_record/railtie.rb:118:in `block in <class:Railtie>'
remote: from /usr/local/bundle/gems/railties-4.1.8/lib/rails/initializable.rb:30:in `instance_exec'
remote: from /usr/local/bundle/gems/railties-4.1.8/lib/rails/initializable.rb:30:in `run'
remote: from /usr/local/bundle/gems/railties-4.1.8/lib/rails/initializable.rb:55:in `block in run_initializers'
remote: from /usr/local/lib/ruby/2.1.0/tsort.rb:226:in `block in tsort_each'
remote: from /usr/local/lib/ruby/2.1.0/tsort.rb:348:in `block (2 levels) in each_strongly_connected_component'
remote: from /usr/local/lib/ruby/2.1.0/tsort.rb:427:in `each_strongly_connected_component_from'
remote: from /usr/local/lib/ruby/2.1.0/tsort.rb:347:in `block in each_strongly_connected_component'
remote: from /usr/local/lib/ruby/2.1.0/tsort.rb:345:in `each'
remote: from /usr/local/lib/ruby/2.1.0/tsort.rb:345:in `call'
remote: from /usr/local/lib/ruby/2.1.0/tsort.rb:345:in `each_strongly_connected_component'
remote: from /usr/local/lib/ruby/2.1.0/tsort.rb:224:in `tsort_each'
remote: from /usr/local/lib/ruby/2.1.0/tsort.rb:205:in `tsort_each'
remote: from /usr/local/bundle/gems/railties-4.1.8/lib/rails/initializable.rb:54:in `run_initializers'
remote: from /usr/local/bundle/gems/railties-4.1.8/lib/rails/application.rb:300:in `initialize!'
remote: from /myapp/config/environment.rb:5:in `<top (required)>'
remote: from /usr/local/bundle/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:247:in `require'
remote: from /usr/local/bundle/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:247:in `block in require'
remote: from /usr/local/bundle/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:232:in `load_dependency'
remote: from /usr/local/bundle/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:247:in `require'
remote: from /myapp/config.ru:3:in `block in <main>'
remote: from /usr/local/bundle/gems/rack-1.5.5/lib/rack/builder.rb:55:in `instance_eval'
remote: from /usr/local/bundle/gems/rack-1.5.5/lib/rack/builder.rb:55:in `initialize'
remote: from /myapp/config.ru:in `new'
remote: from /myapp/config.ru:in `<main>'
remote: from /usr/local/bundle/gems/rack-1.5.5/lib/rack/builder.rb:49:in `eval'
remote: from /usr/local/bundle/gems/rack-1.5.5/lib/rack/builder.rb:49:in `new_from_string'
remote: from /usr/local/bundle/gems/rack-1.5.5/lib/rack/builder.rb:40:in `parse_file'
remote: from /usr/local/bundle/gems/rack-1.5.5/lib/rack/server.rb:277:in `build_app_and_options_from_config'
remote: from /usr/local/bundle/gems/rack-1.5.5/lib/rack/server.rb:199:in `app'
remote: from /usr/local/bundle/gems/railties-4.1.8/lib/rails/commands/server.rb:50:in `app'
remote: from /usr/local/bundle/gems/rack-1.5.5/lib/rack/server.rb:314:in `wrapped_app'
remote: from /usr/local/bundle/gems/rack-1.5.5/lib/rack/server.rb:250:in `start'
remote: from /usr/local/bundle/gems/railties-4.1.8/lib/rails/commands/server.rb:69:in `start'
remote: from /usr/local/bundle/gems/railties-4.1.8/lib/rails/commands/commands_tasks.rb:81:in `block in server'
remote: from /usr/local/bundle/gems/railties-4.1.8/lib/rails/commands/commands_tasks.rb:76:in `tap'
remote: from /usr/local/bundle/gems/railties-4.1.8/lib/rails/commands/commands_tasks.rb:76:in `server'
remote: from /usr/local/bundle/gems/railties-4.1.8/lib/rails/commands/commands_tasks.rb:40:in `run_command!'
remote: from /usr/local/bundle/gems/railties-4.1.8/lib/rails/commands.rb:17:in `<top (required)>'
remote: from bin/rails:4:in `require'
remote: from bin/rails:4:in `<main>'
remote: The command '/bin/sh -c bundle exec rails server' returned a non-zero code: 1
Dockerfile:
FROM ruby:2.1.3
RUN apt-get install -y libpq-dev
RUN apt-get install -y libxml2-dev libxslt1-dev
ENV RAILS_ENV production
ENV RACK_ENV production
ENV RACK production
ENV DB_URL mysql://mysql:f7a080fdf10779b0#dokku-mysql-runrite-production:3306/runrite_production
# for a JS runtime
RUN apt-get install -y nodejs
ENV APP_HOME /myapp
RUN mkdir $APP_HOME
WORKDIR $APP_HOME
ADD Gemfile* $APP_HOME/
RUN bundle install
ADD . $APP_HOME
RUN bundle exec rails server
database.yml:
development:
adapter: mysql2
database: runrite-web_development
username: root
password:
host: localhost
socket: /tmp/mysql.sock
# 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: mysql2
database: db/runrite-web_test.sql
username: root
password:
host: localhost
socket: /tmp/mysql.sock
timeout: 10000
production: &production
adapter: mysql2
encoding: utf8mb4
charset: utf8mb4
collation: utf8mb4_unicode_ci
port: 3306
database: runrite_production
url: <%= ENV['DB_URL'] %>
pool: 25
staging:
<<: *production
Gemfile:
source 'https://rubygems.org'
ruby '2.1.3'
# TODO: put versions on most of these gems
# Core
gem 'rails', '4.1.8'
gem 'mysql2', '0.3.20'
# gem 'mysql'
# Deployment
gem 'capistrano', '~> 3.4.0', require: false
gem 'capistrano-rbenv', '~> 2.0'
gem 'capistrano-rails', '~> 1.1', require: false
gem 'capistrano-bundler', '~> 1.1', require: false
gem 'capistrano3-unicorn', require: false
gem "active_model_serializers"
gem "activeadmin", github: 'activeadmin'
gem "avocado-docs"
gem "aws-sdk"
# gem 'aws-healthcheck'
gem "cancancan"
gem "carrierwave"
gem "carrierwave-video"
gem "devise"
gem "devise_invitable"
gem 'enumerize'
gem "faraday"
gem "faraday_middleware"
gem 'fog'
gem 'font-awesome-rails'
gem "has_scope"
gem 'rmagick'
# gem 'mini_magick'
# gem 'imagemagick-binaries'
gem "omniauth"
gem "omniauth-facebook"
gem "omniauth-twitter"
gem "paper_trail"
gem "polyamorous", github: "activerecord-hackery/polyamorous"
gem "pundit"
gem "pushmeup"
gem "rails-observers"
gem "responders"
gem "therubyracer"
gem "less-rails" #Sprockets (what Rails 3.1 uses for its asset pipeline) supports LESS
gem "twitter-bootstrap-rails"
gem 'coffee-rails', '~> 4.0.0'
gem 'figaro'
gem 'jbuilder', '~> 2.0'
gem 'jquery-rails'
gem 'sass-rails', '~> 4.0.3'
gem 'spring', group: :development
gem 'simple_form'
# gem 'turbolinks'
gem 'uglifier', '>= 1.3.0'
gem 'unicorn'
gem 'yarjuf'
gem 'owlcarousel-rails'
gem "chartkick"
gem 'premailer-rails'
gem 'nokogiri'
# E-Commerce
gem 'stripe', :git => 'https://github.com/stripe/stripe-ruby'
group :development, :test do
gem "rspec-rails"
gem 'pry-rails'
gem 'pry-byebug'
gem 'shoulda'
gem 'did_you_mean', '~> 0.9.4'
gem "guard"
gem "guard-rspec"
end
group :test do
gem "capybara"
gem "fabrication"
gem "database_cleaner"
gem "email_spec"
gem 'simplecov', require: false
gem 'webmock'
# gem 'capybara-webkit'
gem "faker"
end
group :development do
gem "puma", '~> 2.13.3'
gem "better_errors"
gem "binding_of_caller"
gem "guard-bundler"
gem "guard-rails"
gem "rb-fchange", require: false
gem "rb-fsevent", require: false
gem "rb-inotify", require: false
end
group :production do
# gem 'logglier', '~> 0.2.11' # sending logs to loggly.com
# gem 'lograge', '~> 0.3.4' # abbreviated rails logs
gem 'exception_notification', '~> 4.1.1' # notification of exceptions via email
end
# gem 'elbas', github: 'lserman/capistrano-elbas'
Debian instance info:
Static hostname: debian-1cpu-1gb-us-chi1
Icon name: computer-vm
Chassis: vm
Machine ID: 0072a07a9c1349898ba2e35eb78cd8d2
Boot ID: bfb5d8b9d8cf42d4b766b5089a926016
Virtualization: kvm
Operating System: Debian GNU/Linux 10 (buster)
Kernel: Linux 4.19.0-9-amd64
Architecture: x86-64
OpenSSL version:
OpenSSL 1.1.1d 10 Sep 2019
Dokku MYSQL plugin MYSQL version:
5.7.28
I'm thinking I need to figure out how to build the mysql2 gem with the correct version of openSSL on the debian instance but I'm at a bit of a loss on how I would do that. The mysql2 gem install blew up locally until I installed it with the optional arguments mentioned at the top. The mysql2 gem version installs fine on the debian instance. Any help would be appreciated.
I think I see what's going on. In your Dockerfile, change your DB_URL from: mysql:// to mysql2://
You are loading the mysql2 gem, but indicating to ActiveRecord that you want to use a connection via the mysql gem.
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 am new to ruby, and is following some guide on first deploy of a website. I find it difficult to follow exactly what the author said since it has been written for quite a while.
Here is what happens after I typed in git push heroku master
Counting objects: 68, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (57/57), done.
Writing objects: 100% (68/68), 17.29 KiB | 0 bytes/s, done.
Total 68 (delta 5), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Ruby app detected
remote: -----> Compiling Ruby/Rails
remote: -----> Using Ruby version: ruby-2.2.6
remote: -----> Installing dependencies using bundler 1.13.7
remote: Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
remote: Warning: the running version of Bundler (1.13.7) is older than the version that created the lockfile (1.14.4). We suggest you upgrade to the latest version of Bundler by running `gem install bundler`.
remote: Fetching gem metadata from https://rubygems.org/..........
remote: Fetching version metadata from https://rubygems.org/..
remote: Fetching dependency metadata from https://rubygems.org/.
remote: Installing i18n 0.8.1
remote: Installing rake 12.0.0
remote: Installing json 1.8.6 with native extensions
remote: Installing minitest 5.10.1
remote: Installing thread_safe 0.3.6
remote: Installing builder 3.2.3
remote: Installing erubis 2.7.0
remote: Installing mini_portile2 2.1.0
remote: Installing rack 1.6.5
remote: Installing arel 6.0.4
remote: Installing mime-types-data 3.2016.0521
remote: Installing execjs 2.7.0
remote: Installing coffee-script-source 1.12.2
remote: Installing thor 0.19.4
remote: Installing concurrent-ruby 1.0.5
remote: Installing multi_json 1.12.1
remote: Installing pg 0.20.0 with native extensions
remote: Using bundler 1.13.7
remote: Installing rails_serve_static_assets 0.0.5
remote: Installing rails_stdout_logging 0.0.5
remote: Installing rdoc 4.3.0
remote: Installing sass 3.4.23
remote: Installing tilt 1.4.1
remote: Installing turbolinks-source 5.0.0
remote: Installing tzinfo 1.2.3
remote: Installing nokogiri 1.7.1 with native extensions
remote: Installing rack-test 0.6.3
remote: Installing mime-types 3.1
remote: Installing coffee-script 2.4.1
remote: Installing uglifier 1.3.0
remote: Installing sprockets 3.7.1
remote: Installing rails_12factor 0.0.3
remote: Installing turbolinks 5.0.1
remote: Installing mail 2.6.4
remote: Installing loofah 2.0.3
remote: Installing rails-html-sanitizer 1.0.3
remote: Installing sdoc 0.4.0
remote: Installing activesupport 4.2.5
remote: Installing globalid 0.3.7
remote: Installing rails-deprecated_sanitizer 1.0.3
remote: Installing activemodel 4.2.5
remote: Installing jbuilder 2.0.0
remote: Installing activejob 4.2.5
remote: Installing rails-dom-testing 1.0.8
remote: Installing activerecord 4.2.5
remote: Installing actionview 4.2.5
remote: Installing actionpack 4.2.5
remote: Installing sprockets-rails 3.2.0
remote: Installing actionmailer 4.2.5
remote: Installing railties 4.2.5
remote: Installing coffee-rails 4.1.0
remote: Installing sass-rails 5.0.0
remote: Installing jquery-rails 4.3.1
remote: Installing rails 4.2.5
remote: Bundle complete! 14 Gemfile dependencies, 54 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 (23.25s)
remote: Cleaning up the bundler cache.
remote: -----> Installing node-v6.10.0-linux-x64
remote: -----> Detecting rake tasks
remote: sh: 1: Syntax error: word unexpected (expecting ")")
remote: sh: 1: Syntax error: word unexpected (expecting ")")
remote: !
remote: ! Could not detect rake tasks
remote: ! ensure you can run `$ bundle exec rake -P` against your app
remote: ! and using the production group of your Gemfile.
remote: ! rake aborted!
remote: ! Bundler::GemRequireError: There was an error while trying to load the gem 'sass-rails'.
remote: ! Gem Load Error is: uninitialized constant Sass::Script
remote: ! Backtrace for gem load error is:
remote: ! /tmp/build_58ad731988b51b7dabe8f6a61971228c/vendor/bundle/ruby/2.2.0/gems/sass-rails-5.0.0/lib/sass/rails/helpers.rb:11:in `<top (required)>'
remote: ! /tmp/build_58ad731988b51b7dabe8f6a61971228c/vendor/bundle/ruby/2.2.0/gems/sass-rails-5.0.0/lib/sass/rails.rb:8:in `require'
remote: ! /tmp/build_58ad731988b51b7dabe8f6a61971228c/vendor/bundle/ruby/2.2.0/gems/sass-rails-5.0.0/lib/sass/rails.rb:8:in `<top (required)>'
remote: ! /tmp/build_58ad731988b51b7dabe8f6a61971228c/vendor/bundle/ruby/2.2.0/gems/sass-rails-5.0.0/lib/sass-rails.rb:1:in `require'
remote: ! /tmp/build_58ad731988b51b7dabe8f6a61971228c/vendor/bundle/ruby/2.2.0/gems/sass-rails-5.0.0/lib/sass-rails.rb:1:in `<top (required)>'
remote: ! /tmp/build_58ad731988b51b7dabe8f6a61971228c/vendor/bundle/ruby/2.2.0/gems/bundler-1.13.7/lib/bundler/runtime.rb:91:in `require'
remote: ! /tmp/build_58ad731988b51b7dabe8f6a61971228c/vendor/bundle/ruby/2.2.0/gems/bundler-1.13.7/lib/bundler/runtime.rb:91:in `block (2 levels) in require'
remote: ! /tmp/build_58ad731988b51b7dabe8f6a61971228c/vendor/bundle/ruby/2.2.0/gems/bundler-1.13.7/lib/bundler/runtime.rb:86:in `each'
remote: ! /tmp/build_58ad731988b51b7dabe8f6a61971228c/vendor/bundle/ruby/2.2.0/gems/bundler-1.13.7/lib/bundler/runtime.rb:86:in `block in require'
remote: ! /tmp/build_58ad731988b51b7dabe8f6a61971228c/vendor/bundle/ruby/2.2.0/gems/bundler-1.13.7/lib/bundler/runtime.rb:75:in `each'
remote: ! /tmp/build_58ad731988b51b7dabe8f6a61971228c/vendor/bundle/ruby/2.2.0/gems/bundler-1.13.7/lib/bundler/runtime.rb:75:in `require'
remote: ! /tmp/build_58ad731988b51b7dabe8f6a61971228c/vendor/bundle/ruby/2.2.0/gems/bundler-1.13.7/lib/bundler.rb:106:in `require'
remote: ! /tmp/build_58ad731988b51b7dabe8f6a61971228c/config/application.rb:7:in `<top (required)>'
remote: ! /tmp/build_58ad731988b51b7dabe8f6a61971228c/Rakefile:4:in `require'
remote: ! /tmp/build_58ad731988b51b7dabe8f6a61971228c/Rakefile:4:in `<top (required)>'
remote: ! /tmp/build_58ad731988b51b7dabe8f6a61971228c/vendor/bundle/ruby/2.2.0/gems/rake-12.0.0/lib/rake/rake_module.rb:28:in `load'
remote: ! /tmp/build_58ad731988b51b7dabe8f6a61971228c/vendor/bundle/ruby/2.2.0/gems/rake-12.0.0/lib/rake/rake_module.rb:28:in `load_rakefile'
remote: ! /tmp/build_58ad731988b51b7dabe8f6a61971228c/vendor/bundle/ruby/2.2.0/gems/rake-12.0.0/lib/rake/application.rb:687:in `raw_load_rakefile'
remote: ! /tmp/build_58ad731988b51b7dabe8f6a61971228c/vendor/bundle/ruby/2.2.0/gems/rake-12.0.0/lib/rake/application.rb:96:in `block in load_rakefile'
remote: ! /tmp/build_58ad731988b51b7dabe8f6a61971228c/vendor/bundle/ruby/2.2.0/gems/rake-12.0.0/lib/rake/application.rb:178:in `standard_exception_handling'
remote: ! /tmp/build_58ad731988b51b7dabe8f6a61971228c/vendor/bundle/ruby/2.2.0/gems/rake-12.0.0/lib/rake/application.rb:95:in `load_rakefile'
remote: ! /tmp/build_58ad731988b51b7dabe8f6a61971228c/vendor/bundle/ruby/2.2.0/gems/rake-12.0.0/lib/rake/application.rb:79:in `block in run'
remote: ! /tmp/build_58ad731988b51b7dabe8f6a61971228c/vendor/bundle/ruby/2.2.0/gems/rake-12.0.0/lib/rake/application.rb:178:in `standard_exception_handling'
remote: ! /tmp/build_58ad731988b51b7dabe8f6a61971228c/vendor/bundle/ruby/2.2.0/gems/rake-12.0.0/lib/rake/application.rb:77:in `run'
remote: ! /tmp/build_58ad731988b51b7dabe8f6a61971228c/vendor/bundle/ruby/2.2.0/gems/rake-12.0.0/exe/rake:27:in `<top (required)>'
remote: ! vendor/bundle/bin/rake:17:in `load'
remote: ! vendor/bundle/bin/rake:17:in `<main>'
remote: ! Bundler Error Backtrace:
remote: ! /tmp/build_58ad731988b51b7dabe8f6a61971228c/vendor/bundle/ruby/2.2.0/gems/bundler-1.13.7/lib/bundler/runtime.rb:94:in `rescue in block (2 levels) in require'
remote: ! /tmp/build_58ad731988b51b7dabe8f6a61971228c/vendor/bundle/ruby/2.2.0/gems/bundler-1.13.7/lib/bundler/runtime.rb:90:in `block (2 levels) in require'
remote: ! /tmp/build_58ad731988b51b7dabe8f6a61971228c/vendor/bundle/ruby/2.2.0/gems/bundler-1.13.7/lib/bundler/runtime.rb:86:in `each'
remote: ! /tmp/build_58ad731988b51b7dabe8f6a61971228c/vendor/bundle/ruby/2.2.0/gems/bundler-1.13.7/lib/bundler/runtime.rb:86:in `block in require'
remote: ! /tmp/build_58ad731988b51b7dabe8f6a61971228c/vendor/bundle/ruby/2.2.0/gems/bundler-1.13.7/lib/bundler/runtime.rb:75:in `each'
remote: ! /tmp/build_58ad731988b51b7dabe8f6a61971228c/vendor/bundle/ruby/2.2.0/gems/bundler-1.13.7/lib/bundler/runtime.rb:75:in `require'
remote: ! /tmp/build_58ad731988b51b7dabe8f6a61971228c/vendor/bundle/ruby/2.2.0/gems/bundler-1.13.7/lib/bundler.rb:106:in `require'
remote: ! /tmp/build_58ad731988b51b7dabe8f6a61971228c/config/application.rb:7:in `<top (required)>'
remote: ! /tmp/build_58ad731988b51b7dabe8f6a61971228c/Rakefile:4:in `require'
remote: ! /tmp/build_58ad731988b51b7dabe8f6a61971228c/Rakefile:4:in `<top (required)>'
remote: ! /tmp/build_58ad731988b51b7dabe8f6a61971228c/vendor/bundle/ruby/2.2.0/gems/rake-12.0.0/lib/rake/rake_module.rb:28:in `load'
remote: ! /tmp/build_58ad731988b51b7dabe8f6a61971228c/vendor/bundle/ruby/2.2.0/gems/rake-12.0.0/lib/rake/rake_module.rb:28:in `load_rakefile'
remote: ! /tmp/build_58ad731988b51b7dabe8f6a61971228c/vendor/bundle/ruby/2.2.0/gems/rake-12.0.0/lib/rake/application.rb:687:in `raw_load_rakefile'
......
remote: from /app/tmp/buildpacks/f6d48d8a14fccbb19c0c0402fca224929d18e9ee042b3e204bc5992612e990d3b3a0fb1f9627b1a3bae11e9fa20dffc96e136bd734a2f3cf92a0d05bedd42cfe/lib/language_pack/instrument.rb:16:in `instrument'
remote: from /app/tmp/buildpacks/f6d48d8a14fccbb19c0c0402fca224929d18e9ee042b3e204bc5992612e990d3b3a0fb1f9627b1a3bae11e9fa20dffc96e136bd734a2f3cf92a0d05bedd42cfe/lib/language_pack/instrument.rb:35:in `trace'
remote: from /app/tmp/buildpacks/f6d48d8a14fccbb19c0c0402fca224929d18e9ee042b3e204bc5992612e990d3b3a0fb1f9627b1a3bae11e9fa20dffc96e136bd734a2f3cf92a0d05bedd42cfe/bin/ruby_compile:11:in `<main>'
remote: ! Push rejected, failed to compile Ruby app.
remote:
remote: ! Push failed
remote: Verifying deploy....
remote:
remote: ! Push rejected to hidden-eyrie-90646.
remote:
To https://git.heroku.com/hidden-eyrie-90646.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/hidden-eyrie-90646.git'
But when I typed in the command `$ bundle install --without production`
It seems alright:
`Fetching gem metadata from https://rubygems.org/..........
Fetching version metadata from https://rubygems.org/..
Fetching dependency metadata from https://rubygems.org/.
Using rake 12.0.0
Using i18n 0.8.1
Using json 1.8.6
Using minitest 5.10.1
Using thread_safe 0.3.6
Using builder 3.2.3
Using erubis 2.7.0
Using mini_portile2 2.1.0
Using rack 1.6.5
Using mime-types-data 3.2016.0521
Using arel 6.0.4
Using coffee-script-source 1.12.2
Using execjs 2.7.0
Using thor 0.19.4
Using concurrent-ruby 1.0.5
Using multi_json 1.12.1
Using rack-timeout 0.3.2
Using bundler 1.14.4
Using rdoc 4.3.0
Using sass 3.4.23
Using tilt 1.4.1
Using sqlite3 1.3.13
Using turbolinks-source 5.0.0
Using tzinfo 1.2.3
Using nokogiri 1.7.1
Using rack-test 0.6.3
Using mime-types 3.1
Using coffee-script 2.4.1
Using sprockets 3.7.1
Using uglifier 1.3.0
Using sdoc 0.4.0
Using turbolinks 5.0.1
Using activesupport 4.2.5
Using loofah 2.0.3
Using mail 2.6.4
Using rails-deprecated_sanitizer 1.0.3
Using globalid 0.3.7
Using activemodel 4.2.5
Using jbuilder 2.0.0
Using spring 2.0.1
Using rails-html-sanitizer 1.0.3
Using rails-dom-testing 1.0.8
Using activejob 4.2.5
Using activerecord 4.2.5
Using actionview 4.2.5
Using actionpack 4.2.5
Using actionmailer 4.2.5
Using railties 4.2.5
Using sprockets-rails 3.2.0
Using coffee-rails 4.1.0
Using jquery-rails 4.3.1
Using rails 4.2.5
Using sass-rails 5.0.0
Bundle complete! 13 Gemfile dependencies, 53 gems now installed.
Gems in the group production were not installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.`
(I deleted some message because it exceeded the length limit of stackoverflow.)
My Gemfile is:
source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.2.5'
# Use sqlite3 as the database for Active Record
gem 'sqlite3', group: [:development, :test]
# Use postgresql as database for production
group :production do
gem 'pg'
gem 'rails_12factor'
end
# Use SCSS for stylesheets
gem 'sass-rails', ' 5.0'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', ' 1.3.0'
# Use CoffeeScript for .coffee assets and views
gem 'coffee-rails', ' 4.1.0'
# See https://github.com/rails/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby
# Use jquery as the JavaScript library
gem 'jquery-rails'
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
gem 'turbolinks'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', ' 2.0'
# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', ' 0.4.0', group: :doc
gem 'spring', group: :development
gem 'rack-timeout', '0.3.2'
# Use ActiveModel has_secure_password
# gem 'bcrypt', ' 3.1.7'
# Use Unicorn as the app server
# gem 'unicorn'
# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development
#group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
# gem 'byebug'
#end
#group :development do
# Access an IRB console on exception pages or by using <%= console %> in views
# gem 'web-console', ' 2.0'
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
# gem 'spring'
#end
My Gemfile is not the same as the lecturer presented, because somehow I can't install the 4.1.0 version Ruby (mine is 4.2.5) on Cloud9 IDE.
And here is the lecturer's Gemfile:
source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.1.0'
# Use sqlite3 as the database for Active Record
gem 'sqlite3', group: [:development, :test]
# Use postgresql as database for production
group :production do
gem 'pg'
gem 'rails_12factor'
end
# Use SCSS for stylesheets
gem 'sass-rails', ' 4.0.3'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', ' 1.3.0'
# Use CoffeeScript for .coffee assets and views
gem 'coffee-rails', ' 4.0.0'
# See https://github.com/rails/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby
# Use jquery as the JavaScript library
gem 'jquery-rails'
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
gem 'turbolinks'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', ' 2.0'
# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', ' 0.4.0', group: :doc
gem 'spring', group: :development
What should I do? Thank you in advance.
your gem version is
gem 'sass-rails', ' 5.0'
change it to
gem 'sass-rails', '5.0.3' or gem 'sass-rails', '5.0.2'
or do
bundle update sass-rails
which ultimately updates you saas-rails gem to the latest one. Or you can enter the version in your gemfile as specified above.
I'm in the deployment section of the first chapter of the Ruby on Rails tutorial, and I can't make things work! I'm using the Cloud9 workspace.
My Gemfile is:
source 'https://rubygems.org'
ruby '2.2.1'
gem 'rails', '4.2.0'
gem 'sass-rails', '5.0.1'
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 :production do
gem 'pg', '0.17.1'
gem 'rails_12factor', '0.0.2'
end
My Heroku installation log is:
-----> Ruby app detected
-----> Compiling Ruby/Rails
-----> Using Ruby version: ruby-2.2.1
-----> Installing dependencies using 1.9.7
Ruby version change detected. Clearing bundler cache.
Old: ruby 2.0.0p645 (2015-04-13 revision 50299) [x86_64-linux]
New: ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-linux]
Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
Fetching gem metadata from https://rubygems.org/...........
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
Using rake 10.4.2
Installing minitest 5.7.0
Installing i18n 0.7.0
Installing builder 3.2.2
Installing thread_safe 0.3.5
Installing mini_portile 0.6.2
Installing erubis 2.7.0
Installing rack 1.6.4
Installing mime-types 2.6.1
Installing coffee-script-source 1.9.1.1
Installing arel 6.0.2
Installing json 1.8.3
Installing execjs 2.5.2
Installing thor 0.19.1
Using bundler 1.9.7
Installing multi_json 1.11.2
Installing rails_stdout_logging 0.0.3
Using rdoc 4.2.0
Installing rails_serve_static_assets 0.0.4
Installing tilt 1.4.1
Installing sass 3.4.16
Installing tzinfo 1.2.2
Installing rack-test 0.6.3
Installing sprockets 3.2.0
Installing mail 2.6.3
Installing coffee-script 2.4.1
Installing uglifier 2.5.3
Installing sdoc 0.4.0
Installing rails_12factor 0.0.2
Installing activesupport 4.2.0
Installing rails-deprecated_sanitizer 1.0.3
Installing globalid 0.3.5
Installing activemodel 4.2.0
Installing jbuilder 2.2.3
Installing activejob 4.2.0
Installing activerecord 4.2.0
Installing pg 0.17.1
Installing nokogiri 1.6.6.2
Installing loofah 2.0.2
Installing rails-dom-testing 1.0.6
Installing rails-html-sanitizer 1.0.2
Installing actionview 4.2.0
Installing actionpack 4.2.0
Installing sprockets-rails 2.3.2
Installing actionmailer 4.2.0
Installing railties 4.2.0
Installing coffee-rails 4.1.0
Installing jquery-rails 4.0.3
Installing rails 4.2.0
Installing sass-rails 5.0.1
Installing turbolinks 2.3.0
Bundle complete! 14 Gemfile dependencies, 51 gems now installed.
Gems in the groups development and test were not installed.
Bundled gems are installed into ./vendor/bundle.
Bundle completed (35.52s)
Cleaning up the bundler cache.
Could not detect rake tasks
ensure you can run `$ bundle exec rake -P` against your app with no environment variables present
and using the production group of your Gemfile.
rake aborted!
NameError: uninitialized constant Sass::Script
/tmp/build_e66783d527b235cf6db9221a52037d9b/vendor/bundle/ruby/2.2.0/gems/sass-rails-5.0.1/lib/sass/rails/helpers.rb:11:in `<top (required)>'
/tmp/build_e66783d527b235cf6db9221a52037d9b/vendor/bundle/ruby/2.2.0/gems/sass-rails-5.0.1/lib/sass/rails.rb:8:in `require'
/tmp/build_e66783d527b235cf6db9221a52037d9b/vendor/bundle/ruby/2.2.0/gems/sass-rails-5.0.1/lib/sass/rails.rb:8:in `<top (required)>'
/tmp/build_e66783d527b235cf6db9221a52037d9b/vendor/bundle/ruby/2.2.0/gems/sass-rails-5.0.1/lib/sass-rails.rb:1:in `require'
/tmp/build_e66783d527b235cf6db9221a52037d9b/vendor/bundle/ruby/2.2.0/gems/sass-rails-5.0.1/lib/sass-rails.rb:1:in `<top (required)>'
/tmp/build_e66783d527b235cf6db9221a52037d9b/vendor/bundle/ruby/2.2.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:76:in `require'
/tmp/build_e66783d527b235cf6db9221a52037d9b/vendor/bundle/ruby/2.2.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:76:in `block (2 levels) in require'
/tmp/build_e66783d527b235cf6db9221a52037d9b/vendor/bundle/ruby/2.2.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:72:in `each'
/tmp/build_e66783d527b235cf6db9221a52037d9b/vendor/bundle/ruby/2.2.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:72:in `block in require'
/tmp/build_e66783d527b235cf6db9221a52037d9b/vendor/bundle/ruby/2.2.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:61:in `each'
/tmp/build_e66783d527b235cf6db9221a52037d9b/vendor/bundle/ruby/2.2.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:61:in `require'
/tmp/build_e66783d527b235cf6db9221a52037d9b/vendor/bundle/ruby/2.2.0/gems/bundler-1.9.7/lib/bundler.rb:134:in `require'
/tmp/build_e66783d527b235cf6db9221a52037d9b/config/application.rb:7:in `<top (required)>'
/tmp/build_e66783d527b235cf6db9221a52037d9b/Rakefile:4:in `require'
/tmp/build_e66783d527b235cf6db9221a52037d9b/Rakefile:4:in `<top (required)>'
/tmp/build_e66783d527b235cf6db9221a52037d9b/vendor/ruby-2.2.1/lib/ruby/2.2.0/rake/rake_module.rb:28:in `load'
/tmp/build_e66783d527b235cf6db9221a52037d9b/vendor/ruby-2.2.1/lib/ruby/2.2.0/rake/rake_module.rb:28:in `load_rakefile'
/tmp/build_e66783d527b235cf6db9221a52037d9b/vendor/ruby-2.2.1/lib/ruby/2.2.0/rake/application.rb:689:in `raw_load_rakefile'
/tmp/build_e66783d527b235cf6db9221a52037d9b/vendor/ruby-2.2.1/lib/ruby/2.2.0/rake/application.rb:94:in `block in load_rakefile'
/tmp/build_e66783d527b235cf6db9221a52037d9b/vendor/ruby-2.2.1/lib/ruby/2.2.0/rake/application.rb:176:in `standard_exception_handling'
/tmp/build_e66783d527b235cf6db9221a52037d9b/vendor/ruby-2.2.1/lib/ruby/2.2.0/rake/application.rb:93:in `load_rakefile'
/tmp/build_e66783d527b235cf6db9221a52037d9b/vendor/ruby-2.2.1/lib/ruby/2.2.0/rake/application.rb:77:in `block in run'
/tmp/build_e66783d527b235cf6db9221a52037d9b/vendor/ruby-2.2.1/lib/ruby/2.2.0/rake/application.rb:176:in `standard_exception_handling'
/tmp/build_e66783d527b235cf6db9221a52037d9b/vendor/ruby-2.2.1/lib/ruby/2.2.0/rake/application.rb:75:in `run'
/tmp/build_e66783d527b235cf6db9221a52037d9b/vendor/ruby-2.2.1/lib/ruby/gems/2.2.0/gems/rake-10.4.2/bin/rake:33:in `<top (required)>'
vendor/bundle/bin/rake:16:in `load'
vendor/bundle/bin/rake:16:in `<main>'
###### WARNING:
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, 29.1MB
-----> Launching... done, v6
https://lit-caverns-5466.herokuapp.com/ deployed to Heroku
When I open the link I get the message:
Application Error
An error occurred in the application and your page could not be
served. Please try again in a few moments.
If you are the application owner, check your logs for details.
Does your app run successfully in production mode locally ? If not try to run your app locally in production mode and you might be able to spot the issue.
bundle install --without development:test
RAILS_ENV=production rake db:create db:migrate
RAILS_ENV=production rails s
I want to unload on Heroku.com own application on RubyOnRails, but I face some problems. One of this problems is that: LoadError: Please install the sqlite3 adapter: gem install activerecord-sqlite3-adapter (sqlite3 is not part of the bundle. Add it to Gemfile.)
Another problem is error: failed to push some refs to 'git#heroku.com:secure-anchorage-3129.git'
ark#ark-Aspire-5750G:~/priroda$ git push heroku master
Initializing repository, done.
Counting objects: 101, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (89/89), done.
Writing objects: 100% (101/101), 125.08 KiB, done.
Total 101 (delta 4), 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
Fetching gem metadata from https://rubygems.org/........
Fetching additional metadata from https://rubygems.org/..
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 rack 1.4.5
Installing hike 1.2.3
Installing tilt 1.4.1
Installing mime-types 1.25.1
Installing polyglot 0.3.5
Installing arel 3.0.3
Installing acts_as_indexed 0.8.3
Installing babosa 0.3.11
Installing tzinfo 0.3.39
Installing coffee-script-source 1.7.0
Installing execjs 2.2.0
Installing thor 0.19.1
Installing orm_adapter 0.5.0
Using bundler 1.6.3
Installing bcrypt 3.1.7
Installing sass 3.3.8
Installing truncate_html 0.9.2
Installing json 1.8.1
Installing will_paginate 3.0.5
Installing rails-i18n 0.7.4
Installing activesupport 3.2.18
Installing rack-cache 1.2
Installing rack-test 0.6.2
Installing rack-ssl 1.3.4
Installing warden 1.2.3
Installing sprockets 2.2.2
Installing treetop 1.4.15
Installing coffee-script 2.2.0
Installing bcrypt-ruby 3.1.5
Installing dragonfly 0.9.15
Installing rdoc 3.12.2
Installing uglifier 2.5.1
Installing activemodel 3.2.18
Installing mail 2.5.4
Installing activerecord 3.2.18
Installing activeresource 3.2.18
Installing actionpack 3.2.18
Installing awesome_nested_set 2.1.6
Installing friendly_id 4.0.10.1
Installing globalize 3.1.0
Installing actionmailer 3.2.18
Installing routing-filter 0.3.1
Installing refinerycms-i18n 2.1.0
Installing railties 3.2.18
Installing coffee-rails 3.2.2
Installing decorators 1.0.3
Installing devise 2.2.8
Installing rails 3.2.18
Installing jquery-rails 2.3.0
Installing seo_meta 1.4.0
Installing sass-rails 3.2.6
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-resources 2.1.2
Installing refinerycms-pages 2.1.2
Installing refinerycms-acts-as-indexed 1.0.0
Installing refinerycms 2.1.2
Your bundle is complete!
Gems in the groups development and test were not installed.
It was installed into ./vendor/bundle
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 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 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 (17.42s)
Cleaning up the bundler cache.
-----> Writing config/database.yml to read from DATABASE_URL
-----> Preparing app for Rails asset pipeline
Running: rake assets:precompile
DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /tmp/build_5d23c95e-376b-4495-829f-69495105c73c/Rakefile:7)
DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /tmp/build_5d23c95e-376b-4495-829f-69495105c73c/Rakefile:7)
rake aborted!
LoadError: Please install the sqlite3 adapter: `gem install activerecord-sqlite3-adapter` (sqlite3 is not part of the bundle. Add it to Gemfile.)
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/bundler-1.6.3/lib/bundler/rubygems_integration.rb:252:in `block in replace_gem'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.18/lib/active_record/connection_adapters/sqlite3_adapter.rb:3:in `<top (required)>'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.18/lib/active_support/dependencies.rb:251:in `require'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.18/lib/active_support/dependencies.rb:251:in `block in require'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.18/lib/active_support/dependencies.rb:236:in `load_dependency'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.18/lib/active_support/dependencies.rb:251:in `require'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.18/lib/active_record/connection_adapters/abstract/connection_specification.rb:50:in `resolve_hash_connection'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.18/lib/active_record/connection_adapters/abstract/connection_specification.rb:41:in `resolve_string_connection'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.18/lib/active_record/connection_adapters/abstract/connection_specification.rb:27:in `spec'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.18/lib/active_record/connection_adapters/abstract/connection_specification.rb:130:in `establish_connection'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.18/lib/active_record/railtie.rb:88:in `block (2 levels) in <class:Railtie>'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.18/lib/active_support/lazy_load_hooks.rb:36:in `instance_eval'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.18/lib/active_support/lazy_load_hooks.rb:36:in `execute_hook'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.18/lib/active_support/lazy_load_hooks.rb:26:in `block in on_load'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.18/lib/active_support/lazy_load_hooks.rb:25:in `each'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.18/lib/active_support/lazy_load_hooks.rb:25:in `on_load'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.18/lib/active_record/railtie.rb:80:in `block in <class:Railtie>'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/railties-3.2.18/lib/rails/initializable.rb:30:in `instance_exec'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/railties-3.2.18/lib/rails/initializable.rb:30:in `run'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/railties-3.2.18/lib/rails/initializable.rb:55:in `block in run_initializers'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/railties-3.2.18/lib/rails/initializable.rb:54:in `each'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/railties-3.2.18/lib/rails/initializable.rb:54:in `run_initializers'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/railties-3.2.18/lib/rails/application.rb:136:in `initialize!'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/railties-3.2.18/lib/rails/railtie/configurable.rb:30:in `method_missing'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/config/environment.rb:5:in `<top (required)>'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.18/lib/active_support/dependencies.rb:251:in `require'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.18/lib/active_support/dependencies.rb:251:in `block in require'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.18/lib/active_support/dependencies.rb:236:in `load_dependency'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.18/lib/active_support/dependencies.rb:251:in `require'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/railties-3.2.18/lib/rails/application.rb:103:in `require_environment!'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/railties-3.2.18/lib/rails/application.rb:305:in `block (2 levels) in initialize_tasks'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.18/lib/sprockets/assets.rake:93:in `block (2 levels) in <top (required)>'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.18/lib/sprockets/assets.rake:60:in `block (3 levels) in <top (required)>'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.18/lib/sprockets/assets.rake:23:in `invoke_or_reboot_rake_task'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.18/lib/sprockets/assets.rake:29:in `block (2 levels) in <top (required)>'
Tasks: TOP => environment
(See full trace by running task with --trace)
!
! Precompiling assets failed.
!
! Push rejected, failed to compile Ruby app
To git#heroku.com:secure-anchorage-3129.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git#heroku.com:secure-anchorage-3129.git'
ark#ark-Aspire-5750G:~/priroda$
Heroku doesn't do sqlite - it uses Postgres instead. See if you have sqlite gem in your Gemfile and if you do, try replacing it with something like this:
group :development do
gem 'sqlite3'
end
group :production do
gem 'pg'
end