Update run.sh for merged dockerfile
Backend docker image / release-image (push) Successful in 10m5s Details
Frontend and backend docker image / release-image (push) Successful in 15m8s Details
Tauri based desktop app / publish-tauri-desktop (push) Successful in 5m7s Details
Frontend docker image / release-image (push) Successful in 3m35s Details

This commit is contained in:
Brieuc Dubois 2024-01-12 13:38:04 +01:00
parent 3b05cde543
commit 5756770b64
2 changed files with 8 additions and 1 deletions

View File

@ -9,7 +9,7 @@
},
"package": {
"productName": "Focus",
"version": "0.3.1"
"version": "0.3.2"
},
"tauri": {
"allowlist": {

7
run.sh
View File

@ -1,5 +1,12 @@
#!/bin/bash
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 frontend -type f -exec sed -i "s|http://localhost:3000|$PUBLIC_BACKEND_URL|g" {} +
find frontend -type f -exec sed -i "s|ws://localhost:3000|$PUBLIC_BACKEND_WSURL|g" {} +
cd frontend && npm run preview -- --port 4173 --host 0.0.0.0 &
cd backend && ./main &