Skip to content

Commit

Permalink
changed env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelmv30 committed Apr 30, 2024
1 parent 7718960 commit 8565399
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/main/java/uta/cse3310/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 8565399

Please sign in to comment.