vta / modeify

A web-based UI for delivering personalized commute information to travelers
Other
4 stars 1 forks source link

Update OTP deployment to 1.0 #75

Closed 3vivekb closed 7 years ago

3vivekb commented 7 years ago

Currently otp is using a snapshot of .20 . Let's get to 1.0!

3vivekb commented 7 years ago

Go to /srv/vta.amigocloud.com/OTP/target/ and download the 1.0 version with wget http://maven.conveyal.com.s3.amazonaws.com/org/opentripplanner/otp/1.0.0/otp-1.0.0-shaded.jar

At the end of load_data.sh add the build command: sudo supervisorctl stop vta:vta_otp

java -Xmx6G -Xverify:none -jar /srv/vta.amigocloud.com/OTP/target/otp-1.0.0-shaded.jar --build /srv/vta.amigocloud.com/data --cache /srv/vta.amigocloud.com/ned/

sudo supervisorctl restart vta:vta_otp

And change the supervisor command to run otp: command=java -Xmx6G -Xverify:none -jar /srv/vta.amigocloud.com/OTP/target/otp-1.0.0-shaded.jar --basePath /srv/vta.amigocloud.com/ --graphs /srv/vta.amigocloud.com/data --server --port 8888 --cache /srv/vta.amigocloud.com/ned

3vivekb commented 7 years ago

Actually you should follow the instructions on the wiki https://github.com/vta/modeify/wiki/OTP-Supervisor-Config

3vivekb commented 7 years ago

This was completed successfully!