Use wasm ephemeris locally and document Caddy serving
This commit is contained in:
parent
dbe9758b7c
commit
ba47f6dae4
7 changed files with 3876 additions and 25 deletions
|
|
@ -4,3 +4,8 @@ browser based tool to find auspicious hours for magical operations
|
|||
[http://almanac.sublunar.space/](http://almanac.sublunar.space/)
|
||||
|
||||
check the article [here](http://sublunar.space/2018-12-sublunar-almanac.html)
|
||||
|
||||
## Running without PHP (WASM path)
|
||||
- Build wasm assets: `podman run --rm --userns=keep-id -v $(pwd):/src:Z -w /src/lib/sweph docker.io/emscripten/emsdk make -f JSMakefile clean pmom install`
|
||||
- Serve statically with Caddy (example in `Caddyfile`): `caddy run --config Caddyfile`
|
||||
- Ensure `js/pmom.js` and `js/pmom.wasm` are served (Caddyfile sets `application/wasm` for `*.wasm`).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue