Open linuxitux opened 6 years ago
My bad, I was using an older settings.php
I think you need to keep the configuration isolated from code, and centralized in one place. That way it would be easy to upgrade to a new release.
Thanks.
Seriously, it's annoying to have to manually edit settings.php in every new commit.
Practically all web apps will always have a separate, non-versioned file where configuration is stored. For example:
LocalSettings.php
, which is intended to be created and edited by the user.config_defaults_inc.php
(contains defaults, not editable) plus config/config_inc.php
(to be created/edited by user).wp-config-sample.php
and wp-config.php
with the same idea.config.sample.php
and config.php
So, yes, hashover should not expect users to edit files that are in version control / included with the distribution. It's not just annoying, but dangerous (a skipped step in the upgrade process can result in losing the previous configuration).
Remember that this version of Hashover is not ready for release, it's a development version. I guess you can make a GNU sed script or something similar to set the configuration to your preferred values after an upgrade, if you do that you should make sure the upgrade doesn't require any modification of your script.
Remember that this version of Hashover is not ready for release, it's a development version.
Of course. That doesn't get in the way of helping make a list of things to improve, and discuss the best way to improve them.
I guess you can make a GNU sed script or something similar to set the configuration to your preferred values after an upgrade,
Currently, a much simpler method is to use a git checkout. Before upgrade, git stash
your changes; git pull
to upgrade; git stash pop
to restore your configuration. This has the benefits of 1. it's harder to accidentally overwrite your changes, a git reset
or checkout
is needed 2. when an option is renamed, the last step will fail noisily (and must be resolved as a git merge conflict), so you are forced to review situations that might otherwise result in a misconfigured instance.
Fix: #213
@jorgesumle I know it isn't ready for production, but this issue makes helping in the debugging process and contributing a very tedious task.
The latest commit 7a38fd119dd27b50511d007e3ae2235ab6706a26 gave me this:
Of course nothing is displayed.