Kill app before re-running on replit

Addresses an issue where re-running an instance on replit caused an
`[ERNO 98] Address already in use` error. Now it kills whatever process
is running on the default Whoogle port (5000) before running the app.

Fixes #531
main
Ben Busby 2021-11-15 20:34:18 -07:00
parent e93507f148
commit 257b23e89e
No known key found for this signature in database
GPG Key ID: 339B7B7EB5333D14
1 changed files with 2 additions and 2 deletions

View File

@ -1,3 +1,3 @@
language = "bash" language = "bash"
run = "pip install -r requirements.txt && ./run" run = "kill $(lsof -t -i:5000) > /dev/null 2>&1; pip install -r requirements.txt && ./run"
onBoot = "pip install -r requirements.txt && ./run" onBoot = "kill $(lsof -t -i:5000) > /dev/null 2>&1; pip install -r requirements.txt && ./run"