Skip to content

Commit

Permalink
fix[#384] : 배포 스크립트 수정 및 dependency 수정 - close #384
Browse files Browse the repository at this point in the history
- 배포 환경에서 nodemon을 사용하지 않도록 스크립트 수정
- dependency 수정
  • Loading branch information
gintooooonic committed Dec 5, 2021
1 parent dfd26ec commit f20f89f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,4 @@ jobs:
cp -r build/* /var/www/build/
cd ../server
npm install
npm run build
pm2 start npm -- start
pm2 start npm -- run deploy
15 changes: 12 additions & 3 deletions server/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "app.ts",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"deploy": "ts-node app.ts",
"start": "npm run build:live",
"build:live": "nodemon --watch '*.ts' --exec ts-node app.ts",
"build": "tsc -p ./"
Expand All @@ -13,7 +14,6 @@
"author": "",
"license": "ISC",
"dependencies": {
"@types/multer": "^1.4.7",
"axios": "^0.24.0",
"cookie-parser": "^1.4.5",
"cors": "^2.8.5",
Expand All @@ -35,6 +35,7 @@
"@types/cors": "^2.8.12",
"@types/express": "^4.17.13",
"@types/express-session": "^1.17.4",
"@types/multer": "^1.4.7",
"@types/node": "^16.11.6",
"@types/sharp": "^0.29.4",
"@types/uuid": "^8.3.3",
Expand Down

0 comments on commit f20f89f

Please sign in to comment.