t-rex-tileserver / t-rex

t-rex is a vector tile server specialized on publishing MVT tiles from your own data
https://t-rex.tileserver.ch/
MIT License
556 stars 69 forks source link

--cache command line option ignored #291

Open joto opened 2 years ago

joto commented 2 years ago

The documentation says I can run t_rex serve with --cache DIR to enable the cache. But this doesn't work with last released version. In the log it says somewhere "No cache". I can enable the cache in the config file, but I'd rather do this on the command line, because it is more flexible that way.

Dirc commented 1 year ago

Hi @joto,

I had a simmilar issue where --port was not picked up. Looking into the code it seems that trex either uses a config file OR commandline options, but it looks like you can't use both at the same time:

https://github.com/t-rex-tileserver/t-rex/blob/6d6de368bca82ac5a03401ad9218b18294a960f2/t-rex-webserver/src/runtime_config.rs#LL44C1-L66C2

pka commented 1 year ago

@Dirc is right. This is certainly not what users expect.