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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T18:53:59+00:00 2026-05-25T18:53:59+00:00

Are Heroku add-ons application specific, or can they be shared among several apps if

  • 0

Are Heroku add-ons application specific, or can they be shared among several apps if you have them?

In other words if I have 5 separate apps in my account and I want $200/month Ronin Postgre DB add-on, and the WebSolr Silver $20 /month, would all 5 of my apps have access to them for the $220 per month? Or do you need separate add-ons for each individual app?

  • 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-25T18:54:00+00:00Added an answer on May 25, 2026 at 6:54 pm

    Yes, you can share DB instances between applications – infact you don’t even need to be using the Ronin addon, you can do it with the included PG – see this thread where I put forward a solution for doing this by using the same DB url in the second application as the first.

    When you addons heroku typically write a bunch of heroku config variables for your app which they then use in files they write – eg database.yml – the actual database.yml file heroku write into your application is:

    <%
    
    require 'cgi'
    require 'uri'
    
    begin
      uri = URI.parse(ENV["DATABASE_URL"])
    rescue URI::InvalidURIError
      raise "Invalid DATABASE_URL"
    end
    
    raise "No RACK_ENV or RAILS_ENV found" unless ENV["RAILS_ENV"] || ENV["RACK_ENV"]
    
    def attribute(name, value)
      value ? "#{name}: #{value}" : ""
    end
    
    adapter = uri.scheme
    adapter = "postgresql" if adapter == "postgres"
    
    database = (uri.path || "").split("/")[1]
    
    username = uri.user
    password = uri.password
    
    host = uri.host
    port = uri.port
    
    params = CGI.parse(uri.query || "")
    
    %>
    
    <%= ENV["RAILS_ENV"] || ENV["RACK_ENV"] %>:
      <%= attribute "adapter",  adapter %>
      <%= attribute "database", database %>
      <%= attribute "username", username %>
      <%= attribute "password", password %>
      <%= attribute "host",     host %>
      <%= attribute "port",     port %>
    
    <% params.each do |key, value| %>
      <%= key %>: <%= value.first %>
    <% end %>
    

    I would imagine the same thing is going to be possible with websolr if you add it to a single instance and then see what config variables are set and set the same in the other applications. I would also imagine that this is unsupported by Heroku and they would actively discourage you from doing it however.

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

Sidebar

Related Questions

I have get the add on on heroku application, and added required sunspot gem
I am hosting my Rails 3 application on Heroku and would like to add
I have an application running in Heroku. The app has a User model with
From what I can tell if I have my app on Heroku and use
gem install heroku failed with following message and I have tried the solution here
I have configured my domain to heroku IPs 75.101.163.44 75.101.145.87 174.129.212.2 But it's not
I created two very simple Heroku apps to test out the service, but it's
Once you have uploaded your source code to Heroku, is it possible to download
Currently I have a Web API running on Heroku that is constantly writing information
I have a rails app running on Heroku. I am using paperclip for some

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.