Skip to content

Commit

Permalink
Kill app before re-running on replit
Browse files Browse the repository at this point in the history
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
  • Loading branch information
benbusby committed Nov 16, 2021
1 parent e93507f commit 257b23e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .replit
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
language = "bash"
run = "pip install -r requirements.txt && ./run"
onBoot = "pip install -r requirements.txt && ./run"
run = "kill $(lsof -t -i:5000) > /dev/null 2>&1; pip install -r requirements.txt && ./run"
onBoot = "kill $(lsof -t -i:5000) > /dev/null 2>&1; pip install -r requirements.txt && ./run"

0 comments on commit 257b23e

Please sign in to comment.