avoid running kill of skyvern is not running (#2416)

This commit is contained in:
Asher Foa
2025-05-21 18:14:47 -04:00
committed by GitHub
parent 3cf2f75333
commit bc11625428
2 changed files with 8 additions and 2 deletions

View File

@@ -1,6 +1,9 @@
#!/bin/bash
kill $(lsof -t -i :8000)
pid=$(lsof -t -i :8000)
if [ ! -z "$pid" ]; then
kill $pid
fi
if [ ! -f .env ]; then
cp .env.example .env

View File

@@ -1,6 +1,9 @@
#!/bin/bash
kill $(lsof -t -i :8080)
pid=$(lsof -t -i :8080)
if [ ! -z "$pid" ]; then
kill $pid
fi
cd skyvern-frontend