Skip to content

Commit

Permalink
Fix port to multi process
Browse files Browse the repository at this point in the history
  • Loading branch information
MatheusdeMelo committed Jan 25, 2024
1 parent a47ec4b commit 6423f69
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@ if [[ $deploy_process_type != "scheduledtasks" && ( -z "$ECS_SERVICE_TASK_PROCES
if [ -z "$PORT" ]; then
# TODO: remember to load it from SM
PORT=3000
if [[ $deploy_process_type =~ ^web[1-9] ]]; then
IFS='-' read -r -a branch <<< "$deploy_repository_slug"
PORT=$(aws secretsmanager get-secret-value --secret-id "${branch[1]}"/$deploy_repository_slug | jq --raw-output '.SecretString' | jq -r .PORT${deploy_process_type^^} || echo false)
fi
echo "----> This is the PORT: $PORT"
fi

if [ -z "$DEPLOYMENT_CIRCUIT_BREAKER_RULE" ]; then
Expand Down

0 comments on commit 6423f69

Please sign in to comment.