Answer the question
In order to leave comments, you need to log in
React + Express how to properly deploy a build in production?
I have a React app and an Express server. There is also ubuntu 18.04 and Nginix. When I write npm run build. React asks to run
serve -s buildif I run it static React works. But if I turn off the console, it crashes.
Answer the question
In order to leave comments, you need to log in
You need some kind of process manager through which to run serve or the same express.
We use pm2.keymetrics.io/.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question