An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
fix
Andras Bacsaide9da8caf9ed
diff --git a/apps/api/src/routes/api/v1/servers/handlers.ts b/apps/api/src/routes/api/v1/servers/handlers.tsindex 24437181f8..9b163ab7bb 100644--- a/apps/api/src/routes/api/v1/servers/handlers.ts+++ b/apps/api/src/routes/api/v1/servers/handlers.ts@@ -71,9 +71,9 @@ export async function showUsage(request: FastifyRequest) {let { remoteEngine } = request.queryremoteEngine = remoteEngine === 'true' ? true : falseif (remoteEngine) {- const { stdout: stats } = await executeCommand({ sshCommand: true, shell: true, dockerId: id, command: `vmstat -s` })+ const { stdout: stats } = await executeCommand({ sshCommand: true, dockerId: id, command: `vmstat -s` })const { stdout: disks } = await executeCommand({ sshCommand: true, shell: true, dockerId: id, command: `df -m / --output=size,used,pcent|grep -v 'Used'| xargs` })- const { stdout: cpus } = await executeCommand({ sshCommand: true, shell: true, dockerId: id, command: `nproc --all` })+ const { stdout: cpus } = await executeCommand({ sshCommand: true, dockerId: id, command: `nproc --all` })const { stdout: cpuUsage } = await executeCommand({ sshCommand: true, shell: true, dockerId: id, command: `echo $[100-$(vmstat 1 2|tail -1|awk '{print $15}')]` })const parsed: any = parseFromText(stats)return {