User Tools

Site Tools


pm2:setup

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
pm2:setup [2021/07/27 03:58] – ltsover9000pm2:setup [2021/07/27 05:48] (current) – ltsover9000
Line 9: Line 9:
  
 best > https://medium.com/@seanconrad_25426/setting-up-a-create-react-app-with-pm2-and-nginx-on-digitalocean-1fd9c060ac1f best > https://medium.com/@seanconrad_25426/setting-up-a-create-react-app-with-pm2-and-nginx-on-digitalocean-1fd9c060ac1f
 +
 +
 +
 +
 +I Couldn't figure out how to fix the PORT issues with PM2 so i manually altered `react-scripts/scripts/start.js` to use another port. 
  
  
 ``` ```
-sudo pm2 start "npm start" --name "smashgg" --interpreter "/home/pi/.nvm/versions/node/v12.18.2/bin/node" --watch +export NODE_PORT=3002 && sudo pm2 start node_modules/react-scripts/scripts/start.js --name "smashgg" --watch --interpreter "/home/pi/.nvm/versions/node/v12.18.2/bin/node"  -- export NODE_PORT=3002 PORT=3002 
 ``` ```
 +
 +
 +
pm2/setup.1627358326.txt.gz · Last modified: by ltsover9000