Spaces:
Runtime error
Runtime error
Commit
•
1ed57be
1
Parent(s):
0bf7d94
Update entrypoint.sh.template
Browse files- entrypoint.sh.template +1 -1
entrypoint.sh.template
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
# Make sure `/data/db` directory exists even with persistent storage
|
4 |
mkdir -p /data/db
|
5 |
-
# If app crashed, mongo didn't gracefully
|
6 |
find /data/db -name "*.lock" -type f -exec rm -f {} \;
|
7 |
# Start the local Mongo database
|
8 |
mongod &
|
|
|
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 &
|