This repo contains all things QCMS related.
- Run
npm i
in HSPW-V3 root folder to install required packages - Run
npm run dev
in HSPW-V3 root folder to start the application onlocalhost:3000
- Route to
./src/server
folder - Run
npm i
to install required packages - Run
npm run dev
to start the server onlocalhost:8000
ssh
to the ec2 instance- Make sure
node
is installed in the ec2 instance, substitute the commandnvm install 18.15.0
(Instruction: here) - Make sure
pm2
is installed in the ec2 instance (Instruction: here) cd
intoHSPW-V3
folder- Frontend
- Run
npm i
in HSPW-V3 root folder to install required packages
- Run
- Backend
cd
into./HSPW-V3/src/server
- Run
npm i
to install required packages
cd
back to HSPW-V3 root folder- Build the static frontend file by running
- DEV
- Run
npm run build:dev
- Run
pm2 start ecosystem.config.js --env dev
- Run
- PROD
- Run
npm run build:prod
- Run
pm2 start ecosystem.config.js --env prod
- Run
- DEV
pm2 restart hspw
pm2 reload hspw
pm2 stop hspw
pm2 delete hspw
- Run
pm2 logs
- Local
- Edit
.env.local
- Edit
- DEV
- Edit
.env.development
- Edit
- PROD
- Edit
.env.production
- Edit
- Local
cd
into./src/server
- Edit
.env
- DEV
- Edit
env_dev
section inecosystem.config.js
- Edit
- PROD
- Edit
end_prod
section inecosystem.config.js
- Edit