Skip to content

Commit b10d320

Browse files
authoredMar 8, 2025··
Merge pull request #1556 from codidact/0valt/docker-fixes
Remove server.pid in the entrypoint if present
2 parents 78cd79a + 809dbcb commit b10d320

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎docker/entrypoint.sh

+5
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ fi
1515
# If this isn't done again, there is a 500 error on the first page about posts
1616
rails db:seed
1717

18+
19+
if [ -f '/code/tmp/pids/server.pid' ]; then
20+
rm -rf /code/tmp/pids/server.pid
21+
fi
22+
1823
# we don't start the server immediately in dev mode
1924
if [[ "$1" != 'dev' ]]; then
2025
rails server -b 0.0.0.0

0 commit comments

Comments
 (0)
Please sign in to comment.