Skip to content

Commit

Permalink
Fixing some more deplyoment bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
daonb committed Jun 25, 2024
1 parent fe86e57 commit eeac096
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion deployment/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ LAYER_NAME="${ENVIRONMENT}-peerbook"
CLUSTER_NAME="${ENVIRONMENT}-peerbook"

echo "Preparing docker compose"
sed -e "s/\${AWS_REGION}/${AWS_REGION}/g; s/\${AWS_ACCOUNT_ID}/${AWS_ACCOUNT_ID}/g; s/\${HASH}/${HASH}/g; s/\${LAYER_NAME}/${LAYER_NAME}/g" docker-compose.${ENVIRONMENT}.template.yml >docker-compose.yml
sed -e "s/\${AWS_REGION}/${AWS_REGION}/g; s/\${AWS_ACCOUNT_ID}/${AWS_ACCOUNT_ID}/g; s/\${HASH}/${HASH}/g; s/\${LAYER_NAME}/${LAYER_NAME}/g; s/\${ENVIRONMENT}/${ENVIRONMENT}/g" docker-compose.${ENVIRONMENT}.template.yml >docker-compose.yml

if [ "${ENVIRONMENT}" = "staging" ]; then
# If in the staging environment, deploy directly to an EC2 instance using AWS CLI via SSM
Expand Down
4 changes: 1 addition & 3 deletions deployment/docker-compose.staging.template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ services:
image: ${AWS_ACCOUNT_ID}.dkr.ecr.${AWS_REGION}.amazonaws.com/${ENVIRONMENT}/peerbook/server:${HASH}
ports:
- "80:17777"
- target: 60000-61000
published: 60000-61000
protocol: udp
- "60000-61000:60000-61000/udp"
environment:
AWS_REGION: ${AWS_REGION}
LAYER_NAME: ${LAYER_NAME}
Expand Down

0 comments on commit eeac096

Please sign in to comment.