Document steps for WSL (#1170)

This commit is contained in:
Daniel Shuy 2020-10-13 18:54:34 +08:00 committed by GitHub
parent ba9525551b
commit cbb098e2e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,6 +34,12 @@ cd app/client
./start-https.sh
```
#### WSL (Windows Subsystem for Linux)
Because Docker Desktop for Windows does not support `host` network mode (https://docs.docker.com/network/host/), to run `start-https.sh` in WSL, in `start-https.sh`, remove the `--network host` option from the call to the `docker` command.
In `app/client/docker/templates/nginx-linux.conf.template`, replace all occurrences of `http://localhost:3000` to `http://host.docker.internal:3000`.
### Steps to build & run the code:
1. Run `yarn`
2. Run `yarn start`