Configurable Port
This commit is contained in:
parent
bf0b3814cb
commit
656a26d277
@ -4,7 +4,11 @@ import static spark.Spark.*;
|
||||
|
||||
public class Server {
|
||||
public static void main(String[] args) {
|
||||
port(8080);
|
||||
if (args.length >= 1) {
|
||||
port(Integer.parseInt(args[0]));
|
||||
} else {
|
||||
port(8080);
|
||||
}
|
||||
|
||||
get("/spreadsheetrender/:sheetId/schedule.png", new SheetRenderingRoute());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user