-
Notifications
You must be signed in to change notification settings - Fork 4
デモ環境
Kazane Shimizu edited this page Jul 29, 2024
·
9 revisions
- Lightsail に ssh でログイン
- cd /home/bitnami/stack/nginx/html/collections
- pm2 stop collections
- sudo /opt/bitnami/ctlscript.sh stop nginx
- git pull
- npm install --legacy-peer-deps
- 必要に応じて) npm run db:reset / npm run seed:dev
- 止まるのでビルド前に再起動
- (ヒープメモリ確保)
- export NODE_OPTIONS="--max-old-space-size=1024"
- npm run build
- sudo /opt/bitnami/ctlscript.sh start nginx
- pm2 start collections
もし、pm2なくなってたら pm2 start /home/bitnami/stack/nginx/html/collections/dist/build/main.js --name collections