Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix aws env
  • Loading branch information
mmaquina committed Mar 28, 2023
commit 60b09dd23b95f5006ce4f6fc0669552c9dd4cdf2
8 changes: 8 additions & 0 deletions .aws.stage.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
AUTHORITY=https://ioetec.b2clogin.com/ioetec.onmicrosoft.com/B2C_1_ioetec-implicit-grant-flow
CLIENT_ID=voidvoid
CLIENT_URL='394737840825-iujr9h8dil0tumd4p71v75hkkpft7n8b.apps.googleusercontent.com'
API_URL=https://api.stg.timetracker.ioet.com/api
SCOPES=voidvoidvoid
STACK_EXCHANGE_ID='IrvYA3VnTtSujA*4GXNNZw(('
STACK_EXCHANGE_ACCESS_TOKEN='1aTdIEmS4Iau8nlIhKcIew))'
AZURE_APP_CONFIGURATION_CONNECTION_STRING='Endpoint=https://time-tracker-config.azconfig.io;Id=vaG9-l5-s0:+XSPivZr//ln4WYn17Oj;Secret=Czai5chycYKcdjDXNJBhe54jVu64NJJAUAAADcGzCes='
Binary file modified .stage.env
Binary file not shown.
2 changes: 1 addition & 1 deletion infrastructure/aws_ec2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ echo "Deploying $1..."
docker ps -aq | xargs docker stop| xargs docker rm --force --volumes
docker system prune -af
aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 568748651446.dkr.ecr.us-east-1.amazonaws.com
docker run -d --name timetracker_ui --env-file .$2.env -p 80:80 568748651446.dkr.ecr.us-east-1.amazonaws.com/time-tracker/$2-ui:$1
docker run -d --name timetracker_ui --env-file .aws.$2.env -p 80:80 568748651446.dkr.ecr.us-east-1.amazonaws.com/time-tracker/$2-ui:$1