Skip to content

Commit

Permalink
Add provision_alb_name for web multi process
Browse files Browse the repository at this point in the history
  • Loading branch information
MatheusdeMelo committed Jan 19, 2024
1 parent ae9a7b0 commit 8843e8a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions provision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ if [ "$provision_process_type" == "web" ]; then
fi

if [[ "$provision_process_type" =~ ^web[a-z1-9] ]]; then
provision_alb_name=$provision_repository_slug-$provision_branch_name
provision_alb_exists=$(aws elbv2 describe-load-balancers --name ${provision_alb_name:0:32} || echo false)
if [ "$provision_alb_exists" = false ]; then
echo "----> Error: The Procfile order needs to 'WEB' process be the first."
Expand Down

0 comments on commit 8843e8a

Please sign in to comment.