Discussion:
[Rails] Not able to host app on Heroku using sqlite3 gem
Piyush Chowhan
2018-10-23 11:52:14 UTC
Permalink
Heroku Logs

Running: rake assets:precompile

rake aborted!

Gem::LoadError: Error loading the 'sqlite3' Active Record adapter. Missing a gem it depends on? sqlite3 is not part of the bundle. Add it to your Gemfile.

/tmp/build_28ce13e795827133a7d6aa8c90c74c73/vendor/bundle/ruby/2.5.0/gems/bundler-1.15.2/lib/bundler/rubygems_integration.rb:377:in `block (2 levels) in replace_gem'



Tasks: TOP => environment

(See full trace by running task with --trace)

!

! Precompiling assets failed.

!

! Push rejected, failed to compile Ruby app.

! Push failed

Any Idea?
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+***@googlegroups.com.
To post to this group, send email to rubyonrails-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/48cdbb7e-75fe-4704-8029-ae74ffbfe21a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Karthikeyan A K
2018-10-23 11:53:34 UTC
Permalink
Heroku supports postgres, so change the gem file in such a way that sqlite
is used in development and gem "pg" is used in production.
Post by Piyush Chowhan
Heroku Logs
Running: rake assets:precompile
rake aborted!
Gem::LoadError: Error loading the 'sqlite3' Active Record adapter. Missing a gem it depends on? sqlite3 is not part of the bundle. Add it to your Gemfile.
/tmp/build_28ce13e795827133a7d6aa8c90c74c73/vendor/bundle/ruby/2.5.0/gems/bundler-1.15.2/lib/bundler/rubygems_integration.rb:377:in `block (2 levels) in replace_gem'
Tasks: TOP => environment
(See full trace by running task with --trace)
!
! Precompiling assets failed.
!
! Push rejected, failed to compile Ruby app.
! Push failed
Any Idea?
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an
To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/48cdbb7e-75fe-4704-8029-ae74ffbfe21a%40googlegroups.com
<https://groups.google.com/d/msgid/rubyonrails-talk/48cdbb7e-75fe-4704-8029-ae74ffbfe21a%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
Karthikeyan A K

Founder of Code Tribe https://is.gd/codetribe
Author of https://mindaslab.github.io/I-Love-Ruby/
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+***@googlegroups.com.
To post to this group, send email to rubyonrails-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAJR%2B9kaqZzWKGDv5jomBpW3%2BsLMNWb-fcD202ijt%2BEmLvxO-mg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Piyush Chowhan
2018-10-23 11:59:54 UTC
Permalink
not able to run server
What am I missing?
rails s

*Traceback* (most recent call last):

2: from /usr/local/bin/rails:23:in `<main>'

1: from
/Users/apple/.rvm/rubies/ruby-2.5.1/lib/ruby/site_ruby/2.5.0/rubygems.rb:308:in
`activate_bin_path'

/Users/apple/.rvm/rubies/ruby-2.5.1/lib/ruby/site_ruby/2.5.0/rubygems.rb:289:in
`find_spec_for_exe': *can't find gem railties (>= 0.a) with executable
rails (**Gem::GemNotFoundException**)*
Post by Karthikeyan A K
Heroku supports postgres, so change the gem file in such a way that sqlite
is used in development and gem "pg" is used in production.
Post by Piyush Chowhan
Heroku Logs
Running: rake assets:precompile
rake aborted!
Gem::LoadError: Error loading the 'sqlite3' Active Record adapter. Missing a gem it depends on? sqlite3 is not part of the bundle. Add it to your Gemfile.
/tmp/build_28ce13e795827133a7d6aa8c90c74c73/vendor/bundle/ruby/2.5.0/gems/bundler-1.15.2/lib/bundler/rubygems_integration.rb:377:in `block (2 levels) in replace_gem'
Tasks: TOP => environment
(See full trace by running task with --trace)
!
! Precompiling assets failed.
!
! Push rejected, failed to compile Ruby app.
! Push failed
Any Idea?
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an
To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/48cdbb7e-75fe-4704-8029-ae74ffbfe21a%40googlegroups.com
<https://groups.google.com/d/msgid/rubyonrails-talk/48cdbb7e-75fe-4704-8029-ae74ffbfe21a%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
Karthikeyan A K
Founder of Code Tribe https://is.gd/codetribe
Author of https://mindaslab.github.io/I-Love-Ruby/
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an
To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/CAJR%2B9kaqZzWKGDv5jomBpW3%2BsLMNWb-fcD202ijt%2BEmLvxO-mg%40mail.gmail.com
<https://groups.google.com/d/msgid/rubyonrails-talk/CAJR%2B9kaqZzWKGDv5jomBpW3%2BsLMNWb-fcD202ijt%2BEmLvxO-mg%40mail.gmail.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
Thanks & Regards
Piyush Chowhan
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+***@googlegroups.com.
To post to this group, send email to rubyonrails-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CACL5WfbTr5qWn5XyJssu0aG1E4ZCFb5r05%3Dp0-kS0NoqOmbdkA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Loading...