React

907 ワード

PM 2の実行


https://medium.com/@devesu/how-to-start-reactjs-application-with-pm2-as-a-service-linux-macos-854d5df3fcf1
pm2 start --name <app name> npm -- start

次の導入


https://jcon.tistory.com/115
npm install next
npm i cross-env

  • for development
    pm2 start npm --name "next"-- run dev

  • for production
    npm run build
    pm2 start npm --name "next"-- start