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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T01:35:00+00:00 2026-05-31T01:35:00+00:00

Working on a rails app for my final year project, and I want to

  • 0

Working on a rails app for my final year project, and I want to deploy it using heroku (with an obscure sub-domain for security) so that my supervisor can keep up to date with the latest developments. Instead of the default sqlite database, my rails app connects to a remote MySQL database with pre-existing schema/data. I have my database.yml set up fine, as when I run my app locally, it connects to the remote db and works fine. However, when I push it to heroku, the home page won’t even open.

I assume Heroku, by default, looks for your database (PostGreSQL, if I’m correct) locally. How do I configure my app so that Heroku can connect to my remote db? And if this is not possible with Heroku, are there any other easy and (most importantly) free Rails hosting service out there that anyone could recommend?

  • 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-31T01:35:02+00:00Added an answer on May 31, 2026 at 1:35 am

    Heroku overwrite the database.yml with a version that reads from the DATABASE_URL config parameter. You can set this to point to your remote MySQL server with something like:

    $ heroku config:add DATABASE_URL=mysql2://username:password@host:port/database
    

    That will use the mysql2 adapter to connect to your DB.

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

Sidebar

Related Questions

I'm working on a rails app and using spine, I want to use the
I'm working on a Rails app that sends data through a form. I want
I'm working on a rails project that's being hosted on Heroku. I'm wondering if
I did heroku create and pushed a working rails app to the server. Everything
I'm working on a Rails app that implements some social network features as relationships,
I am working on rails 3 app and using the koala gem to get
I'm working on a Rails app that existing users can invite additional members to
I am working on a Rails app that allows you to create a configuration
I'm working on a Rails app that will contain information on a bunch of
I am working on a rails app that allows users to log in via

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.