Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
eiriksm opened this issue Oct 2, 2024 · 0 comments
Open

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

eiriksm opened this issue Oct 2, 2024 · 0 comments

Comments

@eiriksm
Copy link

eiriksm commented Oct 2, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant