18 lines
292 B
Bash
Executable File
18 lines
292 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -o xtrace
|
|
|
|
# Wait for port 4200 to be open
|
|
while ! nc -z localhost 4200; do
|
|
echo "Waiting for port 4200..."
|
|
sleep 1
|
|
done
|
|
|
|
# Wait for port 3000 to be open
|
|
while ! nc -z localhost 3000; do
|
|
echo "Waiting for port 3000..."
|
|
sleep 1
|
|
done
|
|
|
|
caddy run --config /app/Caddyfile
|