Merge branch 'main' of github.com:dograh-hq/dograh

This commit is contained in:
Abhishek 2026-04-22 15:26:49 +00:00
commit 9298116887
11 changed files with 314 additions and 17 deletions

View file

@ -217,6 +217,15 @@ if ! alembic -c "$BASE_DIR/api/alembic.ini" upgrade head; then
fi
log_info "Migrations complete"
TS_VALIDATOR_DIR="$BASE_DIR/api/mcp_server/ts_validator"
if [[ -f "$TS_VALIDATOR_DIR/package.json" ]]; then
log_info "Installing ts_validator npm dependencies"
if ! (cd "$TS_VALIDATOR_DIR" && npm install); then
log_error "npm install for ts_validator failed. Aborting — nothing has been touched."
exit 1
fi
fi
###############################################################################
### PHASE 2: START NEW WORKERS
###############################################################################

View file

@ -127,7 +127,16 @@ NGINX_UPSTREAM_TEMPLATE="$BASE_DIR/nginx/dograh_upstream.conf.template"
NGINX_UPSTREAM_CONF="/etc/nginx/conf.d/dograh_upstream.conf"
###############################################################################
### 4) Run migrations
### 4) Install ts_validator npm dependencies
###############################################################################
TS_VALIDATOR_DIR="$BASE_DIR/api/mcp_server/ts_validator"
if [[ -f "$TS_VALIDATOR_DIR/package.json" ]]; then
(cd "$TS_VALIDATOR_DIR" && npm install)
fi
###############################################################################
### 5) Run migrations
###############################################################################
alembic -c "$BASE_DIR/api/alembic.ini" upgrade head