fix: disable fnos web cache for live debugging
This commit is contained in:
@@ -7,3 +7,4 @@ services:
|
|||||||
- "${STORYFORGE_WEB_V4_DEV_PORT:-19192}:80"
|
- "${STORYFORGE_WEB_V4_DEV_PORT:-19192}:80"
|
||||||
volumes:
|
volumes:
|
||||||
- ../../storyforge/web/storyforge-web-v4:/usr/share/nginx/html:ro
|
- ../../storyforge/web/storyforge-web-v4:/usr/share/nginx/html:ro
|
||||||
|
- ./storyforge-fnos-web-v4.nginx.conf:/etc/nginx/conf.d/default.conf:ro
|
||||||
|
|||||||
27
deploy/storyforge-fnos-web-v4.nginx.conf
Normal file
27
deploy/storyforge-fnos-web-v4.nginx.conf
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
server_name _;
|
||||||
|
|
||||||
|
root /usr/share/nginx/html;
|
||||||
|
index index.html;
|
||||||
|
|
||||||
|
location = /index.html {
|
||||||
|
add_header Cache-Control "no-store";
|
||||||
|
try_files $uri =404;
|
||||||
|
}
|
||||||
|
|
||||||
|
location = /assets/storyforge-runtime-config.js {
|
||||||
|
add_header Cache-Control "no-store";
|
||||||
|
try_files $uri =404;
|
||||||
|
}
|
||||||
|
|
||||||
|
location /assets/ {
|
||||||
|
add_header Cache-Control "no-store";
|
||||||
|
try_files $uri =404;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
|
add_header Cache-Control "no-store";
|
||||||
|
try_files $uri $uri/ /index.html;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -94,6 +94,7 @@ echo "[3/6] sync runtime config override"
|
|||||||
|
|
||||||
echo "[4/6] sync compose file"
|
echo "[4/6] sync compose file"
|
||||||
"$FNOS_SCP" "$REMOTE_COMPOSE_DIR" "$ROOT/deploy/storyforge-fnos-web-v4.compose.yaml"
|
"$FNOS_SCP" "$REMOTE_COMPOSE_DIR" "$ROOT/deploy/storyforge-fnos-web-v4.compose.yaml"
|
||||||
|
"$FNOS_SCP" "$REMOTE_COMPOSE_DIR" "$ROOT/deploy/storyforge-fnos-web-v4.nginx.conf"
|
||||||
|
|
||||||
echo "[5/6] restart fnOS web container"
|
echo "[5/6] restart fnOS web container"
|
||||||
run_remote_sudo "$PASSWORD" "cd $(shell_quote "$REMOTE_COMPOSE_DIR") && STORYFORGE_WEB_V4_DEV_PORT=$(shell_quote "$WEB_PORT") docker compose -f $(shell_quote "$REMOTE_COMPOSE_FILE") up -d --force-recreate storyforge-web-v4-dev && STORYFORGE_WEB_V4_DEV_PORT=$(shell_quote "$WEB_PORT") docker compose -f $(shell_quote "$REMOTE_COMPOSE_FILE") ps"
|
run_remote_sudo "$PASSWORD" "cd $(shell_quote "$REMOTE_COMPOSE_DIR") && STORYFORGE_WEB_V4_DEV_PORT=$(shell_quote "$WEB_PORT") docker compose -f $(shell_quote "$REMOTE_COMPOSE_FILE") up -d --force-recreate storyforge-web-v4-dev && STORYFORGE_WEB_V4_DEV_PORT=$(shell_quote "$WEB_PORT") docker compose -f $(shell_quote "$REMOTE_COMPOSE_FILE") ps"
|
||||||
|
|||||||
Reference in New Issue
Block a user