mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-07 07:55:16 +02:00
Merge branch 'main' of github.com:dograh-hq/dograh
This commit is contained in:
commit
9298116887
11 changed files with 314 additions and 17 deletions
|
|
@ -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
|
||||
###############################################################################
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue