refactor: remove portal deployment coupling
This commit is contained in:
@@ -64,11 +64,10 @@ RUN python -m venv /opt/venv \
|
||||
&& /opt/venv/bin/pip install --no-cache-dir --upgrade pip \
|
||||
&& (cd /app/harness && /opt/venv/bin/pip install --no-cache-dir .) \
|
||||
&& cp /app/harness/workflow.yaml /opt/venv/lib/python3.12/site-packages/workflow.yaml
|
||||
# Default locale e alias PSD convergono sul file canonico. Il CLI onora anche
|
||||
# THT_CONFIG, quindi cambiare CWD non cambia l'identita' dello workspace.
|
||||
# Il workspace locale predefinito converge sul file canonico. Il CLI onora anche THT_CONFIG,
|
||||
# quindi cambiare CWD non cambia l'identita' dello workspace.
|
||||
RUN mkdir -p /app/harness/config \
|
||||
&& cp --remove-destination /app/harness/workspaces/local.yaml /app/harness/config/tht.yaml \
|
||||
&& ln -sfn /app/harness/config/tht.yaml /app/harness/workspaces/psd.yaml
|
||||
&& cp --remove-destination /app/harness/workspaces/local.yaml /app/harness/config/tht.yaml
|
||||
# PiProcessManager (backend) prepende harnessDir/.venv/bin al PATH del child Pi → symlink al venv reale
|
||||
RUN ln -s /opt/venv /app/harness/.venv
|
||||
|
||||
|
||||
+2
-4
@@ -1,6 +1,4 @@
|
||||
# nginx per thothii-frontend: serve la SPA (modalità standalone) e reverse-proxy /api -> core.
|
||||
# In modalità embedded il portale proxya /datamart-builder/assets/ qui (solo asset statici);
|
||||
# il blocco /api non è usato in embedded (il portale hita core direttamente).
|
||||
# nginx per thothii-frontend: serve la SPA e inoltra /api al core sulla rete Compose.
|
||||
server {
|
||||
listen 8080;
|
||||
server_name _;
|
||||
@@ -29,7 +27,7 @@ server {
|
||||
chunked_transfer_encoding on;
|
||||
}
|
||||
|
||||
# manifest.json servito (lo legge il template tag Django in embedded)
|
||||
# manifest.json è servito come JSON.
|
||||
location = /manifest.json {
|
||||
default_type application/json;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user