mirror of
https://github.com/benbusby/whoogle-search
synced 2024-10-30 09:20:50 +00:00
Move replit startup commands to their own script
The .replit file gets autofilled with a ton of garbage when Whoogle is imported, including a required "entrypoint" field that defaults to "main.py" (even though the run and onBoot fields were already included and should negate the need to specify an entrypoint, but whatever). I'm not going to restructure Whoogle to fit what Replit wants, so I've moved the startup commands to their own script (misc/replit.py) and updated the "entrypoint" field in .replit.
This commit is contained in:
parent
076948dd0e
commit
5ae9160d38
4
.replit
4
.replit
@ -1,3 +1 @@
|
|||||||
language = "bash"
|
entrypoint = "misc/replit.py"
|
||||||
run = ["killall", "-q", "python3", ">", "/dev/null", "2>&1;", "pip", "install", "-r", "requirements.txt", "&&", "./run"]
|
|
||||||
onBoot = ["killall", "-q", "python3", ">", "/dev/null", "2>&1;", "pip", "install", "-r", "requirements.txt", "&&", "./run"]
|
|
||||||
|
5
misc/replit.py
Normal file
5
misc/replit.py
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
import subprocess
|
||||||
|
|
||||||
|
# A plague upon Replit and all who have built it
|
||||||
|
replit_cmd = "killall -q python3 > /dev/null 2>&1; pip install -r requirements.txt && ./run"
|
||||||
|
subprocess.run(replit_cmd, shell=True)
|
Loading…
Reference in New Issue
Block a user