diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 371a7b6..1e9355d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -23,6 +23,7 @@ jobs: key: ${{ secrets.EC2_KEY }} script: | echo "🔄 Deploying clientside to EC2..." + cd /home/onehash sudo -u onehash bash -c ' @@ -40,10 +41,9 @@ jobs: echo "⚙️ Building clientside app..." bench build --app clientside - - echo "🚀 Restarting supervisor services..." - echo "${{secrets.EC2_PW}}" | sudo -S supervisorctl restart all ' + echo "🚀 Restarting supervisor services..." + sudo supervisorctl restart all