Skip to content

Commit 2241546

Browse files
authored
Update README.md
1 parent 6b5e21d commit 2241546

1 file changed

Lines changed: 3 additions & 33 deletions

File tree

README.md

Lines changed: 3 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -11,40 +11,10 @@ Create a virtual environment and install the package, then launch panel.
1111
python -m venv .venv
1212
source .venv/bin/activate (or .venv/bin/Scripts/activate on Windows)
1313
pip install -e .
14-
panel serve ./src/aind_metadata_viz/app.py --show
14+
panel serve ./src/aind_metadata_viz/app.py --show --autoreload
1515
```
1616

17-
## Release
18-
19-
We directly expose the process/port on the internal AI network. To update and restart:
20-
21-
To update build
22-
```
23-
ssh ibs-davidf-vm2
24-
cd aind-metadata-viz
25-
git pull
26-
```
27-
28-
To restart
29-
```
30-
ps aux | grep panel
31-
kill pid
32-
./start_viz.sh
33-
```
34-
35-
`start_viz.sh` is:
36-
```
37-
#!/bin/bash -x
38-
39-
cd ~/aind-metadata-viz
40-
41-
source .venv/bin/activate
42-
pip install -e .
43-
44-
nohup panel serve ./src/aind_metadata_viz/app.py --allow-websocket-origin=10.128.141.92:5006 > ~/logfile.log 2>&1 &
45-
```
46-
47-
The process (should) auto-restart on reboot. See `crontab -e`
17+
To launch the `query` and `view` apps replace the `app.py` with the appropriate launcher.
4818

4919
## CI/CD
5020
There is a `Dockerfile` which includes the entrypoint to launch the app.
@@ -59,4 +29,4 @@ docker run -e ALLOW_WEBSOCKET_ORIGIN=localhost:8000 -p 8000:8000 aind-metadata-v
5929

6030
### AWS
6131
1. On pushes to the `dev` or `main` branch, a GitHub Action will run to publish a Docker image to `ghcr.io/allenneuraldynamics/aind-metadata-viz:dev` or `ghcr.io/allenneuraldynamics/aind-metadata-viz:latest`.
62-
2. The image can be used by a ECS Service in AWS to run a task container. Application Load Balancer can be used to serve the container from ECS. Please note that the task must be configured with the correct env variables (e.g. `API_GATEWAY_HOST`, `ALLOW_WEBSOCKET_ORIGIN`).
32+
2. The image can be used by a ECS Service in AWS to run a task container. Application Load Balancer can be used to serve the container from ECS. Please note that the task must be configured with the correct env variables (e.g. `API_GATEWAY_HOST`, `ALLOW_WEBSOCKET_ORIGIN`).

0 commit comments

Comments
 (0)