Skip to content

Commit

Permalink
Fix: update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Benmuiruri committed Nov 21, 2023
1 parent 6470f5d commit a0cd4f9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion content/en/contribute/code/core/dev-environment.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@ npm run local-images

After the `npm` command completes successfully, a `local-build` folder will be created in the root directory of your `cht` project.

Confirm you have these four files in the `local-build` folder: `docker-compose.yml`, `cht-core.yml`, `cht-couchdb.yml` and `cht-couchdb-clustered.yml`

Open the project with your favorite text editor, navigate inside the `local-build` folder and update the `cht-couchdb.yml` file with the necessary ports.

In the `couchdb` configuration inside the `cht-couchdb.yml` file, right after the `volumes` property, add the following properties and save the changes:
Expand All @@ -172,10 +174,11 @@ echo "export COUCH_DB_USER=medic">> ~/.$(basename $SHELL)rc
echo "export COUCH_DB_PASSWORD=password">> ~/.$(basename $SHELL)rc
```

In your terminal, navigate inside the `local-build` folder and start the Docker containers:
In your terminal, navigate inside the `local-build` folder, stop any running Docker containers and start the CHT Docker containers:

```shell
cd ~/cht-core/local-build
docker kill $(docker ps -q)
docker-compose -f cht-couchdb.yml up -d
```

Expand Down

0 comments on commit a0cd4f9

Please sign in to comment.