Skip to content

Commit

Permalink
fix: script
Browse files Browse the repository at this point in the history
  • Loading branch information
ramamimu committed Feb 16, 2024
1 parent 7e2b3c4 commit 856052e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
deploy:
name: SSH using key
name: Build And Run
runs-on: ubuntu-latest
steps:
- name: executing remote ssh commands using ssh key
Expand All @@ -25,4 +25,6 @@ jobs:
cp /home/ahm_f_ramadhani/.env thread-api/.env
cd thread-api
npm install --omit=dev
pm2 restart src/app.js --name node-service
pwd
ls
pm2 start ./src/app.js
2 changes: 1 addition & 1 deletion src/Interfaces/http/api/ping/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = {
return h
.response({
status: "success",
message: "pong",
message: "ping and pong",
})
.code(200);
},
Expand Down

0 comments on commit 856052e

Please sign in to comment.