From 77b8d73cf7d156bfbe1e44aaf5bce5ee88d06492 Mon Sep 17 00:00:00 2001 From: Destiny Saturday Date: Mon, 29 Jul 2024 01:46:44 +0100 Subject: [PATCH] Update team_deploy.sh Signed-off-by: Destiny Saturday --- scripts/team_deploy.sh | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/scripts/team_deploy.sh b/scripts/team_deploy.sh index 14c83e226..c558e020a 100755 --- a/scripts/team_deploy.sh +++ b/scripts/team_deploy.sh @@ -3,23 +3,16 @@ set -e # Check if the team name is provided -if [ -z "$1" ]; then - echo "Error: Team name is required." - echo "Usage: $0 [team name] [port]" - exit 1 -fi - -# Check if the port is provided -if [ -z "$2" ]; then +if [ -z "$1" ] || [ -z "$2" ]; then echo "Error: Port number is required." echo "Usage: $0 [team name] [port]" exit 1 fi -# Assign arguments to variables for clarity TEAM_NAME=$1 export PORT=$2 cd "$(git rev-parse --show-toplevel)" git pull origin dev +docker pull hngdevops/nextjs-boilerplate:dev docker compose --project-name $TEAM_NAME -f docker/team-deploy/docker-compose.yml up -d