From 79f7fe7c59139482db9cc441f3e17dd147be441e Mon Sep 17 00:00:00 2001 From: pranav-027 Date: Thu, 31 Oct 2024 10:11:56 +0530 Subject: [PATCH] fixed commands for database setup --- contributing/quickstart.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contributing/quickstart.md b/contributing/quickstart.md index bb7352f..2ef5e04 100644 --- a/contributing/quickstart.md +++ b/contributing/quickstart.md @@ -18,8 +18,8 @@ Now the website will run locally. You have some options on how to set up the dat ## (2) DATABASE SETUP There are two options here - a "test" database with generated data, or the production database (with sensitive information removed). -1. **Test database**: Quick to set up, but may not mirror real-world data well. `bin/rake db:reset` -2. **Exported database**: Takes 60-90 minutes to set up, but uses actual data from the live website. `bin/rake db:load:development` +1. **Test database**: Quick to set up, but may not mirror real-world data well. `docker exec -it rails bash -c "bin/rake db:reset"` +2. **Exported database**: Takes 60-90 minutes to set up, but uses actual data from the live website. `docker exec -it rails bash -c "bin/rake db:load:development"` ## (3) RUNNING TESTS Two options - running while your docker server is running, or running tests independently.