Bereitstellen von React App PM2 CREATE CREATE
pm2 serve build 8082 --spa
cunhaedu
pm2 serve build 8082 --spa
pm2 start --name <your-app-name> npm -- start
# install pm2
# CD inside app folder
# for Yarn
yarn build
pm2 start "yarn start" --name my-react-app --max-memory-restart "200M" --log "../my-react-app.log"
# for NPM
npm run build
pm2 start "npm run start" --name my-react-app --max-memory-restart "200M" --log "../my-react-app.log"
pm2 startup
pm2 save
pm2 start my-app/node_modules/react-scripts/scripts/start.js --name "my-app"