fix: deploy

This commit is contained in:
Kilu 2024-06-29 01:32:22 +08:00
parent df7e70e9f6
commit b1afc455e9
4 changed files with 5 additions and 5 deletions

View File

@ -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:3000 --env-file .env --name appflowy-web-app appflowy-web-app
docker run -d -p 3000:80 --env-file .env --name appflowy-web-app appflowy-web-app

View File

@ -26,6 +26,6 @@ COPY start.sh /app/start.sh
RUN chmod +x /app/start.sh
EXPOSE 3000
EXPOSE 80
CMD ["/app/start.sh"]

View File

@ -38,11 +38,11 @@ http {
# Existing server block for HTTP
server {
listen 3000;
listen 80;
server_name localhost;
location / {
proxy_pass http://localhost:3001;
proxy_pass http://localhost:3000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';

View File

@ -140,7 +140,7 @@ const createServer = async (req) => {
const start = () => {
try {
Bun.serve({
port: 3001,
port: 3000,
fetch: createServer,
error: (err) => {
logger.error(`Internal Server Error: ${err}`);