Comments (5)
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.
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.
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.
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.
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)
- correct content-type?
- Question: Do I realy need to provide the GTFS Schedule feed at 2 places? HOT 2
- Question: Is there a checklist how to adjust this repository to a different GTFS Schedule feed & Hafas client? HOT 4
- use station DHIDs from HAFAS for matching
- Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@derhuerst/technical-docs-cli' HOT 10
- Observation: unrecognized value "on;" for "ON_ERROR_STOP": Boolean expected HOT 1
- allow importing into a custom DB schema HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from berlin-gtfs-rt-server.