From 5398ad7adbdfa72d83e9fde78148aa29034af35b Mon Sep 17 00:00:00 2001 From: Purvesh Date: Sat, 9 Nov 2024 15:14:46 +1300 Subject: [PATCH] checking service restart --- .github/workflows/rust.yml | 10 +++++++++- src/services/cms_service.rs | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 06534192..cb68e0d0 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -36,7 +36,15 @@ jobs: key: ${{ secrets.SSH_KEY }} source: "./public,./resources" target: ${{ secrets.RUST_DEPLOY_PATH }} - + - name: restart service + uses: appleboy/ssh-action@v1.1.0 + with: + host: ${{ secrets.HOST }} + username: ${{ secrets.USERNAME }} + key: ${{ secrets.SSH_KEY }} + script: | + sudo systemctl stop avored.service + sudo systemctl start avored.service diff --git a/src/services/cms_service.rs b/src/services/cms_service.rs index 735c5850..e2faddca 100644 --- a/src/services/cms_service.rs +++ b/src/services/cms_service.rs @@ -23,7 +23,7 @@ impl CmsService { ) -> Result { let from_address = String::from("info@avored.com"); let to_address = String::from("ind.purvesh@gmail.com"); - let email_subject = String::from("Contact us message"); + let email_subject = String::from("Contact us message sent"); let sent_contact_email_message_body = template.handlebars.render("contact-us-email", &payload)?; let email = Message::builder()