Skip to content

Commit 5e5f1d4

Browse files
committed
Add foolproof deployment scripts
Add yarn deploy commands that properly stop/start PM2 processes
1 parent b40468d commit 5e5f1d4

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
## Unreleased
44

5+
- added: Foolproof deployment scripts with yarn commands for consistent PM2 operations
6+
- fixed: Eliminated Redis race condition causing intermittent empty responses from Redis-dependent endpoints
7+
- fixed: Implemented atomic Redis updates using temporary keys and rename operations
8+
- fixed: Added environment variable guard to prevent multi-instance sync conflicts
9+
- fixed: Configured PM2 for single instance deployment to prevent process conflicts
510
- fixed: Non-USD coinrank rate requests were intermittently returning USD results
611
- fixed: `coinrank?fiatCode=iso:[fiatCode]` was not calculating fiat exchange rates for all relevant fields
712

package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,13 @@
1717
"precommit": "lint-staged && yarn test && yarn prepare",
1818
"prepare": "configure && npm-run-all clean -p build.* && cp ./src/utils/currencyCodeMaps.json ./lib/utils/currencyCodeMaps.json",
1919
"test": "mocha -r sucrase/register 'test/**/*.test.ts' --exit",
20-
"lint": "eslint --ext .js,.jsx,.ts,.tsx ."
20+
"lint": "eslint --ext .js,.jsx,.ts,.tsx .",
21+
"deploy": "npm run deploy:stop && npm run deploy:start",
22+
"deploy:start": "pm2 start pm2.json",
23+
"deploy:stop": "pm2 delete all || true",
24+
"deploy:restart": "npm run deploy",
25+
"deploy:status": "pm2 status",
26+
"deploy:logs": "pm2 logs"
2127
},
2228
"lint-staged": {
2329
"*.{js,jsx,ts,tsx}": "eslint"

0 commit comments

Comments
 (0)