Skip to content
Peter Tao edited this page Feb 13, 2020 · 1 revision

This might not be the right place for errors, will relocate later.

There are some errors related to postgres/backend that cause the failure of jests. Here are the steps to rebuild the images and temporary solutions.

So what I did was delete all the images and containers and rebuild but that took me a while since there were so many issues Here are the exact steps:

  1. Delete all images:
  • $ docker rm -vf $(docker ps -a -q)
  • $ docker rmi -f $(docker images -a -q)
  1. Restart Docker
  2. Delete pg_data folder:
  • $ rm -rf pg-data
  1. Rebuild
  • $ docker-compose up --build
  • $ docker-compose down
  • !!!! here is the step that causes so many issues, on Linux I have to delete pg_data again but on Mac I didn't. So do nothing.
  • $ docker-compose run api rake db:create
  • $ docker-compose run api rake db:migrate
Clone this wiki locally