Clone to your local directory to begin.
$ git clone https://github.com/amigocloud/modified-tripplanner.git
$ cd modeifyThis copies the configuration files into a deployment directory. On Macs this script also brew installs NodeJS and MongoDB.
- Node.js — Version 0.10 and up
- MongoDB — Can set
MONGODB_URLindeployment/env - OpenTripPlanner — Set
otphostandportindeployment/config.yaml
Run's the server in the background with automatic restarts using nodemon This watches the client and lib directories for changes and rebuilds and reloads the server accordingly. Logs are stored in server.log.
NOTE: Changes to the configuration files requires a manual restart. Just run npm start again.
Kills the server and cleans up the .pid.
Manually rebuilds the client assets.
If you manage your configurations elsewhere, bin/set-deployment $DIRECTORY allows you to switch between deployments.