add script/server
This commit is contained in:
@@ -12,15 +12,19 @@ integration tests, and joint line coverage.
|
||||
## Running
|
||||
|
||||
```bash
|
||||
clojure -X:run
|
||||
script/server [port]
|
||||
```
|
||||
|
||||
The server listens on port `3000` by default; set `PORT` to change it:
|
||||
The server listens on port `3000` by default; pass a port argument or set `PORT` to change it
|
||||
(the argument wins):
|
||||
|
||||
```bash
|
||||
PORT=8080 clojure -X:run
|
||||
script/server 8080
|
||||
PORT=8080 script/server
|
||||
```
|
||||
|
||||
This is a thin wrapper around `clojure -X:run`, which also honors `PORT`.
|
||||
|
||||
Or build and run the container:
|
||||
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user