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 6073611
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T10:17:23+00:00 2026-05-23T10:17:23+00:00

I can launch a basic app on Heroku, displaying a message with get ‘/’…

  • 0

I can launch a basic app on Heroku, displaying a message with get ‘/’… works just fine. However, whenever I try to add sqlite with datamapper, the thing breaks down.

In order to see my app structure, check out the project on github. I’ve kept the code pretty bare-bones.

In the log from heroku I’m getting:

2011-06-26T21:28:36+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/dm-core-1.1.0/lib/dm-core/adapters.rb:163:in `require': no such file to load -- dm-postgres-adapter (LoadError)

The thing about this is that I’m not using postgres, so I’m confused why it is saying this.

  • 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-23T10:17:24+00:00Added an answer on May 23, 2026 at 10:17 am

    “The thing about this is that I’m not using postgres, so I’m confused why it is saying this.”

    You’re using Heroku, so you are using Postgresql.

    In your app.rb you have this line:

    DataMapper::setup(:default, ENV['DATABASE_URL'] || "sqlite3://#{Dir.pwd}/notes.db")
    

    which I’m guessing you got from the Heroku database docs. This line basically says “check for the environment variable ‘DATABASE_URL’, and if it’s set use it as the database url, otherwise use the Sqlite url”. Running locally this environment variable won’t be set, so you’ll use the Sqlite url, but on Heroku this will be set to something like (see the page linked above):

    postgres://username:password@hostname/database
    

    Datamapper will see that this is a Postgresql url, and try to require the postgres adapter, which isn’t installed so will result in the error that you see.

    The best solution would be to install Postgresql locally, so that your development and production environments are as similar as possible. If you can’t do this, or don’t want to, you can specify the Sqlite adapter locally, and the Postgres adapter in production. It’ll look something like this in your Gemfile:

    group :development do
      gem 'dm-sqlite-adapter'
    end
    
    group :production do
      gem 'dm-postgres-adapter'
    end
    

    If you do this you’ll need to tell Heroku to which groups to leave out when installing gems, see the Heroku Gem Bunder docs.

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

Sidebar

Related Questions

I've written a very simple pentaho kettle script that works fine when I launch
I have an app that can launch in portrait or landscape. I'd like the
Does anyone have an example AUTORUN.INF which can launch an MSI installer automatically when
How can I launch an application using C#? Requirements: Must work on Windows XP and
How can I launch an event that has accessors like this : public event
How can I launch the Safari browser or the user's default browser pointing it
In Silverlight how can I launch / navigate to another page?
Can a LINQ enabled app run on a machine that only has the .NET
I'm trying to launch another process from a service (it's a console app that
I know that you can launch hbase in non-distributed mode. It's not clear from

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.