scala-webapp-template
scala-webapp-template copied to clipboard
Set up local environment to be like production
The goal is that our local environment is as similar to production as possible, we have been previously hit by some issues that can't be reproduced locally, for example:
- Server-sent events were not being propagated to the frontend because nginx was trying to buffer the whole response.
- We experienced a weird issue once, where a
GET /path
url wasn't working in production due to some issue with nginx but it worked locally
Then, let's focus on:
- Use nginx as the entry point for backend/frontend (I already have a draft for this).
- Use SSL, https://github.com/FiloSottile/mkcert seems ideal.
I'd expect that:
- We get to a super simple setup so that everyone uses it.
- Update docs to use this approach.