Fix frontend PUBLIC_BACKEND_URL
Build releases / build-docker (., focus) (push) Successful in 12m22s Details
Build releases / build-docker (./backend, focus-backend) (push) Successful in 10m18s Details
Build releases / build-docker (./frontend, ./frontend/Dockerfile, focus-frontend) (push) Successful in 3m50s Details
Build releases / build-tauri (push) Failing after 5m20s Details
Build releases / build-server (push) Failing after 1m0s Details

This commit is contained in:
Brieuc Dubois 2024-02-01 13:23:03 +01:00
parent 5f2f938703
commit cfc61b21aa
2 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@ PUBLIC_BACKEND_URL=${PUBLIC_BACKEND_URL:-http://localhost:3000}
PUBLIC_BACKEND_WSURL=${PUBLIC_BACKEND_WSURL:-${PUBLIC_BACKEND_URL/http:/ws:}}
PUBLIC_BACKEND_WSURL=${PUBLIC_BACKEND_WSURL/https:/wss:}
find /var/www/html -type f -exec sed -i "s|http://localhost:3000|$PUBLIC_BACKEND_URL|g" {} +
find /var/www/html -type f -exec sed -i "s|ws://localhost:3000|$PUBLIC_BACKEND_WSURL|g" {} +
find /usr/share/nginx/html -type f -exec sed -i "s|http://localhost:3000|$PUBLIC_BACKEND_URL|g" {} +
find /usr/share/nginx/html -type f -exec sed -i "s|ws://localhost:3000|$PUBLIC_BACKEND_WSURL|g" {} +
nginx -g 'daemon off;'

2
run.sh
View File

@ -10,4 +10,4 @@ find /usr/share/nginx/html -type f -exec sed -i "s|ws://localhost:3000|$PUBLIC_B
nginx -g 'daemon off;' &
cd backend && ./main &
wait -n
wait -n