Spaces:
Runtime error
Runtime error
Update entrypoint.sh.template
Browse files- entrypoint.sh.template +3 -3
entrypoint.sh.template
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
#!/bin/bash
|
2 |
|
3 |
# Make sure `/data/db` directory exists even with persistent storage
|
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 |
|
10 |
# Start the text-generation-inference process
|
11 |
text-generation-launcher --model-id ${MODEL_NAME} --num-shard 1 --port 8080 --trust-remote-code &
|
|
|
1 |
#!/bin/bash
|
2 |
|
3 |
# Make sure `/data/db` directory exists even with persistent storage
|
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 |
|
10 |
# Start the text-generation-inference process
|
11 |
text-generation-launcher --model-id ${MODEL_NAME} --num-shard 1 --port 8080 --trust-remote-code &
|