Static collection in Docker build
This commit is contained in:
@@ -29,5 +29,6 @@ RUN rm -rf /app/Dockerfile* \
|
||||
/app/data-loader \
|
||||
/app/keys \
|
||||
/app/requirements.txt
|
||||
RUN python3 manage.py collectstatic
|
||||
CMD ["gunicorn","--bind","0.0.0.0:8000","--workers","3","VorgabenUI.wsgi:application"]
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ spec:
|
||||
mountPath: /data
|
||||
containers:
|
||||
- name: web
|
||||
image: git.baumann.gr/adebaumann/vui:0.927
|
||||
image: git.baumann.gr/adebaumann/vui:0.928
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- containerPort: 8000
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
.nested-inline h3 {
|
||||
background-color: #f3f3f3;
|
||||
border-bottom: 1px solid #ccc;
|
||||
padding: 0.4em;
|
||||
margin: 0;
|
||||
font-weight: bold;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.nested-inline fieldset.module {
|
||||
margin-bottom: 1em;
|
||||
border: 1px solid #ccc;
|
||||
padding: 0;
|
||||
}
|
||||
@@ -1,24 +0,0 @@
|
||||
document.addEventListener("DOMContentLoaded", function () {
|
||||
const inlineSections = document.querySelectorAll(".nested-inline fieldset.module");
|
||||
|
||||
inlineSections.forEach(section => {
|
||||
const header = section.querySelector("h2");
|
||||
const content = Array.from(section.children).filter(child => !child.matches("h2"));
|
||||
|
||||
if (header && content.length > 0) {
|
||||
header.style.cursor = "pointer";
|
||||
header.style.userSelect = "none";
|
||||
header.style.background = "#f3f3f3";
|
||||
header.style.borderBottom = "1px solid #ccc";
|
||||
header.style.padding = "4px";
|
||||
|
||||
// Collapse by default
|
||||
content.forEach(el => el.style.display = "none");
|
||||
|
||||
header.addEventListener("click", () => {
|
||||
const currentlyVisible = content[0].style.display !== "none";
|
||||
content.forEach(el => el.style.display = currentlyVisible ? "none" : "block");
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user