From aef00b405a6b57198cbc2e7511bf237c59a99bb5 Mon Sep 17 00:00:00 2001 From: Jp Date: Thu, 26 Feb 2026 11:19:19 +0800 Subject: [PATCH] chore: remove redundant .env copy commands from deploy targets The .env file is now expected to be present before running deploy commands. This simplifies the Makefile by removing conditional copy logic that was causing confusion about environment setup. --- Makefile | 2 -- 1 file changed, 2 deletions(-) diff --git a/Makefile b/Makefile index daa106b..2d44ce7 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,6 @@ SERVER_IP := 192.168.100.105 SERVER_PATH := /var/www/mkm-admin deploy: build - @if [ ! -f .env ]; then cp .env.example .env; fi @echo "Cleaning up existing deployment if any..." -podman kube down k8s/deployment.yaml @echo "Generating merged deployment with ConfigMap..." @@ -22,7 +21,6 @@ deploy: build deploy-server: @echo "Deploying to remote server $(SERVER_IP)..." - @if [ ! -f .env ]; then cp .env.example .env; fi ssh $(SERVER_USER)@$(SERVER_IP) "mkdir -p $(SERVER_PATH)/k8s" scp .env $(SERVER_USER)@$(SERVER_IP):$(SERVER_PATH)/.env scp k8s/deployment.yaml $(SERVER_USER)@$(SERVER_IP):$(SERVER_PATH)/k8s/deployment.yaml