좌석 예약 시스템
- Ubuntu 20.04
- node.js v16.7.0
sudo apt install nginx build-essential python -y
npm i && cd client && npm i
npx sequelize-cli db:migrate
npm start
npm run lint
cd client && npm run lint
cd client && npm run build
npm i -g pm2
pm2 start ecosystem.config.js --env production
pm2 save
pm2 startup
비활성화
pm2 unstartup
server {
server_name __server_name__;
location / {
proxy_pass http://localhost:3000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
}