focus/frontend/run.sh

6 lines
190 B
Bash
Raw Normal View History

2024-01-11 16:32:48 +01:00
PUBLIC_BACKEND_URL=${PUBLIC_BACKEND_URL:-http://localhost:3000}
find /usr/share/nginx/html -type f -exec sed -i "s|http://localhost:3000|$PUBLIC_BACKEND_URL|g" {} +
nginx -g 'daemon off;'