@@ -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:
|
||||||
|
|||||||
@@ -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({
|
||||||
|
|||||||
Reference in New Issue
Block a user