Skip to content

Instantly share code, notes, and snippets.

@sebabelmar
Last active January 29, 2018 18:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sebabelmar/3689c47ce8be1355ee92551b63b23f4b to your computer and use it in GitHub Desktop.
Save sebabelmar/3689c47ce8be1355ee92551b63b23f4b to your computer and use it in GitHub Desktop.
  1. Stop your existing postgres, redis and elasticsearch services and make sure they dont start on start-up . 1.a. List of services: brew services list . 1.b. Stop services: brew services stop <name> . 1.c. Remove from load: launchctl remove <name> .
  2. Download Docker for Mac
  3. Create a Docker Hub account if you don’t already have one. After logging in, remember your user-id which will be displayed in the top right corner. Mine is jeckstein
  4. Login to docker via the cli: docker login from the project root.
  5. Then docker-compose up from the project root. This will initialize all environments which should result in an empty postgres db, es index and redis cache.
  6. Run the rake tasks to re-constitute your data: rake dev:refresh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment