From 8565399840c7fc75eff85dfc951d55877a249d94 Mon Sep 17 00:00:00 2001 From: Samuel Mathew Vennalil Date: Tue, 30 Apr 2024 11:01:20 -0500 Subject: [PATCH] changed env variable --- src/main/java/uta/cse3310/App.java | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/main/java/uta/cse3310/App.java b/src/main/java/uta/cse3310/App.java index b1fb116..44a519a 100644 --- a/src/main/java/uta/cse3310/App.java +++ b/src/main/java/uta/cse3310/App.java @@ -426,12 +426,21 @@ public static void main(String[] args) { port = 9122; String WSPort = System.getenv("WEBSOCKET_PORT"); String t_grid = System.getenv("TEST_GRID"); - TEST_GRID = Integer.valueOf(t_grid); + + + if (t_grid == null) + { + TEST_GRID = 20; + } + else + { + TEST_GRID = Integer.valueOf(t_grid); + } if (WSPort!=null) { port = Integer.valueOf(WSPort); } - + App A = new App(port); A.setReuseAddr(true); A.start();