14 lines
348 B
Bash
Executable File
14 lines
348 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Start an nREPL server with dev dependencies, on the port in .nrepl-port (default 3000).
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")/.."
|
|
|
|
port=3000
|
|
if [[ -f .nrepl-port ]]; then
|
|
port=$(tr -d '[:space:]' < .nrepl-port)
|
|
fi
|
|
|
|
exec clojure -A:dev -M -m nrepl.cmdline \
|
|
--middleware "[cider.nrepl/cider-middleware]" \
|
|
--port "$port"
|