Skip to content

Commit 1c5ee75

Browse files
SattvikSattvik
authored andcommitted
fix: port for testing
1 parent 038a270 commit 1c5ee75

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/io/supertokens/storage/postgresql/config/PostgreSQLConfig.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import com.google.gson.GsonBuilder;
2424
import com.google.gson.JsonElement;
2525
import com.google.gson.JsonObject;
26+
2627
import io.supertokens.pluginInterface.ConfigFieldInfo;
2728
import io.supertokens.pluginInterface.exceptions.InvalidConfigException;
2829
import io.supertokens.storage.postgresql.Start;
@@ -650,7 +651,7 @@ private void validateAndNormalise(boolean skipValidation) throws InvalidConfigEx
650651

651652
{ // postgresql_port
652653
if (postgresql_port < 0) {
653-
postgresql_port = 5432;
654+
postgresql_port = Integer.parseInt(System.getProperty("ST_PLUGIN_SERVER_PORT", "5432"));
654655
}
655656
}
656657

0 commit comments

Comments
 (0)