Document deployment and expose weight manifest
This commit is contained in:
@@ -2,6 +2,13 @@
|
||||
set -euo pipefail
|
||||
|
||||
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
if [[ -f "${ROOT_DIR}/.env" ]]; then
|
||||
set -a
|
||||
# shellcheck disable=SC1091
|
||||
source "${ROOT_DIR}/.env"
|
||||
set +a
|
||||
fi
|
||||
|
||||
BACKEND_ENV="${SEG_BACKEND_CONDA_ENV:-seg_smp}"
|
||||
HOST="${SEG_BACKEND_HOST:-0.0.0.0}"
|
||||
PORT="${SEG_BACKEND_PORT:-8010}"
|
||||
|
||||
@@ -2,7 +2,13 @@
|
||||
set -euo pipefail
|
||||
|
||||
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
if [[ -f "${ROOT_DIR}/.env" ]]; then
|
||||
set -a
|
||||
# shellcheck disable=SC1091
|
||||
source "${ROOT_DIR}/.env"
|
||||
set +a
|
||||
fi
|
||||
|
||||
cd "${ROOT_DIR}/frontend"
|
||||
npm install
|
||||
exec npm run dev -- --host 0.0.0.0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user