code-datascience / scripts /complete-install.sh
delqhi's picture
Deploy code-datascience agent
d07c56c verified
Raw
History Blame Contribute Delete
323 Bytes
#!/usr/bin/env bash
set -euo pipefail
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
mkdir -p "$ROOT/logs" "$ROOT/data"
if command -v npm >/dev/null 2>&1; then
npm --prefix "$ROOT" install
else
echo "npm is required" >&2
exit 1
fi
npm --prefix "$ROOT" run build
echo "complete-install finished for $(basename "$ROOT")"