refactor: update package name

This commit is contained in:
Mauricio Siu
2024-10-05 22:15:57 -06:00
parent f3ce69b656
commit 89f3078ce5
12 changed files with 50 additions and 50 deletions

View File

@@ -15,7 +15,7 @@ RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
# Deploy only the dokploy app # Deploy only the dokploy app
ENV NODE_ENV=production ENV NODE_ENV=production
RUN pnpm --filter=@dokploy/builders build RUN pnpm --filter=@dokploy/server build
RUN pnpm --filter=./apps/dokploy run build RUN pnpm --filter=./apps/dokploy run build
RUN pnpm --filter=./apps/dokploy --prod deploy /prod/dokploy RUN pnpm --filter=./apps/dokploy --prod deploy /prod/dokploy

View File

@@ -10,12 +10,12 @@ WORKDIR /usr/src/app
RUN apt-get update && apt-get install -y python3 make g++ git && rm -rf /var/lib/apt/lists/* RUN apt-get update && apt-get install -y python3 make g++ git && rm -rf /var/lib/apt/lists/*
# Install dependencies # Install dependencies
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm --filter=@dokploy/builders --filter=./apps/api install --frozen-lockfile RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm --filter=@dokploy/server --filter=./apps/api install --frozen-lockfile
# Deploy only the dokploy app # Deploy only the dokploy app
ENV NODE_ENV=production ENV NODE_ENV=production
RUN pnpm --filter=@dokploy/builders build RUN pnpm --filter=@dokploy/server build
RUN pnpm --filter=./apps/api run build RUN pnpm --filter=./apps/api run build
RUN pnpm --filter=./apps/api --prod deploy /prod/api RUN pnpm --filter=./apps/api --prod deploy /prod/api

View File

@@ -10,12 +10,12 @@ WORKDIR /usr/src/app
RUN apt-get update && apt-get install -y python3 make g++ git && rm -rf /var/lib/apt/lists/* RUN apt-get update && apt-get install -y python3 make g++ git && rm -rf /var/lib/apt/lists/*
# Install dependencies # Install dependencies
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm --filter=@dokploy/builders --filter=./apps/dokploy install --frozen-lockfile RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm --filter=@dokploy/server --filter=./apps/dokploy install --frozen-lockfile
# Deploy only the dokploy app # Deploy only the dokploy app
ENV NODE_ENV=production ENV NODE_ENV=production
RUN pnpm --filter=@dokploy/builders build RUN pnpm --filter=@dokploy/server build
RUN pnpm --filter=./apps/dokploy run build RUN pnpm --filter=./apps/dokploy run build
RUN pnpm --filter=./apps/dokploy --prod deploy /prod/dokploy RUN pnpm --filter=./apps/dokploy --prod deploy /prod/dokploy

View File

@@ -1,12 +1,12 @@
import { serve } from "@hono/node-server"; import { serve } from "@hono/node-server";
import { Hono } from "hono"; import { Hono } from "hono";
import "dotenv/config"; import "dotenv/config";
import { createClient } from "redis";
import { Queue } from "@nerimity/mimiqueue";
import { zValidator } from "@hono/zod-validator"; import { zValidator } from "@hono/zod-validator";
import { Queue } from "@nerimity/mimiqueue";
import { createClient } from "redis";
import { logger } from "./logger";
import { type DeployJob, deployJobSchema } from "./schema"; import { type DeployJob, deployJobSchema } from "./schema";
import { deploy } from "./utils"; import { deploy } from "./utils";
import { logger } from "./logger";
const app = new Hono(); const app = new Hono();
const redisClient = createClient({ const redisClient = createClient({

View File

@@ -1,13 +1,13 @@
{ {
"compilerOptions": { "compilerOptions": {
"target": "ESNext", "target": "ESNext",
"module": "ESNext", "module": "ESNext",
"moduleResolution": "Node", "moduleResolution": "Node",
"strict": true, "strict": true,
"skipLibCheck": true, "skipLibCheck": true,
"outDir": "dist", "outDir": "dist",
"jsx": "react-jsx", "jsx": "react-jsx",
"jsxImportSource": "hono/jsx" "jsxImportSource": "hono/jsx"
}, },
"exclude": ["node_modules", "dist"] "exclude": ["node_modules", "dist"]
} }

View File

@@ -1 +1 @@
export * from "@dokploy/builders/dist/db/schema"; export * from "@dokploy/server/dist/db/schema";

View File

@@ -1,16 +1,16 @@
{ {
"extends": "./tsconfig.json", "extends": "./tsconfig.json",
"compilerOptions": { "compilerOptions": {
"module": "ESNext", "module": "ESNext",
"outDir": "dist/", "outDir": "dist/",
"target": "ESNext", "target": "ESNext",
"isolatedModules": false, "isolatedModules": false,
"noEmit": false, "noEmit": false,
"moduleResolution": "Node", "moduleResolution": "Node",
"baseUrl": ".", "baseUrl": ".",
"paths": { "paths": {
"@/*": ["./*"] "@/*": ["./*"]
} }
}, },
"include": ["next-env.d.ts", "./server/**/*"] "include": ["next-env.d.ts", "./server/**/*"]
} }

