From 514ca96cd94931f0b86d443d3c0847106a7b238e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=ED=95=9C=ED=98=9C=EC=84=A0?= Date: Tue, 20 Feb 2024 22:55:33 +0900 Subject: [PATCH] =?UTF-8?q?ci:=20deploy.sh=20=EC=88=98=EC=A0=95=20(#23)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy.sh | 7 ++++++- next.config.js | 1 - 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/deploy.sh b/deploy.sh index 156561c..2921d64 100644 --- a/deploy.sh +++ b/deploy.sh @@ -1,4 +1,9 @@ #!/usr/bin/env bash echo "> FE 배포" -sudo cp -rf /home/ubuntu/fridge-link-deploy/build/* /var/www/html \ No newline at end of file + +sudo fuser -k 80/tcp + +cd /home/ubuntu/fridge-link-deploy + +nohup yarn start & \ No newline at end of file diff --git a/next.config.js b/next.config.js index 29ffa44..408b379 100644 --- a/next.config.js +++ b/next.config.js @@ -4,7 +4,6 @@ const nextConfig = { images: { domains: ['mara-s3bucket.s3.ap-northeast-2.amazonaws.com'], }, - distDir: 'build', webpack: (config) => { return { ...config,