refactor(dokploy): add -r flag to read the enviroments vars

This commit is contained in:
Mauricio Siu
2024-10-22 20:19:49 -06:00
parent cff5049096
commit 76ed1107c2
2 changed files with 4 additions and 4 deletions

View File

@@ -10,7 +10,7 @@
"build-server": "tsx esbuild.config.ts",
"build-next": "next build",
"setup": "tsx -r dotenv/config setup.ts && sleep 5 && pnpm run migration:run",
"reset-password": "node dist/reset-password.mjs",
"reset-password": "node -r dotenv/config dist/reset-password.mjs",
"dev": "tsx -r dotenv/config ./server/server.ts --project tsconfig.server.json ",
"studio": "drizzle-kit studio --config ./server/db/drizzle.config.ts",
"migration:generate": "drizzle-kit generate --config ./server/db/drizzle.config.ts",

View File

@@ -1,6 +1,6 @@
import { generateRandomPassword } from "@dokploy/server/dist/auth/random-password";
import { findAdmin } from "@dokploy/server/dist/services/admin";
import { updateAuthById } from "@dokploy/server/dist/services/auth";
import { findAdmin } from "@dokploy/server";
import { updateAuthById } from "@dokploy/server";
import { generateRandomPassword } from "@dokploy/server";
(async () => {
try {