pre-load frontend config
When initializing an instance, set in fylr.yml values for the frontend configuration.
Last updated
When initializing an instance, set in fylr.yml values for the frontend configuration.
Last updated
Some configuration is done in fylr.yml.
Some configuration is done in the web-frontend of fylr.
If you want to avoid configuration in the frontend, for example when installing many similar instances, you can set initial values for the frontend configuration in fylr.yml.
As soon as the SQL Database is used for the first time (during the first start of a fylr instance, or after a purge), those initial values in fylr.yml are copied to the database. But as soon as they are in the database, they are only read and written in the database and ignored in fylr.yml
. So make sure your desired values are in fylr.yml
before the first use of the SQL database. In other words: if you want to change these settings after the first start of fylr, then you have to use the web-frontend.
Get the desired configuration for the initial values. As there are hundreds of settings and many variants and scenarios, these are not documented explicitly. Instead, we suggest to...
Configure your desired values in another running fylr instance, in the frontend.
Download that configuration: (it will be in JSON format)
Extract from the downloaded JSON file the desired settings. In this example, we want to make sure the Service Email Notifications
is started. The relevant JSON is:
Convert the JSON syntax into YAML syntax: (you can omit the block around is_default
)
Put the YAML configuration into fylr.yml
for the to-be-initialized fylr instance:
only then start this fylr instance
When you want to for example change the produce configuration for preview versions, there are thousands of JSON lines. Instead of converting them all to YAML, use the JSON file directly. The first few steps are the same as in the previous paragraph:
Configure your desired values in another running fylr instance, in the frontend.
Download that configuration: (it will be in JSON format)
Optionally change the JSON configuration file to your requirements.
Put the downloaded JSON file as (in this example) config.json
into the same directory as the fylr.yml
file.
Configure your to-be-initialized fylr instance to use the config.json
file, in fylr.yml
:
Make sure you have no configuration-"leaves" in the config:
-"branch" as shown in the example above. In other words: config
has to be empty or else it will replace configFile
.
Only then start the new fylr instance.
config.json
will only be used if this SQL Database was never used before by fylr.