]> cat aescling's git repositories - mastodon.git/commitdiff
Remove Puma pidfile before boot if container receives SIGTERM (#7052)
authorIsatis <515462+Reverite@users.noreply.github.com>
Fri, 25 May 2018 16:50:31 +0000 (09:50 -0700)
committerEugen Rochko <eugen@zeonfederated.com>
Fri, 25 May 2018 16:50:31 +0000 (18:50 +0200)
docker-compose.yml

index 8058326dc689c2b599c8fc72d9c7f9cb8731a91d..496fb2548742ea51dbb59c79252095643073bc5a 100644 (file)
@@ -35,7 +35,7 @@ services:
     image: tootsuite/mastodon
     restart: always
     env_file: .env.production
-    command: bundle exec rails s -p 3000 -b '0.0.0.0'
+    command: bash -c "rm -f /mastodon/tmp/pids/server.pid; bundle exec rails s -p 3000 -b '0.0.0.0'"
     networks:
       - external_network
       - internal_network