Skip to content

Commit

Permalink
refactor(dokploy): add -r flag to read the enviroments vars
Browse files Browse the repository at this point in the history
  • Loading branch information
Siumauricio committed Oct 23, 2024
1 parent cff5049 commit 76ed110
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion apps/dokploy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 3 additions & 3 deletions apps/dokploy/reset-password.ts
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down

0 comments on commit 76ed110

Please sign in to comment.