mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
refacctor: add missing envs
This commit is contained in:
5
.github/workflows/deploy.yml
vendored
5
.github/workflows/deploy.yml
vendored
@@ -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
|
||||
|
||||
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user