diff --git a/src/main/java/JettyLauncher.java b/src/main/java/JettyLauncher.java index 05abf4d..16888b8 100644 --- a/src/main/java/JettyLauncher.java +++ b/src/main/java/JettyLauncher.java @@ -19,19 +19,14 @@ public static void main(String[] args) throws Exception { System.setProperty("java.awt.headless", "true"); - String host = null; - String port = null; - InetSocketAddress address = null; - String contextPath = "/"; - String tmpDirPath=""; + String host = getEnvironmentVariable("gitbucket.host"); + String port = getEnvironmentVariable("gitbucket.port"); + InetSocketAddress address; + String contextPath = getEnvironmentVariable("gitbucket.prefix"); + String tmpDirPath = getEnvironmentVariable("gitbucket.tempDir"); boolean forceHttps = false; boolean saveSessions = false; - host = getEnvironmentVariable("gitbucket.host"); - port = getEnvironmentVariable("gitbucket.port"); - contextPath = getEnvironmentVariable("gitbucket.prefix"); - tmpDirPath = getEnvironmentVariable("gitbucket.tempDir"); - for(String arg: args) { if(arg.equals("--save_sessions")) { saveSessions = true;