Skip to content

Commit

Permalink
fix: Consider blanks in paths
Browse files Browse the repository at this point in the history
Co-authored-by: Martin Lehmann <[email protected]>
  • Loading branch information
jamilraichouni and Wuestengecko committed Jan 16, 2025
1 parent 597834c commit d45bde4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ run: frontend/dist/static/env.js
sed -i "s|__ROUTE_PREFIX__||g" frontend/dist/static/env.js
MODE=production python frontend/fetch-version.py
python -c "from capellambse_context_diagrams import install_elk; install_elk()"
MODEL=$(MODEL) TEMPLATES_DIR=$(TEMPLATES_DIR) uvicorn \
MODEL="$$MODEL" TEMPLATES_DIR="$$TEMPLATES_DIR" uvicorn \
--host=$(CAPELLA_MODEL_EXPLORER_HOST_IP) \
--port=$(CAPELLA_MODEL_EXPLORER_PORT) \
capella_model_explorer.backend.main:app
Expand All @@ -41,7 +41,7 @@ dev-backend:
sed -i "s|__ROUTE_PREFIX__||g" frontend/dist/static/env.js
MODE=production python frontend/fetch-version.py
python -c "from capellambse_context_diagrams import install_elk; install_elk()"
MODEL=$(MODEL) TEMPLATES_DIR=$(TEMPLATES_DIR) uvicorn \
MODEL="$$MODEL" TEMPLATES_DIR="$$TEMPLATES_DIR" uvicorn \
--host=$(CAPELLA_MODEL_EXPLORER_HOST_IP) \
--port=$(CAPELLA_MODEL_EXPLORER_PORT) \
--reload \
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Clone, then build and run locally with Docker:
docker build -t model-explorer:latest .
docker run --name=cme -e ROUTE_PREFIX="" \
-v /absolute/path/to/your/model/folder/on/host:/model \
-v $(pwd)/templates:/views -p 8000:8000 model-explorer
-v "$PWD/templates:/views" -p 8000:8000 model-explorer
```

Then open your browser at `http://localhost:8000/views` and start exploring
Expand Down

0 comments on commit d45bde4

Please sign in to comment.