Skip to content

Commit

Permalink
Update team_deploy.sh
Browse files Browse the repository at this point in the history
Signed-off-by: Destiny Saturday  <[email protected]>
  • Loading branch information
ThePrimeJnr authored Jul 29, 2024
1 parent 47e79e3 commit 77b8d73
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions scripts/team_deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 77b8d73

Please sign in to comment.