Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7091501
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T08:11:36+00:00 2026-05-28T08:11:36+00:00

I want to use sqlite3 but pg for production on heroku. However, I don’t

  • 0

I want to use sqlite3 but pg for production on heroku. However, I don’t have postgres installed on local host, so bundle install doesn’t work when I run the code below

I know there’s something I can add to the code below so that rails doesn’t try to install it when I run bundle install but i don’t know what that is. Can anyone tell me?

#gem 'sqlite3'
group :development, :test do
  gem 'sqlite3'
end
group :production do
  gem 'pg'
end
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T08:11:36+00:00Added an answer on May 28, 2026 at 8:11 am

    By default, bundler installs all defined groups. You have to tell it explicitly which groups you do not want. In this case it would probably be

    bundle install --without production
    

    Bundler will remember your choice of groups in .bundle/config. Consequently you should not check the contents of that directory into source control.

    However you should note that there are various differences in the SQL dialect of SQLite and Postgres. So unless you do only trivial stuff, you should definitely test on Postgres too. Things like handling of dates, numerics and various string types differences with Postgres generally being much stricter. SQLite maps most of the datatypes to strings of infinite length. Postgres uses fixed data types which are enforced.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to use sqlite3 for my iphone application. But it is not working.
I have normal sqlite database and want to use fts3. As mentioned in http://www.sqlite.org/fts3.html
I want use BYTE_ORDER macro in my Xcode project but i can't because i
So in rails I use sqlite3 for development and mysql for production. Sqlite3 and
I want to open a database.sqlite3. Firstly, I need to get a path. But
I want to made one application that use a database of 400Mb in sqlite3.
I want to select records from sqlite3 database by string matching. But if I
I'm using DBI to query a SQLite3 database. What I have works, but it
I have sqlite3.dll but I'm assuming it's far more complex than simply including that
I try to use this tutorial , but have some problems with scaffold generation

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.