geolexica / geolexica-server

Generalized backend for Geolexica sites
2 stars 1 forks source link

Separate configuration for staging sites #97

Open skalee opened 4 years ago

skalee commented 4 years ago

Staging sites will have a slightly different configuration. A good example is url setting which is used to build absolute URLs. For example, TC211 site has the url set to https://isotc211.geolexica.org/, but it is only valid for production site, whereas for staging site it should be https://isotc211-staging.geolexica.org/.

One way to fix that is to define a separate configuration for staging site and provide it via CLI parameter, for example:

jekyll build --config _config.yml,_config_development.yml

which means that both configuration files should be merged in a way that the latter takes precedence (see Jekyll docs).