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