diff --git a/test/check-frontend-logs.js b/test/check-frontend-logs.js deleted file mode 100644 index 673e6b9..0000000 --- a/test/check-frontend-logs.js +++ /dev/null @@ -1,8 +0,0 @@ -const { Client } = require('ssh2'); -const conn = new Client(); -conn.on('ready', () => { - conn.exec('/home/adminbackend/.npm-global/bin/pm2 logs backone-frontend --lines 50 --raw', (err, stream) => { - stream.on('data', (d) => process.stdout.write(d)); - stream.on('close', () => conn.end()); - }); -}).connect({ host: '103.185.47.52', port: 2222, username: 'adminbackend', password: 'htEo7x6LsBQiEHHH' }); diff --git a/test/read-index-php.js b/test/read-index-php.js deleted file mode 100644 index ef7fe0a..0000000 --- a/test/read-index-php.js +++ /dev/null @@ -1,8 +0,0 @@ -const { Client } = require('ssh2'); -const conn = new Client(); -conn.on('ready', () => { - conn.exec("cat /home/adminbackend/web/demoplace.my.id/public_html/index.php", (err, stream) => { - stream.on('data', (d) => process.stdout.write(d)); - stream.on('close', () => conn.end()); - }); -}).connect({ host: '103.185.47.52', port: 2222, username: 'adminbackend', password: 'htEo7x6LsBQiEHHH' }); diff --git a/test/remote-grep.js b/test/remote-grep.js deleted file mode 100644 index 1f6406f..0000000 --- a/test/remote-grep.js +++ /dev/null @@ -1,8 +0,0 @@ -const { Client } = require('ssh2'); -const conn = new Client(); -conn.on('ready', () => { - conn.exec("grep -rn 'terhubung' /home/adminbackend/web/demoplace.my.id/public_html 2>/dev/null", (err, stream) => { - stream.on('data', (d) => process.stdout.write(d)); - stream.on('close', () => conn.end()); - }); -}).connect({ host: '103.185.47.52', port: 2222, username: 'adminbackend', password: 'htEo7x6LsBQiEHHH' });