Archived
Serve Bootstrap, MDI and Dropzone locally, self-contained 502 page
deploy / deploy (push) Successful in 9s
deploy / deploy (push) Successful in 9s
The print server has to work without internet. The stylesheets, scripts and icon fonts came from jsdelivr and unpkg, offline the pages had no styles, icons or drag and drop. They are now in public/vendor, the same versions. The 502 page of nginx has its styles and the icon inline, as the app's files are not there while it is down. The proxied brother_ql_web pages get the MDI stylesheet for the navbar's printer icon, which was missing there.
This commit is contained in:
1 parent
563772197d
commit
0f7c18141b
12 files changed
+64
-15
No files matched your search
@@ -56,3 +56,5 @@ Runs as `sinatra.service` (systemd) on `rpi-printserver.hv.priesol.net`, under R
|
||||
== Dependency updates
|
||||
|
||||
`.gitea/workflows/renovate.yaml` runs Renovate on a schedule (Monday 06:00 Europe/Bratislava, or manually) to open PRs for outdated gems and GitHub Actions. See the "Dependency Dashboard" issue for current status.
|
||||
|
||||
The print server works without internet: Bootstrap, Material Design Icons and Dropzone are in `public/vendor/<name>-<version>/` (unchanged release files from jsdelivr/unpkg, without source maps; MDI only with the WOFF2 and WOFF fonts). Renovate does not update them, a new version is a new folder plus the paths in `views/layout.erb` (and `app.rb` for the MDI stylesheet of the proxied brother_ql_web pages). `nginx-502.html` is self-contained, nginx serves it from `/etc/nginx/error_pages/502.html` while the app is down. Only the ZPL preview in `/labels` needs internet (Labelary API).
|
||||
Reference in new issue
Block a user