From 21d0d811c9cbd319643f5f703a2a16737b2e591f Mon Sep 17 00:00:00 2001 From: Meni Vaitsi Date: Tue, 3 May 2016 21:40:36 +0000 Subject: [PATCH] Regenerating Nginx config files only upon app restart. --- AppController/djinn.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/AppController/djinn.rb b/AppController/djinn.rb index b8de3031dd..289c35b365 100644 --- a/AppController/djinn.rb +++ b/AppController/djinn.rb @@ -1766,10 +1766,10 @@ def update(app_names, secret) end Djinn.log_debug("Set apps to restart at #{ip} returned #{result} as class #{result.class}") } - end - if my_node.is_login? - regenerate_nginx_config_files() + if my_node.is_login? + regenerate_nginx_config_files() + end end Djinn.log_debug("Done updating apps!")