-
Notifications
You must be signed in to change notification settings - Fork 23
Errors
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:
- Delete all images:
$ docker rm -vf $(docker ps -a -q)
$ docker rmi -f $(docker images -a -q)
- Restart Docker
- Delete pg_data folder:
$ rm -rf pg-data
- 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