mirror of
https://github.com/privacy-scaling-explorations/pse.dev.git
synced 2026-01-10 22:58:06 -05:00
Troubleshooting url for stg
This commit is contained in:
8
.github/scripts/deploy.sh
vendored
8
.github/scripts/deploy.sh
vendored
@@ -11,13 +11,9 @@ env=$1
|
||||
#
|
||||
#aws ecs wait services-stable --cluster pse-web-$env --services $tasks
|
||||
|
||||
echo "Before"
|
||||
|
||||
#if [ $env = "stg" ]; then
|
||||
if [ $env = "stg" ]; then
|
||||
task_arn=$(aws ecs list-tasks --cluster pse-web-$env --query 'taskArns[]' --output text)
|
||||
eni_id=$(aws ecs describe-tasks --cluster pse-web-$env --task $task_arn --query 'tasks[].attachments[].details[?name==`networkInterfaceId`].value' --output text)
|
||||
public_ip=$(aws ec2 describe-network-interfaces --network-interface-ids $eni_id --query 'NetworkInterfaces[].Association.PublicIp' --output text)
|
||||
echo "STG Url: http://$public_ip:3000"
|
||||
#fi
|
||||
|
||||
echo "After"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user