Skip to content

Commit

Permalink
Merge branch 'refs/heads/develop' into gr-DCJ-654-sign-in
Browse files Browse the repository at this point in the history
  • Loading branch information
rushtong committed Sep 17, 2024
2 parents 9e5f497 + 62ad448 commit 3c59ed3
Show file tree
Hide file tree
Showing 7 changed files with 68 additions and 99 deletions.
15 changes: 9 additions & 6 deletions DEVNOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@ nvm install 22.6.0
npm install
```

3. Install configs for an environment. This example is for the `alpha` environment, but you can use values from any environment by looking at the deployed configs in https://duos-k8s.dsde-{%ENV%}.broadinstitute.org/config.json where {%ENV%} is any of `dev`, `staging`, `alpha`, or `prod`
Remember to set the `env` value appropriately. We use `local` for running via npm, but under docker, we use a real env like `dev`.
The installation steps outlined in this step can also be completed using the [render-configs.sh](scripts/render-configs.sh) script which can generate all required
files for local development.
3. Install configs for an environment. This example is for the `alpha` environment, but you can use values from any
environment by looking at the deployed configs in https://duos-k8s.dsde-{%ENV%}.broadinstitute.org/config.json where
{%ENV%} is any of `dev`, `staging`, `alpha`, or `prod`. Remember to set the `env` value appropriately, for example,
`dev`. Certain features are available only in specific environments. Setting the `env` value to the desired environment
will simulate it for local development. The installation steps outlined in this step can also be completed using the
[render-configs.sh](scripts/render-configs.sh) script which can generate all required files for local development.
```
cp config/alpha.json public/config.json
```
Expand Down Expand Up @@ -50,8 +52,9 @@ npm start
```
### Running under Docker

Update your local `docker-compose.yaml` file to mount the preferred `config.json` file in app volumes.
Remember to set the `env` value appropriately in `config.json`. We use `local` for running via npm, but under docker, we use a real env like `dev`
Update your local `docker-compose.yaml` file to mount the preferred `config.json` file in app volumes. Remember to set
the `env` value appropriately, for example, `dev`. Certain features are available only in specific environments. Setting
the `env` value to the desired environment will simulate it for local development.

```yaml
volumes:
Expand Down
Loading

0 comments on commit 3c59ed3

Please sign in to comment.