From 4810485a016c25b906c9c110377905a27f9ec2b2 Mon Sep 17 00:00:00 2001 From: leehk Date: Fri, 11 Apr 2025 15:56:26 +0800 Subject: [PATCH] update --- .github/workflows/develop.yml | 12 ------------ app/frontend/.env.production | 1 + app/frontend/src/App.tsx | 2 +- 3 files changed, 2 insertions(+), 13 deletions(-) create mode 100644 app/frontend/.env.production diff --git a/.github/workflows/develop.yml b/.github/workflows/develop.yml index 79fd5f0..220d8b5 100644 --- a/.github/workflows/develop.yml +++ b/.github/workflows/develop.yml @@ -17,12 +17,6 @@ jobs: contents: read packages: write steps: - - name: Check disk space before cleanup - run: df -h - - name: Clean up disk space - run: | - docker system prune -af - df -h - name: Checkout uses: actions/checkout@v3 with: @@ -50,12 +44,6 @@ jobs: runs-on: ubuntu-latest needs: build steps: - - name: Check disk space before cleanup - run: df -h - - name: Clean up disk space - run: | - docker system prune -af - df -h - name: Checkout uses: actions/checkout@v3 with: diff --git a/app/frontend/.env.production b/app/frontend/.env.production new file mode 100644 index 0000000..6eaca9d --- /dev/null +++ b/app/frontend/.env.production @@ -0,0 +1 @@ +REACT_APP_BASE_URL=https://backend.aimingmed.com/ \ No newline at end of file diff --git a/app/frontend/src/App.tsx b/app/frontend/src/App.tsx index 0a9f2cf..f6dbf71 100644 --- a/app/frontend/src/App.tsx +++ b/app/frontend/src/App.tsx @@ -13,7 +13,7 @@ const App: React.FC = () => { useEffect(() => { mounted.current = true; - const ws = new WebSocket('ws://localhost:8000/ws'); + const ws = new WebSocket('ws://localhost:8004/ws'); setSocket(ws); ws.onopen = () => { console.log('WebSocket connection opened');