The site at https://foss-earth.github.io/: a landing page at / and the Earth
app at /app/. The app itself is developed in
foss-earth/app; this repository only copies
its build into the site.
With app checked out next to this repository (see its README):
cd ~/gh/foss-earth/app && npm run build
cd ../foss-earth.github.io && npm run build
npm run previewbuild puts the site in dist/: index.html and landing.css, the app's
dist/ under app/, and foss-earth-sw.js. preview serves dist/ at
http://127.0.0.1:4174/.
The app used to be served at the root, so two things keep old visitors working:
- Old links to the app carry its state in the query or hash, so the landing page
sends any URL with a query or hash to
/app/with them. - The app kept its files on visitors' devices with a service worker at
/foss-earth-sw.js. The file at that address now deletes those files and unregisters the worker; the app's current worker lives under/app/.
cd ~/gh/foss-earth/foss-earth.github.io && npm run deployrecords what the app is built from, builds the app and this site, and
publishes dist/ to the gh-pages branch, which GitHub Pages serves. That
branch also holds pages that aren't built here, /eac-prototype/ and
/examples/; deploying keeps them and replaces everything else. The same
steps are written in
foss-earth/docs
so the other repositories can find them. Pushing main does not run this.
Preserve NOTICE, commercial licensing and asset-specific rights. The project license does not relicense external imagery, data or inherited assets.