Make port configurable
This commit is contained in:
parent
552ef17520
commit
66c7f9c40c
@ -9,7 +9,12 @@ import static spark.Spark.*;
|
||||
|
||||
public class Server {
|
||||
public static void main(String[] args) {
|
||||
port(8080);
|
||||
if (args[1] != null) {
|
||||
port(Integer.parseInt(args[1]));
|
||||
} else {
|
||||
port(8080);
|
||||
}
|
||||
|
||||
path("/badge", () -> {
|
||||
before("/*");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user