-
-
Notifications
You must be signed in to change notification settings - Fork 117
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
Remove "config.json" as a tracked respository file, rename to "config.json.example" to highlight the config file requires manual config. #275
Comments
SquadJS/squad-server/factory.js Line 194 in bc4095e
This would need to be edited in your PR. |
Still not a valid fix. There is a job "yarn build all" that overrides these changes. A solution for this must be found first. Also templates will need to edited as well. See my comments and take action on this and your pull request before we consider this. |
Does yarn buildall Call the BuildConfig function within the Factory I linked? Because changing the path there would then solve the issues with yarn build all. Line 19 in bc4095e
I'm pretty sure thats all that would need to change. |
Should, I can double check later. He still has the templates that need to be corrected before push can be approved. |
Looked at this briefly; Werewolfboy is partially correct, but the TLDR is: Make your changes to the readme-template; https://github.com/Team-Silver-Sphere/SquadJS/blob/master/squad-server/templates/readme-template.md Then: SquadJS/squad-server/factory.js Line 194 in bc4095e
Change this to point to your config.json.example. Then: Add config.json to the And finally, test via running The config file and readme are regenerated by the above commands, this is so things like plugin options and defaults are automatically regenerated into the readme/config file without manually intervention, via the |
I'm not sure what, if anything else would need doing past that, would be a question for @Thomas-Smyth but I think the above covers most of it. I'm just not entirely sure if theres anything in the github actions side that would also need work. |
@ect0s you need to delete the config, then do the .gitignore. Two separate pushes, saying from experience. |
I would suggest changing the name to This would work great for multi server setups too.
All config files except
|
Yeah, that would work. As is, we already support multiple configs via |
Will update with ammendments posted in this thread when work stops kicking my butt. Thanks for clarifying and elaborating on what i'd missed ect0s & werewolfboy |
@DrKittens Checking in, seeing if you are still wanting to push your updates. |
No activity on ticket. Closing as stale. |
What is the issue, e.g. map voting, you would like to solve?
git pull
replaces config.json with the example config by default.git pull
should not replace config.json and the provided config.json should be labelled as an exampleRenaming config.json and removing the tracking of the file from git allows for a persistant configuration between updates of master without needing to copy/replace the configured config.json file.
Cant see anything in the build / install files as discussed in #273 as been problematic or altering to the config.json file.
How would you like us to solve this issue?
See #273.
For a new user basing on that commit the following update workflow is functional:
Same steps as previous with the additional step of acknowledging the shipped config file is unconfigured and needs manual intervention.
Once installed the follow workflow can be used to update the install from git without dropping config & run the tool:
Additional Info
Add any other info or screenshots about the feature request here.
I've had this in my live branch for a few updates cycles and its functional
Added @ c825cf1
Since then i've updated twice (thanks ect0s) and rebased against master, config.json has persisted the entire time.
The text was updated successfully, but these errors were encountered: