From b2b3464b8a8be3f229f7e6263d84568a284fecf6 Mon Sep 17 00:00:00 2001 From: Kumaran Rajendhiran Date: Fri, 22 Nov 2024 18:01:21 +0530 Subject: [PATCH] Fix end of file trailing extra newline issue --- .../docker/content/nginx.conf.template | 6 ++---- {{cookiecutter.project_slug}}/fly.toml | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/{{cookiecutter.project_slug}}/docker/content/nginx.conf.template b/{{cookiecutter.project_slug}}/docker/content/nginx.conf.template index eac5b0d..13246d8 100644 --- a/{{cookiecutter.project_slug}}/docker/content/nginx.conf.template +++ b/{{cookiecutter.project_slug}}/docker/content/nginx.conf.template @@ -69,8 +69,7 @@ server { proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; } -}{%- endif %} -{% if "fastapi" in cookiecutter.app_type %} +}{%- endif %}{% if "fastapi" in cookiecutter.app_type %} # Fastapi server block server { listen $FASTAPI_PORT; @@ -108,8 +107,7 @@ server { proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; } -}{%- endif %} -{% if "mesop" in cookiecutter.app_type %} +}{%- endif %}{% if "mesop" in cookiecutter.app_type %} # Mesop server block server { listen $MESOP_PORT; diff --git a/{{cookiecutter.project_slug}}/fly.toml b/{{cookiecutter.project_slug}}/fly.toml index 1924921..411449c 100644 --- a/{{cookiecutter.project_slug}}/fly.toml +++ b/{{cookiecutter.project_slug}}/fly.toml @@ -34,8 +34,7 @@ primary_region = 'ams' [[services.ports]] handlers = ["tls", "http"] - port = 8000{%- endif %} -{% if "fastapi" in cookiecutter.app_type %} + port = 8000{%- endif %}{% if "fastapi" in cookiecutter.app_type %} [[services]] http_checks = [] internal_port = 8008 @@ -48,8 +47,7 @@ primary_region = 'ams' [[services.ports]] handlers = ["tls", "http"] - port = 8008{%- endif %} -{% if "mesop" in cookiecutter.app_type %} + port = 8008{%- endif %}{% if "mesop" in cookiecutter.app_type %} [[services]] http_checks = [] internal_port = 8888