Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update readme to clarfiy how to update the GTFS feed #14

Open
elad661 opened this issue Jun 16, 2018 · 0 comments
Open

update readme to clarfiy how to update the GTFS feed #14

elad661 opened this issue Jun 16, 2018 · 0 comments

Comments

@elad661
Copy link
Owner

elad661 commented Jun 16, 2018

Calling update_feed.sh when you already have the database won't work. The way I've been doing it on the server, to save time, is having two databases, gtfs and gtfs2.

When it's time to update the GTFS feed, I modify the config to point to the other database, run update_feed.sh, and then when it's done - restart curlbus. This way curlbus can continue working while the feed is updated, there's no need for complicated GTFS feed update logic, and I can revert to the older GTFS copy in an atomic operation.

I should update the README to reflect that, and also write a script to automatically do the update&switch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant