Skip to content

Commit

Permalink
checking service restart
Browse files Browse the repository at this point in the history
  • Loading branch information
indpurvesh committed Nov 9, 2024
1 parent 094a175 commit 5398ad7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,15 @@ jobs:
key: ${{ secrets.SSH_KEY }}
source: "./public,./resources"
target: ${{ secrets.RUST_DEPLOY_PATH }}

- name: restart service
uses: appleboy/[email protected]
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.SSH_KEY }}
script: |
sudo systemctl stop avored.service
sudo systemctl start avored.service
Expand Down
2 changes: 1 addition & 1 deletion src/services/cms_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ impl CmsService {
) -> Result<bool> {
let from_address = String::from("[email protected]");
let to_address = String::from("[email protected]");
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()
Expand Down

0 comments on commit 5398ad7

Please sign in to comment.