mirror of
https://github.com/neynarxyz/create-farcaster-mini-app.git
synced 2025-12-06 01:12:34 -05:00
Revert "Merge pull request #15 from neynarxyz/shreyas-formatting"
This reverts commitb1fdfc19a9, reversing changes made tob9e2087bd8.
This commit is contained in:
@@ -21,13 +21,13 @@ args.forEach((arg, index) => {
|
||||
|
||||
try {
|
||||
console.log(`Checking for processes on port ${port}...`);
|
||||
|
||||
|
||||
// Find processes using the port
|
||||
const pids = execSync(`lsof -ti :${port}`, { encoding: 'utf8' }).trim();
|
||||
|
||||
|
||||
if (pids) {
|
||||
console.log(`Found processes: ${pids.replace(/\n/g, ', ')}`);
|
||||
|
||||
|
||||
// Kill the processes
|
||||
execSync(`kill -9 ${pids.replace(/\n/g, ' ')}`);
|
||||
console.log(`✓ Processes on port ${port} have been terminated`);
|
||||
@@ -42,4 +42,4 @@ try {
|
||||
console.error(`Error: ${error.message}`);
|
||||
process.exit(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user