From 7761915f3933ddc127ad75f82b93fb97f04ddfcf Mon Sep 17 00:00:00 2001 From: Muhammed Mustafa Date: Thu, 23 Mar 2023 21:31:43 +0200 Subject: [PATCH] fix(docs): instruction of how to install local development environment (#49808) Co-authored-by: Naomi Carrigan --- .gitpod.yml | 6 +++--- docs/how-to-add-cypress-tests.md | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.gitpod.yml b/.gitpod.yml index 9904510b369..67a3dec9a97 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -46,12 +46,12 @@ tasks: cp sample.env .env && pnpm install && gp sync-done pnpm-install && - gp ports await 27017 && - pnpm run seed && - mongo --eval "db.fsyncLock(); db.fsyncUnlock()" + gp ports await 27017 command: > pnpm run create:config && pnpm run build:curriculum && + pnpm run seed && + mongo --eval "db.fsyncLock(); db.fsyncUnlock()" && gp ports await 27017 && pnpm run develop:server diff --git a/docs/how-to-add-cypress-tests.md b/docs/how-to-add-cypress-tests.md index 68818e5408a..458c697b580 100644 --- a/docs/how-to-add-cypress-tests.md +++ b/docs/how-to-add-cypress-tests.md @@ -55,10 +55,11 @@ To run tests against production builds, replace `dev` with `prd` below. If starting the GitPod environment did not automatically develop the environment: -- Start the database +- Follow the [MongoDB installation guide](https://www.mongodb.com/basics/get-started). +- Create a config file. ```console -mongod +pnpm run create:config ``` - Seed the database