Giter Site home page Giter Site logo

Comments (5)

derhuerst avatar derhuerst commented on July 20, 2024

Thanks for reporting this!

The "prerequisites" section of the readme doesn't mention that sponge from moreutils needs to be installed.

from berlin-gtfs-rt-server.

dancesWithCycles avatar dancesWithCycles commented on July 20, 2024

You are very welcome!

Do you want do make this repository available to more people? The sponge command line instruction is not a standard tool and this way not available for anyone. I could imagine to substitute sponge with tee or with tee "$@" > /dev/null when you mind the pipe to standard output or even substitute sponge with a shell function my-sponge passing the data through a temporary file. What do you think?

from berlin-gtfs-rt-server.

derhuerst avatar derhuerst commented on July 20, 2024

I introduced the sponge call in 1b9be1f. The build had failed randomly (SQL syntax errors, weirdly enough 🤔), and I still don't know what the actually reason is.

But sponge buffers the entire SQL before it is read by psql, which circumvents the problem. Does tee actually do the same?

And: Is tee preinstalled on all platforms? Because if some users need to install a package anyways, then I prefer the tool intended for what I'm trying to achieve.

Defining a custom shell function would solve the issue, but a) I don't want to populate a temporary file, as berlin-gtfs-rt-server should work in read-only environments (e.g. containers), and b) I don't want to add more complexity to this repo when an existing tool solves the task cleanly.

from berlin-gtfs-rt-server.

derhuerst avatar derhuerst commented on July 20, 2024

Do you want do make this repository available to more people? The sponge command line instruction is not a standard tool and this way not available for anyone.

True, but I feel like people who can install (or get access to) Git, Node.js, PostgreSQL, PostGIS & wget will also be able to install sponge. Probably platforms without native package managers (e.g. Windows or macOS) are an exception to this, but I feel like berlin-gtfs-rt-server targets a fairly technical audience.

from berlin-gtfs-rt-server.

derhuerst avatar derhuerst commented on July 20, 2024
PostGraphile PostgreSQL user's password: <secret>
PostrREST PostgreSQL user's password: <secret>

This happens because gtfs-via-postgres@4 (a dependency of hafas-gtfs-rt-feed) prints the randomly generated passwords of the postgraphile (for Postgraphile) & postgrest/web_anon (for PostgREST) roles, even if the creation of these roles is disabled. TLDR: This is a bug I should fix in gtfs-via-postgres.

from berlin-gtfs-rt-server.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.