Spaces:
Build error
Build error
Update entrypoint.sh
Browse files- entrypoint.sh +1 -8
entrypoint.sh
CHANGED
|
@@ -1,13 +1,6 @@
|
|
| 1 |
#!/bin/bash
|
| 2 |
|
| 3 |
-
#
|
| 4 |
-
mkdir -p /data/db
|
| 5 |
-
# If app crashed, mongo didn't stop gracefully. Remove all the old *.lock files
|
| 6 |
-
find /data/db -name "*.lock" -type f -exec rm -f {} \;
|
| 7 |
-
# Start the local Mongo database
|
| 8 |
-
mongod &
|
| 9 |
-
MONGO_PID=$!
|
| 10 |
-
echo "MongoDB started with PID: $MONGO_PID"
|
| 11 |
|
| 12 |
# Display model being loaded
|
| 13 |
echo "Starting text-generation-inference with model: ${MODEL_NAME}"
|
|
|
|
| 1 |
#!/bin/bash
|
| 2 |
|
| 3 |
+
# Skip MongoDB startup since we're using external MongoDB
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
|
| 5 |
# Display model being loaded
|
| 6 |
echo "Starting text-generation-inference with model: ${MODEL_NAME}"
|