From 9579b9302dc41b33016cc2f5b5d0b84b28bf4d82 Mon Sep 17 00:00:00 2001 From: Adriano Santos Date: Wed, 21 Aug 2024 11:01:38 -0300 Subject: [PATCH] fix: correct variable references --- java-std/{{cookiecutter.app_name}}/pom.xml | 12 ++++++------ .../src/main/java/io/eigr/spawn/java/App.java | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/java-std/{{cookiecutter.app_name}}/pom.xml b/java-std/{{cookiecutter.app_name}}/pom.xml index 723c879..4d1b925 100644 --- a/java-std/{{cookiecutter.app_name}}/pom.xml +++ b/java-std/{{cookiecutter.app_name}}/pom.xml @@ -2,11 +2,11 @@ 4.0.0 - {{ group_id }} - {{ artifact_id }} - {{ version }} + {{ cookiecutter.group_id }} + {{ cookiecutter.artifact_id }} + {{ cookiecutter.version }} {{ app_name }} - {{ app_description }} + {{ cookiecutter.app_description }} 17 @@ -14,7 +14,7 @@ UTF-8 - {{ spawn_sdk_version }} + {{ cookiecutter.spawn_sdk_version }} 4.27.2 2.11.0 @@ -155,7 +155,7 @@ openjdk:17 - {{ app_image_tag }} + {{ cookiecutter.app_image_tag }} diff --git a/java-std/{{cookiecutter.app_name}}/src/main/java/io/eigr/spawn/java/App.java b/java-std/{{cookiecutter.app_name}}/src/main/java/io/eigr/spawn/java/App.java index 63fb834..4b14ec0 100644 --- a/java-std/{{cookiecutter.app_name}}/src/main/java/io/eigr/spawn/java/App.java +++ b/java-std/{{cookiecutter.app_name}}/src/main/java/io/eigr/spawn/java/App.java @@ -55,13 +55,13 @@ public static Config createDefaultConfig() { String userFunctionHost = System.getenv("USER_FUNCTION_HOST") != null ? System.getenv("USER_FUNCTION_HOST") : "localhost"; String userFunctionPort = System.getenv("USER_FUNCTION_PORT") != null ? System.getenv("USER_FUNCTION_PORT") - : "{{ app_port }}"; + : "{{ cookiecutter.app_port }}"; String spawnProxyHost = System.getenv("SPAWN_PROXY_HOST") != null ? System.getenv("SPAWN_PROXY_HOST") : "localhost"; String spawnProxyPort = System.getenv("SPAWN_PROXY_PORT") != null ? System.getenv("SPAWN_PROXY_PORT") : "9001"; String spawnSystemName = System.getenv("SPAWN_SYSTEM_NAME") != null ? System.getenv("SPAWN_SYSTEM_NAME") - : "{{ spawn_app_spawn_system }}"; + : "{{ cookiecutter.spawn_app_spawn_system }}"; return new Config(startupDelaySeconds, userFunctionHost, userFunctionPort, spawnProxyHost, spawnProxyPort, spawnSystemName);