build: bundle remote/ assets into /opt/llm-trainer/remote/
This commit is contained in:
@@ -44,6 +44,7 @@ rm -rf "${BUILD}"
|
||||
|
||||
install -d "${BUILD}/DEBIAN"
|
||||
install -d "${BUILD}/opt/llm-trainer/backend"
|
||||
install -d "${BUILD}/opt/llm-trainer/remote"
|
||||
install -d "${BUILD}/opt/llm-trainer/frontend"
|
||||
install -d "${BUILD}/opt/llm-trainer/venv"
|
||||
install -d "${BUILD}/lib/systemd/system"
|
||||
@@ -56,6 +57,9 @@ install -d "${BUILD}/var/log/llm-trainer"
|
||||
cp "${REPO_ROOT}/backend/"*.py "${BUILD}/opt/llm-trainer/backend/"
|
||||
cp "${REPO_ROOT}/backend/requirements.txt" "${BUILD}/opt/llm-trainer/backend/"
|
||||
|
||||
# Copy remote bootstrap assets
|
||||
cp "${REPO_ROOT}/packaging/remote/"* "${BUILD}/opt/llm-trainer/remote/"
|
||||
|
||||
# Copy built frontend
|
||||
cp -r "${REPO_ROOT}/frontend/dist/." "${BUILD}/opt/llm-trainer/frontend/"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user