mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 09:47:08 +00:00
This script rewrites project configurations to take into account various structural changes in the configuration object. The script can be run without arguments, in which case it will upgrade the configuration of every project found in the local database, or one or more project IDs can be given as command line arguments in order to upgrade only those projects. Configurations that have already been upgraded will not be touched. For other projects, both the original and new configurations will be saved to file in the current directory, as well as two scripts: one commits the new configuration to the server, and the other restores the original one. This script connects directly to the database, using the same mechanisms as the Dougal server. It is recommended to run it locally on the server host. The restore scripts use the HTTP API, which they expect to find on http://localhost:3000/api, so it is also recommended to run them in the local server. Closes #290. Closes #291. Closes #292. Closes #293. Closes #294. Closes #295. Closes #296. Closes #297. Closes #298.