We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b096963 commit 70455a3Copy full SHA for 70455a3
serving/samples/helloworld-clojure/README.md
@@ -36,7 +36,9 @@ following instructions recreate the source files from this folder.
36
"!\n")})
37
38
(defn -main [& args]
39
- (run-jetty handler {:port 8080}))
+ (run-jetty handler {:port (if-let [port (System/getenv "PORT")]
40
+ (Integer/parseInt port)
41
+ 8080)}))
42
```
43
44
1. In your project directory, create a file named `project.clj` and copy the code
serving/samples/helloworld-clojure/src/helloworld/core.clj
@@ -12,4 +12,6 @@
12
13
14
15
16
17
0 commit comments