This app displays list of shelters for Hurricane Harvey evacuees from: https://docs.google.com/spreadsheets/d/14GHRHQ_7cqVrj0B7HCTVE5EbfpNFMbSI9Gi8azQyn-k
Created using React and Leaflet map
Thanks to everyone working to keep this sheet constantly updated
npm install
EVENT_NAME=harvey npm run setup-vars
or EVENT_NAME=irma npm run setup-vars
npm run start
or yarn start
For each different event you want you configure for, you will need to make a file named .env.${event-name}
.
For what environment variables need to be defined, see existing .env
files and ./src/config.js
.
For your heroku app, you will need to set an EVENT_NAME
config variable like so:
heroku config:set EVENT_NAME=${event-name} --app ${app-name}
For example:
heroku config:set EVENT_NAME=irma --app irma-staging
heroku config:set EVENT_NAME=irma --app irma-shelters
heroku config:set EVENT_NAME=harvey --app harvey-shelters-staging
heroku config:set EVENT_NAME=harvey --app harvey-shelters
Now, you can deploy by pushing to the heroku remotes as usual.
For example:
git push irma-staging master
Once heroku receives your push, it will do the following for you:
npm run heroku-prebuild
and set up your environment variablesnpm install
npm run heroku-postbuild
building the static files for your appnpm run start-static
as referenced in the Procfile
to serve up your built app statically on the PORT
as defined by the heroku environment.Learn more about customizing the Heroku deploy process here and here.