Skip to content

Commit 1299e7d

Browse files
committed
Add start wrapper class for standalone jar
1 parent 95ee1f2 commit 1299e7d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/start.clj

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
(ns start
2+
(:require gorilla-repl.core)
3+
(:gen-class))
4+
5+
(defn -main [& args]
6+
(let [port (Long/parseLong (or (first args) "55555"))]
7+
(gorilla-repl.core/run-gorilla-server {:port port})
8+
(println (str "Load: http://127.0.0.1:" port "/worksheet.html?filename=src/cljlab/start.clj"))))

0 commit comments

Comments
 (0)