- Make sure you have the development dependencies installed
- Download the latest Graph.obj for OTP:
scripts/download-latest-graph.sh- This will take ~10 minutes to download
- If you already have a local graph file but want the latest from S3, run
scripts/download-latest-graph.sh --force
- Copy
deployment/ansible/group_vars/development_templatetodeployment/ansible/group_vars/development - Change into the
src/folder and runnpm installto install the node modules on the host machine - Run
vagrant up. You can choose to change the Virtualbox shared folder type for theappVM from its default VirtualBox by:
CAC_APP_SHARED_FOLDER_TYPE=nfs vagrant up
- See the app at http://localhost:8024! See OpenTripPlanner at http://localhost:9090.
- Running
./scripts/serve-js-dev.shon the host will rebuild the front-end app on file change (the browser must be reloaded manually to pick up the change). Alternatively,cd /opt/app/src && npm run gulp-developmentcan be run manually in the VM to pick up changes to the static files.
Note that if there is an existing build Graph.obj in otp_data, vagrant provisioning in development mode will not attempt to rebuild the graph, but will use the one already present.
Django migrations are run as part of app provisioning, here, but there may be instances where you need to manually run migrations outside of provisioning, in which case use the command:
vagrant ssh app -c 'cd /opt/app/python/cac_tripplanner && python3 manage.py migrate'
Note there is no staging environment
- Dispatch "Build Graph" Github Actions workflow
- This will fetch and process the latest GTFS and OSM files, store them on S3, and then use those files (along with the elevation file) to build a new Graph.obj for the OTP builder. New Graph.obj will also be stored in S3 bucket.
- Once workflow completes (3-4 hours), remove everything from your local
otp_datadirectory and then run the following script to pull the latest Graph.obj:scripts/download-latest-graph.sh - Build the AMIs, follow latest instructions in
Building The AMIssection of deployment instrucions, found here. - Once AMI builds complete and identifiers set, following latest instructions in
Deploying the AMIssection of deployment instructions, found here.