Skip to content

Commit 1f692e7

Browse files
committed
fix: yarn start
1 parent b402e5a commit 1f692e7

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/main.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,15 @@ jobs:
107107
REMOTE_USER: ${{ secrets.REMOTE_USER }}
108108
SSH_KEY: ${{ secrets.REMOTE_PRIVATE_KEY }}
109109
run: |
110-
DIR="/home/root/app/octodocs"
111-
cd "$DIR"
112-
cd backend
113-
yarn start
110+
mkdir ~/.ssh
111+
echo "$SSH_KEY" > ~/.ssh/id_rsa
112+
chmod 600 ~/.ssh/id_rsa
113+
ssh -o StrictHostKeyChecking=no $REMOTE_USER@$REMOTE_HOST << 'EOF'
114+
DIR="/home/root/app/octodocs"
115+
cd "$DIR"
116+
cd backend
117+
yarn start
118+
EOF
114119
# # 배포용 쉘 스크립트 파일 전송
115120
# - name: Copy deploy.sh to remote server
116121
# uses: appleboy/scp-action@master

0 commit comments

Comments
 (0)