Skip to content

Commit b5addea

Browse files
committed
fix Makefile to redirect devcontainer correctly, and updated .devcontainer/.bashrc to auto-activate venv
1 parent b358a12 commit b5addea

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.devcontainer/.bashrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
11
# Export VENV_DIR environment variable for virtual environment path
2+
23
export VENV_DIR="$HOME/.venv/mcpgateway"
4+
5+
# Automatically activate the virtual environment if it exists
6+
if [ -f "$VENV_DIR/bin/activate" ]; then
7+
source "$VENV_DIR/bin/activate"
8+
fi

Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,7 @@ serve-ssl: certs
139139
SSL=true CERT_FILE=certs/cert.pem KEY_FILE=certs/key.pem ./run-gunicorn.sh
140140

141141
dev:
142-
@$(VENV_DIR)/bin/uvicorn mcpgateway.main:app --reload --reload-exclude='public/'
143-
142+
@$(VENV_DIR)/bin/uvicorn mcpgateway.main:app --host 0.0.0.0 --port 8000 --reload --reload-exclude='public/'
144143
run:
145144
./run.sh
146145

0 commit comments

Comments
 (0)