docker-rails-example
docker-rails-example copied to clipboard
feature: cleanup tmp PID file
I believe this might make the repo a little more resilient to (my) bad improper container shutdown habits, would you accept this upstream?
Hi, yep this was brought up in https://github.com/nickjj/docker-rails-example/issues/65. A long time ago I opened an issue about this in Rails at https://github.com/rails/rails/issues/52558 too.
Deleting the old pid before Puma boots feels like probably the safest bet since the pid will exist once the container starts which will handle the LSP case or whatever else.
I do wonder about the env var approach though.
Oh neat, yeah I agree... it does look like that env var to tmpfs is actually a better solution. I guess this PR would resolve #65 then?