cd packages/serveryarnnode src/index.js
yarn add pm2 globalcd packages/serveryarnyarn prod
Note: config the database in package/server/config
cd pacakges/siteyarnecho REACT_APP_SERVER=http://localhost:3001 > .envyarn start
cd packages/siteyarnecho REACT_APP_SERVER=http://localhost:3001 > .envyarn build- Config nginx to the build directory.
Note: For step 3, change the http://localhost:3001 to your api server endpoint.