Skip to content

Commit

Permalink
fix: local run prod success
Browse files Browse the repository at this point in the history
  • Loading branch information
bbb169 committed Oct 16, 2023
1 parent 58e4e83 commit 204beea
Show file tree
Hide file tree
Showing 4 changed files with 943 additions and 96 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
nvm use 16.14.2
npm install -g pnpm
pnpm install
pnpm start
pnpm run prod
"
- name: 删除 id_rsa
Expand Down
File renamed without changes.
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,13 @@
"copy-static": "ts-node copyStatic.ts",
"ts-build": "tsc",
"build": "npm run ts-build && npm run copy-static",
"prod": "cross-env NODE_ENV=production pm2 start ecosystem.config.js"
"prod": "cross-env NODE_ENV=production pm2 start ecosystem.config.ts --interpreter ./node_modules/.bin/ts-node"
},
"dependencies": {
"bcryptjs": "^2.4.3",
"body-parser": "^1.20.2",
"cookie-parser": "~1.4.4",
"cors": "^2.8.5",
"crypto": "^1.0.1",
"crypto-js": "^4.1.1",
"debug": "~2.6.9",
"dotenv": "^16.3.1",
Expand All @@ -27,7 +26,9 @@
"multer": "^1.4.5-lts.1",
"mysql": "^2.18.1",
"openai": "^4.12.1",
"socket.io": "^4.7.2"
"pm2": "^5.3.0",
"socket.io": "^4.7.2",
"ts-node": "^10.9.1"
},
"devDependencies": {
"@types/bcryptjs": "^2.4.2",
Expand Down
Loading

0 comments on commit 204beea

Please sign in to comment.