diff --git a/.github/workflows/prod-cicd.yml b/.github/workflows/prod-cicd.yml index bb584c7..c4d1c45 100644 --- a/.github/workflows/prod-cicd.yml +++ b/.github/workflows/prod-cicd.yml @@ -100,7 +100,7 @@ jobs: key: ${{ secrets.EC2_SSH_KEY }} script_stop: true script: | - sudo docker exec -i nginxserver bash -c 'echo "set \$service_url ${{ env.TARGET_UPSTREAM }};" > /etc/nginx/conf.d/service-env.inc && sudo nginx -s reload' + sudo docker exec -i nginxserver bash -c 'echo "set \$service_url ${{ env.TARGET_UPSTREAM }};" > /etc/nginx/conf.d/service-env.inc && service nginx reload' - name: Stop current server uses: appleboy/ssh-action@master