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

Rename config.php to config-sample.php #39

Closed
BrookeDot opened this issue Sep 21, 2019 · 2 comments
Closed

Rename config.php to config-sample.php #39

BrookeDot opened this issue Sep 21, 2019 · 2 comments

Comments

@BrookeDot
Copy link
Contributor

As the includes/config.php needs to be modified for each install should this file be renamed to something like config-sample.php? This would allow Hauk to check if config.php is found before trying to load and gracefully fail. It has the added advantage of making upgrades easier preventing the config file from being overwritten by a new version.

@bilde2910
Copy link
Owner

Hauk will prefer reading the config file from /etc/hauk/config.php if available. This isn't documented that well. But moving the config to config-sample.php sounds like a good idea as well.

@BrookeDot
Copy link
Contributor Author

BrookeDot commented Sep 25, 2019

Hauk will prefer reading the config file from /etc/hauk/config.php

Ah neat, I missed that.
https://github.com/bilde2910/Hauk/blob/master/backend-php/include/inc.php#L82

This issue was closed.
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

2 participants