Skip to content

Commit 6389660

Browse files
Vacation Planner Sample for Azure Database for PostgreSQL Flexible Server
1 parent affd0e8 commit 6389660

7 files changed

Lines changed: 21 additions & 26 deletions

File tree

.claude/settings.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"permissions": {
3+
"additionalDirectories": [
4+
"/home/paolo/localstack/localstack-pro/localstack-pro-azure"
5+
],
6+
"allow": [
7+
"Read(/home/paolo/localstack/localstack-pro/localstack-pro-azure/**)",
8+
"Edit(/home/paolo/localstack/localstack-pro/localstack-pro-azure/**)",
9+
"Write(/home/paolo/localstack/localstack-pro/localstack-pro-azure/**)",
10+
"Bash(cd /home/paolo/localstack/localstack-pro/localstack-pro-azure:*)",
11+
"Bash(/home/paolo/localstack/localstack-pro/localstack-pro-azure/**)"
12+
]
13+
}
14+
}
Binary file not shown.
31.7 KB
Binary file not shown.
31.7 KB
Binary file not shown.

samples/web-app-postgresql-flexible-server/python/scripts/call-web-app.sh

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ get_docker_container_port_mapping() {
6666
}
6767

6868
call_web_app() {
69+
# Web app port
70+
local web_app_port=8000
71+
6972
# Get the web app name
7073
echo "Getting web app name..."
7174
web_app_name=$(az webapp list --query '[0].name' --output tsv)
@@ -125,9 +128,9 @@ call_web_app() {
125128
exit 1
126129
fi
127130

128-
# Get the mapped host port for web app HTTP trigger (internal port 80)
129-
echo "Getting the host port mapped to internal port 80 in container [$container_name]..."
130-
host_port=$(get_docker_container_port_mapping "$container_name" "80")
131+
# Get the mapped host port for web app HTTP trigger (internal port 8000)
132+
echo "Getting the host port mapped to internal port $web_app_port in container [$container_name]..."
133+
host_port=$(get_docker_container_port_mapping "$container_name" "$web_app_port")
131134

132135
if [ $? -eq 0 ] && [ -n "$host_port" ]; then
133136
echo "Mapped host port [$host_port] retrieved successfully for container [$container_name]"
@@ -155,7 +158,7 @@ call_web_app() {
155158
if [ -n "$container_ip" ]; then
156159
# Call the web app via the container IP address
157160
echo "Calling web app [$web_app_name] via container IP address [$container_ip]..."
158-
curl -s "http://$container_ip/" 1> /dev/null
161+
curl -s "http://$container_ip:$web_app_port/" 1> /dev/null
159162

160163
if [ $? == 0 ]; then
161164
echo "Web app call via container IP address [$container_ip] succeeded."

samples/web-app-postgresql-flexible-server/python/terraform/.terraform.lock.hcl

Lines changed: 0 additions & 22 deletions
This file was deleted.
31.7 KB
Binary file not shown.

0 commit comments

Comments
 (0)