feat(prod): deploy web dashboard, migrate mongodb configuration, resolve server components render error and fix logo static asset paths

This commit is contained in:
Rafif-Riqullah-Siregar committed 2026-07-15 00:27:55 +07:00
1 parent 4882108068
commit b2ea883601
119 files changed
+7123 -2011

No files matched your search

+27
View File
@@ -0,0 +1,27 @@
// test/check_pm2_restarts.js
const { Client } = require('ssh2');
const sshConfig = {
host: '103.185.47.52',
port: 2222,
username: 'adminbackend',
password: 'htEo7x6LsBQiEHHH'
};
async function main() {
const conn = new Client();
conn.on('ready', () => {
conn.exec('. ~/.nvm/nvm.sh && nvm use 20 && npx pm2 list', (err, stream) => {
if (err) throw err;
let out = '';
stream.on('close', () => {
conn.end();
console.log(out);
}).on('data', (data) => {
out += data;
});
});
}).connect(sshConfig);
}
main();