ports! all the ports!!

This commit is contained in:
NovaFox161
2018-01-06 18:35:52 -06:00
parent 23138a372c
commit cb3ab310ab
2 changed files with 3 additions and 1 deletions

View File

@@ -11,7 +11,7 @@ public enum BotSettings {
SQL_HOST, SQL_USER, SQL_PASSWORD,
SQL_DB, SQL_PORT, SQL_PREFIX, TOKEN, SECRET, ID,
LANG_PATH, PW_TOKEN, GOOGLE_CLIENT_ID,
GOOGLE_CLIENT_SECRET, RUN_API;
GOOGLE_CLIENT_SECRET, RUN_API, PORT;
private String val;

View File

@@ -18,6 +18,8 @@ public class SparkUtils {
@SuppressWarnings("ThrowableNotThrown")
public static void initSpark() {
if (BotSettings.RUN_API.get().equalsIgnoreCase("true")) {
port(Integer.valueOf(BotSettings.PORT.get()));
staticFileLocation("/web/public"); // Main site location
//Register the API Endpoints