remco icon indicating copy to clipboard operation
remco copied to clipboard

[Feature request] Fetch remco.toml and src template files from URL and be watchable

Open rockandska opened this issue 8 years ago • 4 comments

Hi,

Thanks for your tool that seems interesting and promising.

Not sure if it is relevant, but i think it will be a great feature to have the possibility to fetch the template file from an public/private URL and be watchable with interval the same manner as values from backend. I thinking it will be a perfect feature for remco.toml too (with autoreload and delete config files that are not here anymore)

I ask this because i'm looking for a solution to be able to distribute containers with defaults templates in image but to be able to fetch remco.toml/resources templates from URL/GIT.

What do you think ?

Regards,

rockandska avatar Nov 21 '17 00:11 rockandska

I think you could try to put your remco.toml and template data into one of the supported backends (could be a yaml file on github or any other url) and then let remco rebuild its own config files and reload itself.

remco can write its pid to a file. You could then reload with a command like: kill -HUP `cat /path/to/pidfile`

HeavyHorst avatar Nov 23 '17 19:11 HeavyHorst

@rockandska does this work for you ?

HeavyHorst avatar Nov 30 '17 10:11 HeavyHorst

Sorry for the late answer. Didn't try it yet but for now, my brain can't figure how to simply achieve this just by read the docs :)

Will it require at least 2 files by ressource template ?

  • a remote yaml with a key containing the real toml
  • a local resource template who just print the value of the toml placed inside a key on the remote yaml file

If you have an functional exemple, i'm open to read it :)

Thanks

rockandska avatar Nov 30 '17 21:11 rockandska

Yeah, that's basically what I had in mind.

At the moment I don't have an functional example, but maybe I'll come up with one at the weekend. If you're faster, feel free to post yours here.

HeavyHorst avatar Dec 01 '17 08:12 HeavyHorst