From 835ac1edb35b6ceb2dfc244fea56a653cf7664a4 Mon Sep 17 00:00:00 2001 From: Nicolas Meienberger Date: Wed, 20 Nov 2024 09:01:34 +0100 Subject: [PATCH] fix(supervisord): wait for rabbitmq to start before launching server --- supervisord.prod.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/supervisord.prod.conf b/supervisord.prod.conf index 18356825..ce73daf9 100644 --- a/supervisord.prod.conf +++ b/supervisord.prod.conf @@ -11,7 +11,7 @@ stdout_logfile_maxbytes=0 stderr_logfile_maxbytes=0 [program:runtipi] -command=npm run start +command=/bin/ash -c 'while ! nc -z localhost 5672; do sleep 1; done; npm run start' autostart=true autorestart=true stdout_logfile=/dev/stdout