diff --git a/.github/workflows/deployapp.yml b/.github/workflows/deployapp.yml index 1e94013..e44f567 100644 --- a/.github/workflows/deployapp.yml +++ b/.github/workflows/deployapp.yml @@ -108,7 +108,7 @@ jobs: scp -o StrictHostKeyChecking=no -i ~/ec2-key.pem -r ./* ${{ secrets.EC2_USER }}@${{ secrets.EC2_HOST }}:/tmp/react-app ssh -o StrictHostKeyChecking=no -i ~/ec2-key.pem ${{ secrets.EC2_USER }}@${{ secrets.EC2_HOST }} << 'EOF' - ssh -o StrictHostKeyChecking=no -i /tmp/react-app/ec2-key.pem ${{ secrets.EC2_USER }}@${{ secrets.EC2_PVT_HOST }} "mkdir -p /tmp/react-app" + ssh -o StrictHostKeyChecking=no -i /tmp/react-app/ec2-key.pem ${{ secrets.EC2_USER }}@${{ secrets.EC2_PVT_HOST }} "mkdir -p /tmp/react-app" scp -o StrictHostKeyChecking=no -i /tmp/react-app/ec2-key.pem -r /tmp/react-app/* ${{ secrets.EC2_USER }}@${{ secrets.EC2_PVT_HOST }}:/tmp/react-app ssh -o StrictHostKeyChecking=no -i /tmp/react-app/ec2-key.pem ${{ secrets.EC2_USER }}@${{ secrets.EC2_PVT_HOST }} << 'INNER_EOF' if pgrep -f "docusaurus serve"; then @@ -116,6 +116,7 @@ jobs: fi cd /tmp/react-app sudo yarn install - sudo yarn start & + sudo yarn build + sudo docusaurus serve INNER_EOF EOF