chore(deploy): keep start scripts and systemd units in deploy/
The three services become quant-trading-monitor, quant-trading-api and quant-trading-vite, run from /home/gahow/projects/quant-trading. Their units were previously untracked files in ~/.config/systemd/user. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
14
deploy/start-web-api.sh
Executable file
14
deploy/start-web-api.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/../web" && pwd)"
|
||||
cd "${ROOT_DIR}"
|
||||
|
||||
export PATH="/home/gahow/.local/bin:/home/gahow/.nvm/versions/node/v24.13.1/bin:$PATH"
|
||||
export HOST="127.0.0.1"
|
||||
export PORT="${PORT:-8787}"
|
||||
# Node's built-in fetch does not read HTTPS_PROXY unless this opt-in is enabled.
|
||||
# The configured Nasdaq/Yahoo data sources require the host's local proxy.
|
||||
export NODE_USE_ENV_PROXY="${NODE_USE_ENV_PROXY:-1}"
|
||||
|
||||
exec npx tsx src/server/index.ts
|
||||
Reference in New Issue
Block a user