first commit
Deploy Node App / deploy (push) Successful in 7s

This commit is contained in:
Gitea
2026-05-25 16:38:37 +05:30
parent d55d1e5b4e
commit 1f151e77ed
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -10,7 +10,7 @@ jobs:
- name: Checkout Code - name: Checkout Code
uses: actions/checkout@v3 uses: actions/checkout@v3
# Step 1: Pehle local files ko server par copy karein
- name: Copy files to VPS - name: Copy files to VPS
uses: appleboy/scp-action@master uses: appleboy/scp-action@master
with: with:
@@ -21,7 +21,7 @@ jobs:
source: "./*" source: "./*"
target: "/root/IR-Node-Setup" target: "/root/IR-Node-Setup"
# Step 2: Server par commands run karein (Bina git pull ke)
- name: Execute SSH Commands - name: Execute SSH Commands
uses: appleboy/ssh-action@master uses: appleboy/ssh-action@master
with: with:
+1 -1
View File
@@ -7,7 +7,7 @@ const JWT_SECRET = 'secretkey';
const loginUser = async (req, res) => { const loginUser = async (req, res) => {
try { try {
const { username, password } = req.body; const { username, password } = req.body;
return res.send("hello");
if (!username || !password) { if (!username || !password) {
return res.status(400).json({ return res.status(400).json({