..
2025-05-20 00:14:01 -07:00
2025-05-27 12:33:33 -07:00
2025-05-16 13:37:05 -07:00
2025-04-10 14:48:26 -07:00
2025-04-07 17:20:00 -07:00
2025-04-07 17:20:00 -07:00
2025-05-19 01:02:52 -07:00
2025-05-16 14:35:17 -07:00
2025-05-16 14:27:06 -07:00

Backstory web frontend

Development

docker compose up frontend -d

The container bind mounts frontend/ into the container, and launches npm start. Once running, you can now access https://localhost:3000 to view the frontend.

To monitor progress and build errors:

docker compose logs -f frontend

When you are happy with your changes and wish to deploy to production:

  1. Commit your changes:
git commit
  1. Build the static deployed version:
docker compose exec frontend shell ./build.sh
  1. If successful, tag your version:
git tag -a "deployed-$(date +%y%m%d)" -m "Deployed on $(date)"
  1. Push your changes:
git push origin main --tags

Production

Static production build is in deployed. You do not need to be running the frontend container once deployed to production.

When you run the build.sh script, it first builds to build. If that succeeds, it then runs rsync -avprl --delete build/ deployed/ to update the deployed static content.