Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhrumil-Gohil committed Sep 3, 2024
1 parent a9e5f19 commit 6e9a6a4
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/deployapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,13 @@ jobs:
# ssh -o StrictHostKeyChecking=no -i /tmp/react-app/ec2-key.pem ${{ secrets.EC2_USER }}@${{ secrets.EC2_PVT_HOST }} "mkdir -p /tmp/react-app"
scp -v -i /tmp/react-app/ec2-key.pem -r /tmp/react-app ${{ secrets.EC2_USER }}@${{ secrets.EC2_PVT_HOST }}:/tmp/react-app 2>&1 | tee /tmp/scp_error.log
ssh -o StrictHostKeyChecking=no -i /tmp/react-app/ec2-key.pem ${{ secrets.EC2_USER }}@${{ secrets.EC2_PVT_HOST }} << 'INNER_EOF'
echo "Hello world"
if pgrep -f "docusaurus serve"; then
pkill -f "docusaurus serve"
fi
cd /tmp/react-app
sudo yarn install
sudo yarn build
sudo docusaurus serve
INNER_EOF
EOF
echo "Hello world"
if pgrep -f "docusaurus serve"; then
pkill -f "docusaurus serve"
fi
cd /tmp/react-app
sudo yarn install
sudo yarn build
sudo docusaurus serve
INNER_EOF
EOF

0 comments on commit 6e9a6a4

Please sign in to comment.