Skip to content

Commit f75fad2

Browse files
committed
Clear the puma pidfile when docker restarts
Inspired by docker/compose#1393 (comment) Fixes #1261
1 parent 44dad57 commit f75fad2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docker-compose.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ services:
123123

124124
web:
125125
extends: app
126-
command: bundle exec rails server -p 3000 -b '0.0.0.0'
126+
command: bash -c "rm -f tmp/pids/server.pid && bundle exec rails server -p 3000 -b '0.0.0.0'"
127127
depends_on:
128128
- db
129129
- solr

0 commit comments

Comments
 (0)