Skip to content

Require parameters.yml link symlink prior to cache warmup #48

@gnat42

Description

@gnat42

Hello,

We have a situation where a project has some deployed server/environment variables that are different than development or other deployments - for example its behind a reverse proxy and so we have to set some base_path/url overrides. We've done this by adding this to our config.yml

imports:
    - { resource: parameters.yml }
    - { resource: security.yml }
    - { resource: config_who.yml, ignore_errors: true }

Thus if the config_who.yml filed doesn't exist it continues on, but if it does it's included with its config overrides.

Now if we want to use this role, we'd like to put that file in the same shared/app/config directory and have it symlink to the releases/ReleaseVersion/app/config directory. Looking at the system there are no hooks that apply or configuration options for this.

I'm wondering how we should solve this. I don't mind creating a PR but it seems this could be solved two ways.

1 - Add something to the 10-config.yml file to do the same thing for parameters.yml for other files. Probably changing it so that it works on a loop of files to link with only parameters.yml as default
2 - pre-cache hook.

Which would you prefer?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions