refactor(multi-server): replace executeCommand with execAsyncRemote

This commit is contained in:
Mauricio Siu
2024-09-16 00:40:11 -06:00
parent 19295ba746
commit d8d0b60cb3
76 changed files with 622 additions and 19123 deletions

View File

@@ -7,9 +7,9 @@ import { z } from "zod";
import { backups } from "./backups";
import { mounts } from "./mount";
import { projects } from "./project";
import { server } from "./server";
import { applicationStatus } from "./shared";
import { generateAppName } from "./utils";
import { server } from "./server";
export const mariadb = pgTable("mariadb", {
mariadbId: text("mariadbId")

View File

@@ -7,9 +7,9 @@ import { z } from "zod";
import { backups } from "./backups";
import { mounts } from "./mount";
import { projects } from "./project";
import { server } from "./server";
import { applicationStatus } from "./shared";
import { generateAppName } from "./utils";
import { server } from "./server";
export const mongo = pgTable("mongo", {
mongoId: text("mongoId")

View File

@@ -6,9 +6,9 @@ import { z } from "zod";
import { backups } from "./backups";
import { mounts } from "./mount";
import { projects } from "./project";
import { server } from "./server";
import { applicationStatus } from "./shared";
import { generateAppName } from "./utils";
import { server } from "./server";
export const mysql = pgTable("mysql", {
mysqlId: text("mysqlId")

View File

@@ -7,9 +7,9 @@ import { z } from "zod";
import { backups } from "./backups";
import { mounts } from "./mount";
import { projects } from "./project";
import { server } from "./server";
import { applicationStatus } from "./shared";
import { generateAppName } from "./utils";
import { server } from "./server";
export const postgres = pgTable("postgres", {
postgresId: text("postgresId")

View File

@@ -5,9 +5,9 @@ import { nanoid } from "nanoid";
import { z } from "zod";
import { mounts } from "./mount";
import { projects } from "./project";
import { server } from "./server";
import { applicationStatus } from "./shared";
import { generateAppName } from "./utils";
import { server } from "./server";
export const redis = pgTable("redis", {
redisId: text("redisId")

View File

@@ -3,10 +3,6 @@ import { integer, pgTable, text } from "drizzle-orm/pg-core";
import { createInsertSchema } from "drizzle-zod";
import { nanoid } from "nanoid";
import { z } from "zod";
import { admins } from "./admin";
import { generateAppName } from "./utils";
import { deployments } from "./deployment";
import { sshKeys } from "./ssh-key";
import {
applications,
compose,
@@ -16,6 +12,10 @@ import {
postgres,
redis,
} from ".";
import { admins } from "./admin";
import { deployments } from "./deployment";
import { sshKeys } from "./ssh-key";
import { generateAppName } from "./utils";
export const server = pgTable("server", {
serverId: text("serverId")