View File

@@ -2,10 +2,10 @@ import { serve } from "@hono/node-server";
import { Hono } from "hono"; import { Hono } from "hono";
import "dotenv/config"; import "dotenv/config";
import { zValidator } from "@hono/zod-validator"; import { zValidator } from "@hono/zod-validator";
import { jobQueueSchema } from "./schema";
import { firstWorker, secondWorker } from "./workers";
import { logger } from "./logger"; import { logger } from "./logger";
import { cleanQueue, removeJob, scheduleJob } from "./queue"; import { cleanQueue, removeJob, scheduleJob } from "./queue";
import { jobQueueSchema } from "./schema";
import { firstWorker, secondWorker } from "./workers";
const app = new Hono(); const app = new Hono();

View File

@@ -1,6 +1,6 @@
import { Queue } from "bullmq"; import { Queue } from "bullmq";
import type { QueueJob } from "./schema";
import { logger } from "./logger"; import { logger } from "./logger";
import type { QueueJob } from "./schema";
export const jobQueue = new Queue("backupQueue", { export const jobQueue = new Queue("backupQueue", {
connection: { connection: {

View File

@@ -1,5 +1,5 @@
import type { QueueJob } from "./schema";
import { type Job, Worker } from "bullmq"; import { type Job, Worker } from "bullmq";
import type { QueueJob } from "./schema";
import { runJobs } from "./utils"; import { runJobs } from "./utils";
export const firstWorker = new Worker( export const firstWorker = new Worker(

View File

@@ -1,13 +1,13 @@
{ {
"compilerOptions": { "compilerOptions": {
"target": "ESNext", "target": "ESNext",
"module": "ESNext", "module": "ESNext",
"moduleResolution": "Node", "moduleResolution": "Node",
"strict": true, "strict": true,
"skipLibCheck": true, "skipLibCheck": true,
"outDir": "dist", "outDir": "dist",
"jsx": "react-jsx", "jsx": "react-jsx",
"jsxImportSource": "hono/jsx" "jsxImportSource": "hono/jsx"
}, },
"exclude": ["node_modules", "dist"] "exclude": ["node_modules", "dist"]
} }

View File

@@ -8,7 +8,7 @@
"dokploy:build": "pnpm --filter=dokploy run build", "dokploy:build": "pnpm --filter=dokploy run build",
"dokploy:start": "pnpm --filter=dokploy run start", "dokploy:start": "pnpm --filter=dokploy run start",
"test": "pnpm --filter=dokploy run test", "test": "pnpm --filter=dokploy run test",
"builder:dev": "pnpm --filter=builders run dev", "server:dev": "pnpm --filter=server run dev",
"docker:build:canary": "./apps/dokploy/docker/build.sh canary", "docker:build:canary": "./apps/dokploy/docker/build.sh canary",
"docs:dev": "pnpm --filter=docs run dev", "docs:dev": "pnpm --filter=docs run dev",
"docs:build": "pnpm --filter=docs run build", "docs:build": "pnpm --filter=docs run build",