Skip to content

Commit

Permalink
Use per-blueprint static dir.
Browse files Browse the repository at this point in the history
This ensures that static is available even when the ingress is only
allowing traffic with the url prefix of the blueprint.
  • Loading branch information
ctslater committed Oct 17, 2024
1 parent be4eb01 commit 679c5d1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion python/lsst/production/tools/tractTable.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
import numpy as np
import urllib.parse
import yaml
bp = Blueprint("metrics", __name__, url_prefix="/plot-navigator/metrics")
bp = Blueprint("metrics", __name__, url_prefix="/plot-navigator/metrics", static_folder="../../../../static")

NO_BUTLER = True

Expand Down
6 changes: 3 additions & 3 deletions templates/base.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<!doctype html>
<title>Rubin Production Tools</title>
<link rel="stylesheet" href="{{ url_for('static', filename='bootstrap.min.css') }}">
<link rel="stylesheet" href="{{ url_for('static', filename='custom.css') }}">
<link rel="icon" href="{{ url_for('static', filename='rubin-favicon-transparent-32px.png') }}">
<link rel="stylesheet" href="{{ url_for('.static', filename='bootstrap.min.css') }}">
<link rel="stylesheet" href="{{ url_for('.static', filename='custom.css') }}">
<link rel="icon" href="{{ url_for('.static', filename='rubin-favicon-transparent-32px.png') }}">
{% block additional_refs %}{% endblock %}
<nav id="header" class="navbar navbar-expand-md navbar-dark bg-dark sticky-top shadow px-4">
<a class="navbar-brand" href="{{ url_for('index') }}">Rubin Production Tools</a>
Expand Down

0 comments on commit 679c5d1

Please sign in to comment.