Skip to content
This repository was archived by the owner on Apr 3, 2023. It is now read-only.

Fixing Simply Static output

Anthony Fok edited this page Apr 25, 2022 · 6 revisions

Motivation

Simply Static does not interpret JavaScript files (AFAIK), and is thus unable to capture the files referenced within JavaScript files. So, we need to do some tinkering.

See https://github.com/OpenDRR/riskprofiler-cms/blob/main/bin/fix-website-for-static-hosting.sh for a work-in-progress.

TODO

  • Rename the script
  • Instead of fetching from HabitatSeven's demo site, copy them from local Git repo instead, and perhaps even interpret the PHP locally.
  • Rename my fake .php files to .html

Troubleshooting

Starting from where fix-website-for-static-hosting.sh left off:

Failed to load resource: the server responded with a status of 404 (Not Found)
http://test.riskprofiler.local/site/assets/themes/fw-child/template/https://remote-demo-site/scenario/cascadia-interface-best-fault/
Clone this wiki locally