Spaces:
Runtime error
Runtime error
Remove entrypoint script for Discord bot
Browse files- entrypoint.sh +0 -22
entrypoint.sh
DELETED
@@ -1,22 +0,0 @@
|
|
1 |
-
#!/bin/sh
|
2 |
-
set -e
|
3 |
-
|
4 |
-
# Start Ollama server in the background
|
5 |
-
ollama serve >/tmp/ollama.log 2>&1 &
|
6 |
-
OLLAMA_PID=$!
|
7 |
-
|
8 |
-
cleanup() {
|
9 |
-
kill "$OLLAMA_PID"
|
10 |
-
}
|
11 |
-
trap cleanup EXIT
|
12 |
-
|
13 |
-
# Wait until the server is ready
|
14 |
-
for i in $(seq 1 30); do
|
15 |
-
if curl -sf http://localhost:11434/api/tags >/dev/null 2>&1; then
|
16 |
-
break
|
17 |
-
fi
|
18 |
-
sleep 1
|
19 |
-
done
|
20 |
-
|
21 |
-
# Run the Discord bot
|
22 |
-
exec python -m bot.discord_bot
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|