Skip to content

Commit 34ea6a7

Browse files
committed
Global spinner and reuse session
1 parent d2f133f commit 34ea6a7

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,5 @@ CMD ["panel", "serve", "panel/app.py", \
4646
"--cookie-secret", "panel_cookie_secret", \
4747
"--basic-login-template", "panel/login.html", \
4848
"--logout-template", "panel/logout.html", \
49-
"--static-dirs", "_static=_static"]
49+
"--static-dirs", "_static=_static", \
50+
"--reuse-sessions", "--global-loading-spinner"]

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,15 @@ test: ## Run tests with coverage
3939
pytest --cov simdec --cov-report term-missing
4040

4141
serve-dev: ## Serve Panel dashboard - Dev mode
42-
panel serve panel/app.py --show --autoreload
42+
panel serve panel/app.py --show --autoreload --reuse-sessions --global-loading-spinner
4343

4444
serve: ## Serve Panel dashboard - Prod mode
4545
PANEL_BASIC_AUTH=$(PANEL_TOKEN) panel serve panel/app.py \
4646
--cookie-secret panel_cookie_secret \
4747
--basic-login-template panel/login.html \
4848
--logout-template panel/logout.html \
49-
--static-dirs _static=docs/_static
49+
--static-dirs _static=docs/_static \
50+
--reuse-sessions --global-loading-spinner
5051

5152
build-local:
5253
docker build -f ./Dockerfile \

0 commit comments

Comments
 (0)