Skip to content
This repository was archived by the owner on Jul 30, 2019. It is now read-only.
This repository was archived by the owner on Jul 30, 2019. It is now read-only.

Override the config location #44

@saturnflyer

Description

@saturnflyer

We're looking to combine a standard eb.yml file with an application specific config but there's no way to do so in the current code.

Would you be open to changing the config task to look at an ENV variable for the path to the config?

We're thinking about something like this:

    config_file = ENV['EB_CONFIG'] || 'eb.yml'

    # load the configuration from same dir (for standalone CI purposes) or from the rails config dir if within the rails project
    filename = EbConfig.resolve_path(config_file)
    unless File.exists? filename
      filename = EbConfig.resolve_path('config/' + config_file)
    end
    EbConfig.load!(environment, filename)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions