diff --git a/.github/workflows/deploy_test_web.yaml b/.github/workflows/deploy_test_web.yaml index 06fbf4965d..f4cc82fa80 100644 --- a/.github/workflows/deploy_test_web.yaml +++ b/.github/workflows/deploy_test_web.yaml @@ -71,4 +71,4 @@ jobs: cd appflowy-web-app docker build -t appflowy-web-app . docker rm -f appflowy-web-app || true - docker run -d -p 3000:80 --env-file .env --name appflowy-web-app appflowy-web-app + docker run -d -p 3000:3000 --env-file .env --name appflowy-web-app appflowy-web-app diff --git a/frontend/appflowy_web_app/Dockerfile b/frontend/appflowy_web_app/Dockerfile index 7c12ec0203..15938738ad 100644 --- a/frontend/appflowy_web_app/Dockerfile +++ b/frontend/appflowy_web_app/Dockerfile @@ -26,6 +26,6 @@ COPY start.sh /app/start.sh RUN chmod +x /app/start.sh -EXPOSE 80 +EXPOSE 3000 CMD ["/app/start.sh"] diff --git a/frontend/appflowy_web_app/nginx.conf b/frontend/appflowy_web_app/nginx.conf index c955b7519e..721fc114a9 100644 --- a/frontend/appflowy_web_app/nginx.conf +++ b/frontend/appflowy_web_app/nginx.conf @@ -38,11 +38,11 @@ http { # Existing server block for HTTP server { - listen 80; + listen 3000; server_name localhost; location / { - proxy_pass http://localhost:3000; + proxy_pass http://localhost:3001; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection 'upgrade'; diff --git a/frontend/appflowy_web_app/server.cjs b/frontend/appflowy_web_app/server.cjs index dfce8db01c..209e9aa928 100644 --- a/frontend/appflowy_web_app/server.cjs +++ b/frontend/appflowy_web_app/server.cjs @@ -140,7 +140,7 @@ const createServer = async (req) => { const start = () => { try { Bun.serve({ - port: 3000, + port: 3001, fetch: createServer, error: (err) => { logger.error(`Internal Server Error: ${err}`);