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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T22:48:51+00:00 2026-06-10T22:48:51+00:00

My Question Suppose I have a directory structure like this: app/ core/ bin/ runner

  • 0

My Question

Suppose I have a directory structure like this:

app/
    core/
        bin/
            runner
        Gemfile
        ...
    Gemfile
    lib/

The “core” is an application which has its own Gemfile and Gemfile.lock. I don’t want to modify core in any way. app/Gemfile is part of my plugin to core, which also has a Gemfile (listing its own dependencies that are additional to core/Gemfile).

I can “bundle install” from the app/core/ and app/ directories.

How can I run core/bin/runner from the app/ directory in such a way that it will include all the Ruby gems from both app/core/Gemfile and app/Gemfile?

Background

I am writing a plugin for Logstash, using C Ruby. Logstash includes its own Gemfile; once all dependencies are fetched, the total package size is about 40MB.

I want to run Logstash in Heroku. To avoid putting 40MB of stuff into Git, I have forked the Ruby buildpack (https://github.com/inscitiv/heroku-buildpack-logstash) and modified it to download Logstash, unpack it, and use its Gemfile.

This works fine, but I am stuck with the Gemfile provided by Logstash. For my plugins, I want to add new dependencies that my plugins will use; I don’t really want to fork Logstash and change its Gemfile in order to accomplish this.

Instead, I want to unpack Logstash into its own directory (logstash/), and then I want to overlay my plugin code, including Gemfile for dependencies, on top of it. Then I want to run a Heroku “worker” process which will run logstash, specifying “.” as the plugins directory, and has access to all the gems from both Gemfiles.

  • 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-06-10T22:48:53+00:00Added an answer on June 10, 2026 at 10:48 pm

    The answer is that the top-level Gemfile should include the child directory Gemfiles.

    Something like this (from Redmine 2.0 Gemfile)

    # Load plugins' Gemfiles
    Dir.glob File.expand_path("../plugins/*/Gemfile", __FILE__) do |file|
      puts "Loading #{file} ..." if $DEBUG # `ruby -d` or `bundle -v`
      instance_eval File.read(file)
    end
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

A newbie question,really. Suppose I have a html table like this: <div id=div1> <table
I was recently asked this question in an interview. Lets suppose I have 2000
I suppose this question is more general than working with COM components. I have
this is a follow-up question of mine. Suppose now I have a URL :
This question is related to awk, I suppose. I have no experience with awk.
I have a file named common.cs which contains commonly used functions like this public
This is a scjp mock exam question. Suppose I have the following two files:
This is weird. I have a virtual directory setup for an MVC3 application called
Suppose I have the following directory structure: workspace/ __init__.py ys_manage/ __init__.py manage.py ys_utils/ __init__.py
I recently came across a question somewhere: Suppose you have an array of 1001

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.