Comments (4)
In the production environment the live_scrape
option is off per default. In this case the database is only filled when bin/parkapi-scraper
is called. The error you get should be caused by an empty database. The usual state of operation is to call the scraper in defined intervals (we use a systemd timer with 5 minutes). The server then only serves the data from the database.
from parkapi.
Has this issue been resolved for you or are there still unclear problems? @hbruch
from parkapi.
In docker-compose.yml, I'd still rename db
service to postgres
, as this is the name it is referenced in Dockerfile.
And in entrypoint.sh, I wonder why python bin/parkapi-setupdb
is not executed before python bin/parkapi-server
.
Or do I get something wrong here?
from parkapi.
And in entrypoint.sh, I wonder why python bin/parkapi-setupdb is not executed before python bin/parkapi-server.
When we started using docker was no use case so the database setup was intended to be run once on installation. Tbh I cannot say what would happen if bin/parkapi-setupdb
is called on an existing database.
from parkapi.
Related Issues (20)
- Missing steps in setup documentation HOT 3
- Provide DATEX II German profile importer HOT 3
- Konstanz HOT 5
- Oldenburg HOT 1
- [Mannheim] Data HOT 2
- [Bad Homburg] Data HOT 1
- [Aalborg] Data HOT 1
- Add opening hours as optional property
- [Herrenberg] Data HOT 9
- city_schema.json outdated(?) HOT 3
- Update python HOT 1
- Proper database schema HOT 5
- [Trier] Data
- Fix CI
- Friendly Hello from another parking scraper HOT 11
- Konstanz scraper collects bogus data HOT 2
- Hamburg broken? HOT 1
- Wiesbaden: again? HOT 12
- Data for Kempten HOT 1
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 parkapi.