Spaces:
Runtime error
Runtime error
Commit
•
0fd5f18
1
Parent(s):
c6fdfc4
Remove old `mongod.lock` file
Browse files- entrypoint.sh.template +2 -0
entrypoint.sh.template
CHANGED
@@ -2,6 +2,8 @@
|
|
2 |
|
3 |
# Make sure `/data/db` directory exists even with persistent storage
|
4 |
mkdir -p /data/db
|
|
|
|
|
5 |
# Start the local Mongo database
|
6 |
mongod &
|
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 stopped. Remove old mongod.lock
|
6 |
+
rm -f /data/db/mongod.lock
|
7 |
# Start the local Mongo database
|
8 |
mongod &
|
9 |
|