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