From 28893a4793668000fccc19cea5daf0d99728d33b Mon Sep 17 00:00:00 2001 From: Abel Ratanaphan Date: Thu, 22 Aug 2024 17:22:31 -0400 Subject: [PATCH] fix: force-redeploy on --- .github/workflows/aws.yml | 2 +- client/webpack.config.js | 1 + server/src/server.ts | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/aws.yml b/.github/workflows/aws.yml index 1cb7c83..b061222 100644 --- a/.github/workflows/aws.yml +++ b/.github/workflows/aws.yml @@ -60,4 +60,4 @@ jobs: set -e set -o pipefail # Update the ECS service - aws ecs update-service --cluster ${{ env.ECS_CLUSTER }} --service ${{ env.ECS_SERVICE }} + aws ecs update-service --cluster ${{ env.ECS_CLUSTER }} --service ${{ env.ECS_SERVICE }} --force-new-deployment diff --git a/client/webpack.config.js b/client/webpack.config.js index e92aacb..1dc12e2 100644 --- a/client/webpack.config.js +++ b/client/webpack.config.js @@ -44,6 +44,7 @@ const config = { new HtmlWebpackPlugin({ template: './client/public/index.html', filename: 'index.html', + favicon: './client/public/favicon.ico', }), new MiniCssExtractPlugin({ filename: 'bundle.css', diff --git a/server/src/server.ts b/server/src/server.ts index cdc0561..9fcf851 100644 --- a/server/src/server.ts +++ b/server/src/server.ts @@ -17,7 +17,7 @@ const PORT = process.env.NODE_ENV === 'production' ? process.env.PROD_PORT : 808 app.use(cors()); app.use(express.json()); -app.use(favicon(path.join(__dirname, '../../client/public/favicon.ico'))); +app.use(favicon(path.join(__dirname, '../../client/dist/favicon.ico'))); app.use(express.static(path.join(__dirname, '../../client/dist')));