diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index 2a32c26..1a0ff81 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -56,12 +56,12 @@ jobs: echo ${{ secrets.APP_ENV }} > .env echo "pass 6" echo "pass 6" - cp scripts/e-commerce-api.service /etc/systemd/system/e-commerce-api.service + cp server-script/e-commerce-api.service /etc/systemd/system/e-commerce-api.service systemctl daemon-reload - systemctl restart prod + systemctl restart e-commerce-api echo "Waiting for service to start..." sleep 10 - if systemctl is-active --quiet prod.service; then + if systemctl is-active --quiet e-commerce-api.service; then echo "Deployment successful!" else echo "Deployment failed!"