From 9ec7cc94c1ffab9094443008997538ebb48f4200 Mon Sep 17 00:00:00 2001 From: Jungu Lee <100949102+jobkaeHenry@users.noreply.github.com> Date: Mon, 27 Nov 2023 00:31:21 +0900 Subject: [PATCH] =?UTF-8?q?CD-SSH-=EC=98=A4=EB=A5=98=EC=88=98=EC=A0=95=20(?= =?UTF-8?q?#47)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Fix : 클라이언트 컴포넌트 Async 태그 제거 * Fix : SSH 도커 로그인 오류 수정 * Fix : 로그인 명령어 수정 --- .github/workflows/Client-DEV-CD.yml | 1 + client/src/components/post/PostDetail.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/Client-DEV-CD.yml b/.github/workflows/Client-DEV-CD.yml index f3fad81..1995669 100644 --- a/.github/workflows/Client-DEV-CD.yml +++ b/.github/workflows/Client-DEV-CD.yml @@ -34,6 +34,7 @@ jobs: password: ${{ secrets.STORYBOOK_CLOUD_PASSWORD }} port: ${{ secrets.STORYBOOK_CLOUD_PORT }} script: | + sudo docker login -u ${{ secrets.CLIENT_DOCKER_USERNAME }} -p ${{ secrets.CLIENT_DOCKER_PASSWORD }} sudo docker pull ${{ secrets.CLIENT_STORYBOOK_REPO }}/${{ secrets.CLIENT_DEV_SERVICE_NAME }}:latest sudo docker rm -f ${{ secrets.CLIENT_DEV_SERVICE_NAME }} sudo docker run --name ${{ secrets.CLIENT_DEV_SERVICE_NAME }} -d -p ${{ secrets.CLIENT_DEV_PORT }}:${{ secrets.CLIENT_DEV_PORT }} ${{ secrets.CLIENT_STORYBOOK_REPO }}/${{ secrets.CLIENT_DEV_SERVICE_NAME }}:latest diff --git a/client/src/components/post/PostDetail.tsx b/client/src/components/post/PostDetail.tsx index a6e4b16..f5b23ad 100644 --- a/client/src/components/post/PostDetail.tsx +++ b/client/src/components/post/PostDetail.tsx @@ -9,7 +9,7 @@ interface PostDetailInterface { postNo: string; initialData: PostInterface; } -const PostDetail = async ({ postNo, initialData }: PostDetailInterface) => { +const PostDetail = ({ postNo, initialData }: PostDetailInterface) => { const { data } = useGetPostDetailQuery(postNo, { initialData }); //FIXME 포스트의 좋아요갯수가 업데이트 되지않음 return data ? (