Skip to content

Commit e2ba44b

Browse files
author
Parth Shah
committed
fixing deploy script
1 parent 97dd6b9 commit e2ba44b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ebs_deploy.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ SERVICE=$1
44
ENV=$2
55
TAG_SUFFIX=$3
66
TAG="$ENV.$TAG_SUFFIX"
7-
7+
ENV_LOWER=`echo "$ENV" | awk '{print tolower($0)}'`
88

99
echo "Deploying to Elasticbeanstalk"
1010
echo "############################"
1111
export AWS_ACCESS_KEY_ID=$(eval "echo \$${ENV}_AWS_ACCESS_KEY_ID")
1212
export AWS_SECRET_ACCESS_KEY=$(eval "echo \$${ENV}_AWS_SECRET_ACCESS_KEY")
1313

1414
# eb deploy
15-
eb init -r us-east-1 $SERVICE
16-
EB_OUTPUT="$(eb deploy -l $TAG -r us-east-1)"
15+
# eb init -r us-east-1 $SERVICE
16+
EB_OUTPUT="$(eb deploy tc-project-api-v4-${ENV_LOWER} -l $TAG -r us-east-1)"
1717

1818
echo $EB_OUTPUT
1919
if echo $EB_OUTPUT | grep -iq error; then

0 commit comments

Comments
 (0)