For production at first start ‘npm run build’ then ‘npm run start’.
If the build stopped near to the end - add more RAM, at least 2GB and start all over.
For Ubuntu - restart PM2 process too with NGINX.
For production at first start ‘npm run build’ then ‘npm run start’.
If the build stopped near to the end - add more RAM, at least 2GB and start all over.
For Ubuntu - restart PM2 process too with NGINX.