TOT-97 "fix error 502"
Issue: The problem here is actually that systemd was killing the apps due to timing out because the service type was set to notify
.
Fix:
- used
Type=simple
and configure the service file - splitted into 2 services. one for the backend and one for the frontend
- serve both modules in production profile, not in dev profile as before
- for the frontend, add
build
as a step to serve it as a static site (and changed fromnpm run dev
tonpm run start
) - for the backend, changed from
npm run dev
tonpm start
- for the frontend, add
Closes TOT-97