ffnord / ffmap-backend

THIS PROJECT DOESN'T HAVE A MAINTAINER!
Other
20 stars 59 forks source link

Add branch with bin substitutes, so the branch works on external machines #73

Open rubo77 opened 8 years ago

rubo77 commented 8 years ago

I created a branch from our solution in kiel:

https://github.com/freifunk-kiel/ffmap-backend/tree/bridge

that works fine together with the bridge:

https://github.com/rubo77/ffmap-backend-bridge

should we add this to the repository somehow?

jplitza commented 8 years ago

That solution is terribly inflexible and not very cleanly written. It would be much better to simply pass files (or file descriptors/pipes) to the program that are then used as output of the various programs. That way, not only the location of the files can be configured, but also dynamic generation like remote calls could be done like so:

... --alfred-158-output <(ssh alfred-gateway.ffhb.example.org alfred-json -z -r 158) ...

(obviously alfred-158-output is a horrible name and should be replaced by something more reasonable)