Closed zabuTNT closed 4 years ago
optionally we can:
add commands to shutdown the build machine and write logs
after otp production is reloaded.
created new branch fot testing this feature in reload.sh script https://github.com/openmove/odh-mentor-otp/tree/reloading-otp
Reloading graphs was implemented with commit https://github.com/openmove/odh-mentor-otp/commit/5c8f0fabb522781f583ec39678ad861d8535d43c
WARNING: for security reason OTP should protected by a firewall and PUT/DELETE/POST requests should be filtered based on request IP.
Probably is better to use these "undocumented" flags when we start OTP:
--autoReload
automatic reload graphs if the files changed
and optional:
--autoScan
automatic search for routers in the folder graphs
so we can remove --insecure
, and PUT/DELETE/POST won't be allowed
@zabuTNT absolutely yes! this is best solution
remove --insecure option and add --autoReload with commit ab5794b29cf76783f1f51ebf791d5710ffcf9df5
http://dev.opentripplanner.org/apidoc/1.0.0/resource_Routers.html
In order to use "protected" endpoint you have to enable "Security": http://docs.opentripplanner.org/en/latest/Security/