scala-webapp-template icon indicating copy to clipboard operation
scala-webapp-template copied to clipboard

Set up local environment to be like production

Open AlexITC opened this issue 2 years ago • 0 comments

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:

  1. Server-sent events were not being propagated to the frontend because nginx was trying to buffer the whole response.
  2. 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:

  1. Use nginx as the entry point for backend/frontend (I already have a draft for this).
  2. Use SSL, https://github.com/FiloSottile/mkcert seems ideal.

I'd expect that:

  1. We get to a super simple setup so that everyone uses it.
  2. Update docs to use this approach.

AlexITC avatar Nov 12 '22 19:11 AlexITC