Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update of CHT4 local setup documentation #897

Merged
merged 3 commits into from
Dec 16, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 17 additions & 3 deletions content/en/apps/tutorials/local-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,15 @@ COUCHDB_PASSWORD=password
EOF
```

Run the following command to start your CHT instance using Docker Compose:
Run the following command to start your CHT instance using Docker Compose. Ensure that Docker is installed and running:

```shell
cd ~/cht-local-setup/upgrade/
docker-compose up
```
Note that the first time you run your CHT instance it may take a while. Incase you run into issues running your docker file, ensure that the following setting in Docker is checked.
>> Settings >> General >> Use Docker Compose V2


{{< figure src="medic-login.png" link="medic-login.png" class="right col-6 col-lg-8" >}}

Expand All @@ -94,12 +97,23 @@ This CHT instance is empty and has no data in it. While you're free to explore a

### 2. Install cht-conf

Using npm and python on your terminal, install cht-conf and pyxform globally using the following commands:

Using npm on your terminal, install cht-conf globally using the command below. Confirm if you have previously installed cht-conf.
If you have, skip this step.
```shell
npm install -g cht-conf
```
Using python on your terminal, install pyxform globally using the command below.
```shell
sudo python -m pip install git+https://github.com/medic/[email protected]#egg=pyxform-medic
```
Incase you encounter issues while installing pyxform using the command above. Paste the commands below in your terminal:
```shell
brew install pyenv
pyenv install 2.7.18
pyenv global 2.7.18
echo "eval \"\$(pyenv init --path)\"" >> ~/.zshrc
exec zsh
```

{{< figure src="confirm-cht-conf.png" link="confirm-cht-conf.png" class="right col-6 col-lg-8" >}}

Expand Down