TheTransitClock / transitclockDocker

Docker installer for TheTransitClock
MIT License
16 stars 15 forks source link

Importing gtfs files on the fly #1

Closed vandeag closed 7 years ago

vandeag commented 7 years ago

Hi,

I want to replace existing gtfs with a new one without stopping the app (containers). I assume the import_gtfs.sh file is for that. How do I import those files?

scrudden commented 7 years ago

You should log into the container running transiTime using

docker exec -it -t transitime-server-instance /bin/bash

Within this container you should stop/kill the current core that is running, import the new GTFS and then restart the core.

You can import the new GTFS using $TRANSITIMECORE/transitime/target/GTFSFileProcessor.jar and use $TRANSITIMECORE/transitime/target/Core.jar to restart core using similar parameters as is in start_transitime.sh.

Look out for configRev parameter. This should be left out or set to the latest revision.

scrudden commented 7 years ago

@vandeag Did this help? Can I close?

vandeag commented 7 years ago

@scrudden didn't had time to try it out. Gonna do it this weekend.