Crowd sourced neighborhood boundary site
- node
- docker
PGPASSWORD
# password for postgresqlGOOGLE_API_KEY
# required for geolookup of neighborhoods as well as searching for a locationSENDGRID_API_KEY
# required for sending emails
yarn
docker-compose up
docker logs # terminal 1
make dev # terminal 2
make server # terminal 3
make psql # terminal 4
All of our servers are built using Google Cloud Build and stored using Google Storage. So in order for this deploy to work, the latest images must be pushed to Google Storage.
First we need to download the docker machine cert from google storage
gsutil cp gs://youhood/youhood-1.zip youhood-1.zip
Then we load the cert
yarn global add machine-share
machine-import youhood-1.zip
Then we deploy
eval $(docker-machine env youhood-1)
docker-compose -f production.yml up --no-deps -d
eval $(docker-machine env youhood-1)
docker-compose -f production.yml down -v
docker-compose -f production.yml up --no-deps -d