From 2a0c93948a3f8684ed2a60e6c07b198bce6ca3ce Mon Sep 17 00:00:00 2001 From: Basir Khan Date: Tue, 24 Dec 2024 19:43:17 +0530 Subject: [PATCH] Update deploy_django_app.sh Deployment failed due to deploy function cannot find the docker file for that i have added a line for swithicng to project directory that should fix that issue. --- day03/deploy_django_app.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/day03/deploy_django_app.sh b/day03/deploy_django_app.sh index 4aad1f2..5ef57cc 100755 --- a/day03/deploy_django_app.sh +++ b/day03/deploy_django_app.sh @@ -40,6 +40,8 @@ required_restarts() { # Function to deploy the Django app deploy() { + echo "switching to project directory" + cd django-notes-app echo "Building and deploying the Django app..." docker build -t notes-app . && docker-compose up -d || { echo "Failed to build and deploy the app."