Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes in api config as per east africa youth #85

Open
wants to merge 3 commits into
base: youth-management
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions free_port_3000.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash

PORT=4000

echo "Checking for processes running on port $PORT..."

# Find the process ID (PID) using the port
PID=$(lsof -t -i:$PORT)

if [ -z "$PID" ]; then
echo "No process is using port $PORT."
else
echo "Process found on port $PORT with PID: $PID"
echo "Killing the process..."
kill -9 $PID
if [ $? -eq 0 ]; then
echo "Successfully killed process with PID $PID on port $PORT."
else
echo "Failed to kill process with PID $PID. You might need sudo privileges."
fi
fi

1 change: 0 additions & 1 deletion src/app.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@ import { ApiBasicAuth, ApiHeader } from '@nestjs/swagger';
@Controller()
export class AppController {
constructor(private readonly appService: AppService) {}

}
Loading