Skip to content

Make it possible to override the location of $HOME/.enonic #570

@eiriksm

Description

@eiriksm

My use case is to use docker for development.

I could of course set the HOME variable to something else
That would make it inconvenient to run other types of programs in this container.

Or I could mount a volume inside $HOME/.enonic
Totally possible I guess

What I would like though, would be a separate environment variable. Something like ENONIC_ROOT

From skimming the codebase I see this would also be helpful in terms of utility functions. Currently theres a GetHomeDir which is usually used to join path with HOME and .enonic. How about a GetEnonicDir where you don't have to join it, and you are allowed to override it? Falling back to GetHomeDir for backwards compatibility. Something worth considering?

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