@drocketxx/pm2me 1.1.11 → 1.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/backend/db/index.js +6 -0
- package/backend/public/assets/{index-1QKz34a5.js → index-I-oE5bOj.js} +10 -10
- package/backend/public/index.html +1 -1
- package/backend/routes/api.js +24 -3
- package/package.json +1 -1
- package/apps/Delete-Test-App/README.md +0 -1
- package/apps/Delete-Test-App/dist/server.js +0 -57
- package/apps/Delete-Test-App/package.json +0 -19
- package/apps/Delete-Test-App/src/server.ts +0 -33
- package/apps/Delete-Test-App/tsconfig.json +0 -15
- package/apps/Delete-Test-App-2/README.md +0 -1
- package/apps/Delete-Test-App-2/dist/server.js +0 -57
- package/apps/Delete-Test-App-2/package.json +0 -19
- package/apps/Delete-Test-App-2/src/server.ts +0 -33
- package/apps/Delete-Test-App-2/tsconfig.json +0 -15
- package/apps/Delete-Test-App-2_deploy.log +0 -12
- package/apps/Delete-Test-App_deploy.log +0 -12
- package/apps/PM2Me-main/README.md +0 -236
- package/apps/PM2Me-main/backend/app.js +0 -109
- package/apps/PM2Me-main/backend/db/index.js +0 -40
- package/apps/PM2Me-main/backend/nodemon.json +0 -10
- package/apps/PM2Me-main/backend/package.json +0 -31
- package/apps/PM2Me-main/backend/public/assets/index-DZ4rSpP9.css +0 -1
- package/apps/PM2Me-main/backend/public/assets/index-KLmI9qSM.js +0 -13
- package/apps/PM2Me-main/backend/public/icon.png +0 -0
- package/apps/PM2Me-main/backend/public/index.html +0 -14
- package/apps/PM2Me-main/backend/public/vite.svg +0 -1
- package/apps/PM2Me-main/backend/routes/api.js +0 -932
- package/apps/PM2Me-main/backend/routes/auth.js +0 -44
- package/apps/PM2Me-main/backend/services/gitService.js +0 -110
- package/apps/PM2Me-main/backend/services/notificationService.js +0 -48
- package/apps/PM2Me-main/backend/services/pm2Service.js +0 -84
- package/apps/PM2Me-main/backend/services/systemService.js +0 -113
- package/apps/PM2Me-main/c:VsCodemyPM2Metmp_old_dashboard.vue +0 -390
- package/apps/PM2Me-main/package.json +0 -21
- package/apps/PM2Me-main/screenshot/001.png +0 -0
- package/apps/PM2Me-main/test_db.js +0 -8
- package/apps/PM2Me-main/tmp_old_dashboard.vue +0 -390
- package/apps/PM2Me-main_deploy.log +0 -25
- package/apps/PM2Me-test/README.md +0 -1
- package/apps/PM2Me-test/dist/server.js +0 -63
- package/apps/PM2Me-test/package.json +0 -19
- package/apps/PM2Me-test/src/server.ts +0 -33
- package/apps/PM2Me-test/tsconfig.json +0 -15
- package/apps/PM2Me-test-main/README.md +0 -1
- package/apps/PM2Me-test-main/dist/server.js +0 -63
- package/apps/PM2Me-test-main/package.json +0 -19
- package/apps/PM2Me-test-main/src/server.ts +0 -33
- package/apps/PM2Me-test-main/tsconfig.json +0 -15
- package/apps/PM2Me-test-main_deploy.log +0 -24
- package/apps/PM2Me-test-uat/README.md +0 -1
- package/apps/PM2Me-test-uat/dist/server.js +0 -63
- package/apps/PM2Me-test-uat/package.json +0 -19
- package/apps/PM2Me-test-uat/src/server.ts +0 -33
- package/apps/PM2Me-test-uat/tsconfig.json +0 -15
- package/apps/PM2Me-test-uat-updated/README.md +0 -1
- package/apps/PM2Me-test-uat-updated/dist/server.js +0 -63
- package/apps/PM2Me-test-uat-updated/package.json +0 -19
- package/apps/PM2Me-test-uat-updated/src/server.ts +0 -33
- package/apps/PM2Me-test-uat-updated/tsconfig.json +0 -15
- package/apps/PM2Me-test-uat-updated_deploy.log +0 -24
- package/apps/PM2Me-test-uat2/README.md +0 -1
- package/apps/PM2Me-test-uat2/dist/server.js +0 -63
- package/apps/PM2Me-test-uat2/package.json +0 -19
- package/apps/PM2Me-test-uat2/src/server.ts +0 -33
- package/apps/PM2Me-test-uat2/tsconfig.json +0 -15
- package/apps/PM2Me-test-uat2_deploy.log +0 -25
- package/apps/PM2Me-test-uat_deploy.log +0 -24
- package/apps/PM2Me-test_deploy.log +0 -24
- package/apps/PM2Me-test_health.log +0 -4
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import * as dotenv from 'dotenv';
|
|
2
|
-
import * as http from 'http';
|
|
3
|
-
|
|
4
|
-
dotenv.config();
|
|
5
|
-
|
|
6
|
-
// throw new Error('SIMULATE RUN ERROR: App failed to start during RUN stage');
|
|
7
|
-
// RUN stage rollback test v4 (No Race Condition)
|
|
8
|
-
// Simulate a runtime error for the 'RUN' step visualization
|
|
9
|
-
// if (process.env.SIMULATE_RUN_ERROR === 'true') {
|
|
10
|
-
// throw new Error('SIMULATE RUN ERROR: App failed to start during RUN stage');
|
|
11
|
-
// }
|
|
12
|
-
|
|
13
|
-
const port: number = parseInt(process.env.PORT || '6060', 10);
|
|
14
|
-
|
|
15
|
-
const server = http.createServer((req: http.IncomingMessage, res: http.ServerResponse) => {
|
|
16
|
-
if (req.url === '/') {
|
|
17
|
-
console.log('req.url', req.url, new Date().toISOString());
|
|
18
|
-
|
|
19
|
-
res.writeHead(200, { 'Content-Type': 'application/json' },);
|
|
20
|
-
res.end(JSON.stringify({
|
|
21
|
-
message: 'PM2Me Test App is running!',
|
|
22
|
-
currentTime: new Date().toISOString(),
|
|
23
|
-
env: process.env
|
|
24
|
-
}, null, 2));
|
|
25
|
-
} else {
|
|
26
|
-
res.writeHead(404);
|
|
27
|
-
res.end('Not found');
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
server.listen(port, () => {
|
|
32
|
-
console.log(`Server listening on port ${port}`);
|
|
33
|
-
});
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "es2022",
|
|
4
|
-
"module": "commonjs",
|
|
5
|
-
"rootDir": "./src",
|
|
6
|
-
"outDir": "./dist",
|
|
7
|
-
"esModuleInterop": true,
|
|
8
|
-
"forceConsistentCasingInFileNames": true,
|
|
9
|
-
"strict": true,
|
|
10
|
-
"skipLibCheck": true
|
|
11
|
-
},
|
|
12
|
-
"include": [
|
|
13
|
-
"src/**/*"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
--- Deployment Started at 2026-03-02T07:04:59.684Z ---
|
|
2
|
-
[pm2me] Sync
|
|
3
|
-
[pm2me] Synchronizing Repository
|
|
4
|
-
Git: Pulled latest changes cleanly on branch main (Commit: 1.0.17)
|
|
5
|
-
[pm2me] Setting up env
|
|
6
|
-
[pm2me] Executing Build Script
|
|
7
|
-
|
|
8
|
-
up to date, audited 22 packages in 793ms
|
|
9
|
-
|
|
10
|
-
1 package is looking for funding
|
|
11
|
-
run `npm fund` for details
|
|
12
|
-
|
|
13
|
-
found 0 vulnerabilities
|
|
14
|
-
|
|
15
|
-
> pm2me-test@1.0.17 build
|
|
16
|
-
> tsc
|
|
17
|
-
|
|
18
|
-
[pm2me] Build Script Completed
|
|
19
|
-
[pm2me] Starting PM2
|
|
20
|
-
[pm2me] Updating Application in PM2
|
|
21
|
-
[pm2me] Fresh Starting
|
|
22
|
-
[pm2me] Stabilization started. Verifying health for 10s...
|
|
23
|
-
[pm2me] Deployment Online (Health period active)
|
|
24
|
-
[pm2me] Stabilization complete. Commit marked as successful.
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
# PM2Me-test
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
const dotenv = __importStar(require("dotenv"));
|
|
37
|
-
const http = __importStar(require("http"));
|
|
38
|
-
dotenv.config();
|
|
39
|
-
// throw new Error('SIMULATE RUN ERROR: App failed to start during RUN stage');
|
|
40
|
-
// RUN stage rollback test v4 (No Race Condition)
|
|
41
|
-
// Simulate a runtime error for the 'RUN' step visualization
|
|
42
|
-
// if (process.env.SIMULATE_RUN_ERROR === 'true') {
|
|
43
|
-
// throw new Error('SIMULATE RUN ERROR: App failed to start during RUN stage');
|
|
44
|
-
// }
|
|
45
|
-
const port = parseInt(process.env.PORT || '6060', 10);
|
|
46
|
-
const server = http.createServer((req, res) => {
|
|
47
|
-
if (req.url === '/') {
|
|
48
|
-
console.log('req.url', req.url, new Date().toISOString());
|
|
49
|
-
res.writeHead(200, { 'Content-Type': 'application/json' });
|
|
50
|
-
res.end(JSON.stringify({
|
|
51
|
-
message: 'PM2Me Test App is running!',
|
|
52
|
-
currentTime: new Date().toISOString(),
|
|
53
|
-
env: process.env
|
|
54
|
-
}, null, 2));
|
|
55
|
-
}
|
|
56
|
-
else {
|
|
57
|
-
res.writeHead(404);
|
|
58
|
-
res.end('Not found');
|
|
59
|
-
}
|
|
60
|
-
});
|
|
61
|
-
server.listen(port, () => {
|
|
62
|
-
console.log(`Server listening on port ${port}`);
|
|
63
|
-
});
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "pm2me-test",
|
|
3
|
-
"version": "1.0.18",
|
|
4
|
-
"description": "A test project for PM2Me deployment",
|
|
5
|
-
"main": "dist/server.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"start": "node dist/server.js",
|
|
8
|
-
"build": "tsc",
|
|
9
|
-
"dev": "ts-node src/server.ts"
|
|
10
|
-
},
|
|
11
|
-
"dependencies": {
|
|
12
|
-
"dotenv": "^16.4.5"
|
|
13
|
-
},
|
|
14
|
-
"devDependencies": {
|
|
15
|
-
"@types/node": "^20.11.24",
|
|
16
|
-
"ts-node": "^10.9.2",
|
|
17
|
-
"typescript": "^5.3.3"
|
|
18
|
-
}
|
|
19
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import * as dotenv from 'dotenv';
|
|
2
|
-
import * as http from 'http';
|
|
3
|
-
|
|
4
|
-
dotenv.config();
|
|
5
|
-
|
|
6
|
-
// throw new Error('SIMULATE RUN ERROR: App failed to start during RUN stage');
|
|
7
|
-
// RUN stage rollback test v4 (No Race Condition)
|
|
8
|
-
// Simulate a runtime error for the 'RUN' step visualization
|
|
9
|
-
// if (process.env.SIMULATE_RUN_ERROR === 'true') {
|
|
10
|
-
// throw new Error('SIMULATE RUN ERROR: App failed to start during RUN stage');
|
|
11
|
-
// }
|
|
12
|
-
|
|
13
|
-
const port: number = parseInt(process.env.PORT || '6060', 10);
|
|
14
|
-
|
|
15
|
-
const server = http.createServer((req: http.IncomingMessage, res: http.ServerResponse) => {
|
|
16
|
-
if (req.url === '/') {
|
|
17
|
-
console.log('req.url', req.url, new Date().toISOString());
|
|
18
|
-
|
|
19
|
-
res.writeHead(200, { 'Content-Type': 'application/json' },);
|
|
20
|
-
res.end(JSON.stringify({
|
|
21
|
-
message: 'PM2Me Test App is running!',
|
|
22
|
-
currentTime: new Date().toISOString(),
|
|
23
|
-
env: process.env
|
|
24
|
-
}, null, 2));
|
|
25
|
-
} else {
|
|
26
|
-
res.writeHead(404);
|
|
27
|
-
res.end('Not found');
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
server.listen(port, () => {
|
|
32
|
-
console.log(`Server listening on port ${port}`);
|
|
33
|
-
});
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "es2022",
|
|
4
|
-
"module": "commonjs",
|
|
5
|
-
"rootDir": "./src",
|
|
6
|
-
"outDir": "./dist",
|
|
7
|
-
"esModuleInterop": true,
|
|
8
|
-
"forceConsistentCasingInFileNames": true,
|
|
9
|
-
"strict": true,
|
|
10
|
-
"skipLibCheck": true
|
|
11
|
-
},
|
|
12
|
-
"include": [
|
|
13
|
-
"src/**/*"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
# PM2Me-test
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
const dotenv = __importStar(require("dotenv"));
|
|
37
|
-
const http = __importStar(require("http"));
|
|
38
|
-
dotenv.config();
|
|
39
|
-
// throw new Error('SIMULATE RUN ERROR: App failed to start during RUN stage');
|
|
40
|
-
// RUN stage rollback test v4 (No Race Condition)
|
|
41
|
-
// Simulate a runtime error for the 'RUN' step visualization
|
|
42
|
-
// if (process.env.SIMULATE_RUN_ERROR === 'true') {
|
|
43
|
-
// throw new Error('SIMULATE RUN ERROR: App failed to start during RUN stage');
|
|
44
|
-
// }
|
|
45
|
-
const port = parseInt(process.env.PORT || '6060', 10);
|
|
46
|
-
const server = http.createServer((req, res) => {
|
|
47
|
-
if (req.url === '/') {
|
|
48
|
-
console.log('req.url', req.url, new Date().toISOString());
|
|
49
|
-
res.writeHead(200, { 'Content-Type': 'application/json' });
|
|
50
|
-
res.end(JSON.stringify({
|
|
51
|
-
message: 'PM2Me Test App is running!',
|
|
52
|
-
currentTime: new Date().toISOString(),
|
|
53
|
-
env: process.env
|
|
54
|
-
}, null, 2));
|
|
55
|
-
}
|
|
56
|
-
else {
|
|
57
|
-
res.writeHead(404);
|
|
58
|
-
res.end('Not found');
|
|
59
|
-
}
|
|
60
|
-
});
|
|
61
|
-
server.listen(port, () => {
|
|
62
|
-
console.log(`Server listening on port ${port}`);
|
|
63
|
-
});
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "pm2me-test",
|
|
3
|
-
"version": "1.0.13",
|
|
4
|
-
"description": "A test project for PM2Me deployment",
|
|
5
|
-
"main": "dist/server.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"start": "node dist/server.js",
|
|
8
|
-
"build": "tsc",
|
|
9
|
-
"dev": "ts-node src/server.ts"
|
|
10
|
-
},
|
|
11
|
-
"dependencies": {
|
|
12
|
-
"dotenv": "^16.4.5"
|
|
13
|
-
},
|
|
14
|
-
"devDependencies": {
|
|
15
|
-
"@types/node": "^20.11.24",
|
|
16
|
-
"ts-node": "^10.9.2",
|
|
17
|
-
"typescript": "^5.3.3"
|
|
18
|
-
}
|
|
19
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import * as dotenv from 'dotenv';
|
|
2
|
-
import * as http from 'http';
|
|
3
|
-
|
|
4
|
-
dotenv.config();
|
|
5
|
-
|
|
6
|
-
// throw new Error('SIMULATE RUN ERROR: App failed to start during RUN stage');
|
|
7
|
-
// RUN stage rollback test v4 (No Race Condition)
|
|
8
|
-
// Simulate a runtime error for the 'RUN' step visualization
|
|
9
|
-
// if (process.env.SIMULATE_RUN_ERROR === 'true') {
|
|
10
|
-
// throw new Error('SIMULATE RUN ERROR: App failed to start during RUN stage');
|
|
11
|
-
// }
|
|
12
|
-
|
|
13
|
-
const port: number = parseInt(process.env.PORT || '6060', 10);
|
|
14
|
-
|
|
15
|
-
const server = http.createServer((req: http.IncomingMessage, res: http.ServerResponse) => {
|
|
16
|
-
if (req.url === '/') {
|
|
17
|
-
console.log('req.url', req.url, new Date().toISOString());
|
|
18
|
-
|
|
19
|
-
res.writeHead(200, { 'Content-Type': 'application/json' },);
|
|
20
|
-
res.end(JSON.stringify({
|
|
21
|
-
message: 'PM2Me Test App is running!',
|
|
22
|
-
currentTime: new Date().toISOString(),
|
|
23
|
-
env: process.env
|
|
24
|
-
}, null, 2));
|
|
25
|
-
} else {
|
|
26
|
-
res.writeHead(404);
|
|
27
|
-
res.end('Not found');
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
server.listen(port, () => {
|
|
32
|
-
console.log(`Server listening on port ${port}`);
|
|
33
|
-
});
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "es2022",
|
|
4
|
-
"module": "commonjs",
|
|
5
|
-
"rootDir": "./src",
|
|
6
|
-
"outDir": "./dist",
|
|
7
|
-
"esModuleInterop": true,
|
|
8
|
-
"forceConsistentCasingInFileNames": true,
|
|
9
|
-
"strict": true,
|
|
10
|
-
"skipLibCheck": true
|
|
11
|
-
},
|
|
12
|
-
"include": [
|
|
13
|
-
"src/**/*"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
--- Deployment Started at 2026-03-01T18:12:03.560Z ---
|
|
2
|
-
[pm2me] Sync
|
|
3
|
-
[pm2me] Synchronizing Repository
|
|
4
|
-
Git: Pulled latest changes cleanly on branch uat (Commit: 1.0.13)
|
|
5
|
-
[pm2me] Setting up env
|
|
6
|
-
[pm2me] Executing Build Script
|
|
7
|
-
|
|
8
|
-
up to date, audited 22 packages in 10s
|
|
9
|
-
|
|
10
|
-
1 package is looking for funding
|
|
11
|
-
run `npm fund` for details
|
|
12
|
-
|
|
13
|
-
found 0 vulnerabilities
|
|
14
|
-
|
|
15
|
-
> pm2me-test@1.0.13 build
|
|
16
|
-
> tsc
|
|
17
|
-
|
|
18
|
-
[pm2me] Build Script Completed
|
|
19
|
-
[pm2me] Starting PM2
|
|
20
|
-
[pm2me] Updating Application in PM2
|
|
21
|
-
[pm2me] Zero-downtime Reloading with new environment
|
|
22
|
-
[pm2me] Stabilization started. Verifying health for 10s...
|
|
23
|
-
[pm2me] Deployment Online (Health period active)
|
|
24
|
-
[pm2me] Stabilization complete. Commit marked as successful.
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
# PM2Me-test
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
const dotenv = __importStar(require("dotenv"));
|
|
37
|
-
const http = __importStar(require("http"));
|
|
38
|
-
dotenv.config();
|
|
39
|
-
// throw new Error('SIMULATE RUN ERROR: App failed to start during RUN stage');
|
|
40
|
-
// RUN stage rollback test v4 (No Race Condition)
|
|
41
|
-
// Simulate a runtime error for the 'RUN' step visualization
|
|
42
|
-
// if (process.env.SIMULATE_RUN_ERROR === 'true') {
|
|
43
|
-
// throw new Error('SIMULATE RUN ERROR: App failed to start during RUN stage');
|
|
44
|
-
// }
|
|
45
|
-
const port = parseInt(process.env.PORT || '6060', 10);
|
|
46
|
-
const server = http.createServer((req, res) => {
|
|
47
|
-
if (req.url === '/') {
|
|
48
|
-
console.log('req.url', req.url, new Date().toISOString());
|
|
49
|
-
res.writeHead(200, { 'Content-Type': 'application/json' });
|
|
50
|
-
res.end(JSON.stringify({
|
|
51
|
-
message: 'PM2Me Test App is running!',
|
|
52
|
-
currentTime: new Date().toISOString(),
|
|
53
|
-
env: process.env
|
|
54
|
-
}, null, 2));
|
|
55
|
-
}
|
|
56
|
-
else {
|
|
57
|
-
res.writeHead(404);
|
|
58
|
-
res.end('Not found');
|
|
59
|
-
}
|
|
60
|
-
});
|
|
61
|
-
server.listen(port, () => {
|
|
62
|
-
console.log(`Server listening on port ${port}`);
|
|
63
|
-
});
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "pm2me-test",
|
|
3
|
-
"version": "1.0.13",
|
|
4
|
-
"description": "A test project for PM2Me deployment",
|
|
5
|
-
"main": "dist/server.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"start": "node dist/server.js",
|
|
8
|
-
"build": "tsc",
|
|
9
|
-
"dev": "ts-node src/server.ts"
|
|
10
|
-
},
|
|
11
|
-
"dependencies": {
|
|
12
|
-
"dotenv": "^16.4.5"
|
|
13
|
-
},
|
|
14
|
-
"devDependencies": {
|
|
15
|
-
"@types/node": "^20.11.24",
|
|
16
|
-
"ts-node": "^10.9.2",
|
|
17
|
-
"typescript": "^5.3.3"
|
|
18
|
-
}
|
|
19
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import * as dotenv from 'dotenv';
|
|
2
|
-
import * as http from 'http';
|
|
3
|
-
|
|
4
|
-
dotenv.config();
|
|
5
|
-
|
|
6
|
-
// throw new Error('SIMULATE RUN ERROR: App failed to start during RUN stage');
|
|
7
|
-
// RUN stage rollback test v4 (No Race Condition)
|
|
8
|
-
// Simulate a runtime error for the 'RUN' step visualization
|
|
9
|
-
// if (process.env.SIMULATE_RUN_ERROR === 'true') {
|
|
10
|
-
// throw new Error('SIMULATE RUN ERROR: App failed to start during RUN stage');
|
|
11
|
-
// }
|
|
12
|
-
|
|
13
|
-
const port: number = parseInt(process.env.PORT || '6060', 10);
|
|
14
|
-
|
|
15
|
-
const server = http.createServer((req: http.IncomingMessage, res: http.ServerResponse) => {
|
|
16
|
-
if (req.url === '/') {
|
|
17
|
-
console.log('req.url', req.url, new Date().toISOString());
|
|
18
|
-
|
|
19
|
-
res.writeHead(200, { 'Content-Type': 'application/json' },);
|
|
20
|
-
res.end(JSON.stringify({
|
|
21
|
-
message: 'PM2Me Test App is running!',
|
|
22
|
-
currentTime: new Date().toISOString(),
|
|
23
|
-
env: process.env
|
|
24
|
-
}, null, 2));
|
|
25
|
-
} else {
|
|
26
|
-
res.writeHead(404);
|
|
27
|
-
res.end('Not found');
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
server.listen(port, () => {
|
|
32
|
-
console.log(`Server listening on port ${port}`);
|
|
33
|
-
});
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "es2022",
|
|
4
|
-
"module": "commonjs",
|
|
5
|
-
"rootDir": "./src",
|
|
6
|
-
"outDir": "./dist",
|
|
7
|
-
"esModuleInterop": true,
|
|
8
|
-
"forceConsistentCasingInFileNames": true,
|
|
9
|
-
"strict": true,
|
|
10
|
-
"skipLibCheck": true
|
|
11
|
-
},
|
|
12
|
-
"include": [
|
|
13
|
-
"src/**/*"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
--- Deployment Started at 2026-03-01T18:44:50.422Z ---
|
|
2
|
-
[pm2me] Sync
|
|
3
|
-
[pm2me] Synchronizing Repository
|
|
4
|
-
Git: Pulled latest changes cleanly on branch uat (Commit: 1.0.13)
|
|
5
|
-
[pm2me] Setting up env
|
|
6
|
-
[pm2me] Executing Build Script
|
|
7
|
-
|
|
8
|
-
up to date, audited 22 packages in 706ms
|
|
9
|
-
|
|
10
|
-
1 package is looking for funding
|
|
11
|
-
run `npm fund` for details
|
|
12
|
-
|
|
13
|
-
found 0 vulnerabilities
|
|
14
|
-
|
|
15
|
-
> pm2me-test@1.0.13 build
|
|
16
|
-
> tsc
|
|
17
|
-
|
|
18
|
-
[pm2me] Build Script Completed
|
|
19
|
-
[pm2me] Starting PM2
|
|
20
|
-
[pm2me] Updating Application in PM2
|
|
21
|
-
[pm2me] Fresh Starting
|
|
22
|
-
[pm2me] Stabilization started. Verifying health for 10s...
|
|
23
|
-
[pm2me] Deployment Online (Health period active)
|
|
24
|
-
[pm2me] App unhealthy after 10s (Status: errored, Restarts: 15 vs 0). Rolling back...
|
|
25
|
-
[pm2me] No stable version to rollback to or already on last good version.
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
--- Deployment Started at 2026-03-02T07:04:45.067Z ---
|
|
2
|
-
[pm2me] Sync
|
|
3
|
-
[pm2me] Synchronizing Repository
|
|
4
|
-
Git: Pulled latest changes cleanly on branch uat (Commit: 1.0.18)
|
|
5
|
-
[pm2me] Setting up env
|
|
6
|
-
[pm2me] Executing Build Script
|
|
7
|
-
|
|
8
|
-
up to date, audited 22 packages in 1s
|
|
9
|
-
|
|
10
|
-
1 package is looking for funding
|
|
11
|
-
run `npm fund` for details
|
|
12
|
-
|
|
13
|
-
found 0 vulnerabilities
|
|
14
|
-
|
|
15
|
-
> pm2me-test@1.0.18 build
|
|
16
|
-
> tsc
|
|
17
|
-
|
|
18
|
-
[pm2me] Build Script Completed
|
|
19
|
-
[pm2me] Starting PM2
|
|
20
|
-
[pm2me] Updating Application in PM2
|
|
21
|
-
[pm2me] Fresh Starting
|
|
22
|
-
[pm2me] Stabilization started. Verifying health for 10s...
|
|
23
|
-
[pm2me] Deployment Online (Health period active)
|
|
24
|
-
[pm2me] Stabilization complete. Commit marked as successful.
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
--- Deployment Started at 2026-03-01T09:12:11.674Z ---
|
|
2
|
-
[pm2me] Sync
|
|
3
|
-
[pm2me] Synchronizing Repository
|
|
4
|
-
Git: Pulled latest changes cleanly on branch main (Commit: ืno error)
|
|
5
|
-
[pm2me] Setting up env
|
|
6
|
-
[pm2me] Executing Build Script
|
|
7
|
-
|
|
8
|
-
up to date, audited 22 packages in 716ms
|
|
9
|
-
|
|
10
|
-
1 package is looking for funding
|
|
11
|
-
run `npm fund` for details
|
|
12
|
-
|
|
13
|
-
found 0 vulnerabilities
|
|
14
|
-
|
|
15
|
-
> pm2me-test@1.0.12 build
|
|
16
|
-
> tsc
|
|
17
|
-
|
|
18
|
-
[pm2me] Build Script Completed
|
|
19
|
-
[pm2me] Starting PM2
|
|
20
|
-
[pm2me] Updating Application in PM2
|
|
21
|
-
[pm2me] Zero-downtime Reloading with new environment
|
|
22
|
-
[pm2me] Stabilization started. Verifying health for 10s...
|
|
23
|
-
[pm2me] Deployment Online (Health period active)
|
|
24
|
-
[pm2me] Stabilization complete. Commit marked as successful.
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
--- Health Check started at 2026-02-28T22:46:43.411Z ---
|
|
2
|
-
[2026-02-28T22:46:53.414Z] Starting health check for PM2Me-test
|
|
3
|
-
[2026-02-28T22:46:53.424Z] PM2Me-test status: online, restarts: 279, initial: 278
|
|
4
|
-
[2026-02-28T22:46:53.426Z] FAILURE: Unstable. Triggering rollback. Status: online, Restarts: 279
|