fusio icon indicating copy to clipboard operation
fusio copied to clipboard

Generate YAML files from existing setup

Open ratsey opened this issue 4 years ago • 1 comments

I'm afraid to say that I still have CORS issues. I'm tempted to try installing the latest (I'm on 1.9.3) but always hesitant that I'll lose my existing setup. I started trying to convert to YAML files, but gave up, instead using the web based API which just seemed far less convoluted.

However this obviously gives me risk and I can't commit the setup to Git. Is there a way to generate the YAML files from an existing setup? This would allow the ease of use of the web based portal to setup routes and actions, but then bring the code back into the app's code base for source control.

If not, what is the safest way to upgrade without risk of losing everything?

ratsey avatar Feb 13 '21 22:02 ratsey

Hi, no problem, so we have currently the system:export command to export data from the system into a json file, this could help to create the fitting yaml files but this needs some manual modifications. In general the safest way is to use the yaml format. The problem with commands to generate yaml files based on the database is that we need some kind of merging strategy which can be tricky, but in general this would be possible. In general you can also store everything in the database since we ensure that you can upgrade to every new version, except for new major versions, so if your are on 2.0 you can upgrade to 2.1, 2.2 etc. but maybe not 3.0 (this depends always on the changes which we are making along the versions and on the usages of older versions)

chriskapp avatar Feb 14 '21 18:02 chriskapp