From aaa4ca297dae57917357f0208433bcc08ee8f2a4 Mon Sep 17 00:00:00 2001 From: Mauricio Siu <47042324+Siumauricio@users.noreply.github.com> Date: Thu, 10 Oct 2024 21:32:27 -0600 Subject: [PATCH] refacctor: add missing envs --- .github/workflows/deploy.yml | 5 +++++ apps/dokploy/server/server.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 677bbfc3..39427012 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -62,6 +62,11 @@ jobs: with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} + + - name: Add Enviroment Variables + run: | + echo "NODE_ENV=production" >> .env + echo "IS_CLOUD=true" >> .env - name: Build and push Docker image uses: docker/build-push-action@v4 diff --git a/apps/dokploy/server/server.ts b/apps/dokploy/server/server.ts index 0c29975f..8ab7d421 100644 --- a/apps/dokploy/server/server.ts +++ b/apps/dokploy/server/server.ts @@ -25,7 +25,7 @@ import { setupTerminalWebSocketServer, } from "./wss/terminal"; -config({ path: ".env", override: true }); +config({ path: ".env" }); const PORT = Number.parseInt(process.env.PORT || "3000", 10); const dev = process.env.NODE_ENV !== "production"; const app = next({ dev });