Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into dev-docs
Browse files Browse the repository at this point in the history
  • Loading branch information
sbliven committed Nov 16, 2023
2 parents 7b39e4b + 52b3ac2 commit 4292825
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 15 deletions.
23 changes: 10 additions & 13 deletions dev/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ The `docker-compose.yaml` file is constructed to prepare containers with all dep

```bash
cd /home/node/app
node .
npm run start
```

### Backend-next `be_next`
Expand All @@ -86,46 +86,43 @@ The frontend uses a custom Dockerfile with the following modifications:

```bash
cd /frontend
npm run serve -- --host 0.0.0.0 --disable-host-check
npm run start -- --host 0.0.0.0 --disable-host-check
```

A custom Dockerfile is used because the production image builds the static site and then serves it via nginx. The development image serves the site using `ng serve` (webpack-dev-server) so it reflects the latest code and updates when files change.
`

### Search `search`

```
cd /home/node/app
node .
npm run start
```

### Landing Page `lp`

```bash
cd /home/node/app
npm run serve -- --host 0.0.0.0 --disable-host-check
npm run start -- --host 0.0.0.0 --disable-host-check
```

### OAI-PMH `oi`

```bash
cd /home/node/app
node .
npm run start
```

### Proposals `pr`

```bash
cd /usr/src/proposals

node .
python src/main.py
```

### Backend `be` and `be_next`
### Jupyter

Simply browse to localhost:8888

```bash
cd /usr/src/app
python copy_public_ds.py
```
## Reclaiming space

This compose file creates a new docker volume with test data. Removing this requires adding `--volumes` when shutting down the containers:
Expand Down
2 changes: 0 additions & 2 deletions dev/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,6 @@ services:
- ../frontend:/frontend
- ./config/frontend/config.json:/frontend/src/assets/config.json
- /frontend/node_modules
- /frontend/dist
# browser required for test suite; move to installer layer
command: /bin/sh -c "while true; do sleep 600; done"
ports:
# Dev image with `node start` uses port 4200
Expand Down

0 comments on commit 4292825

Please sign in to comment.