Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

spit out the nrepl port (#62443)

bryan89403cd16404
diff --git a/bb.edn b/bb.edn
index d40c9ce1e66..377702a742f 100644
--- a/bb.edn
+++ b/bb.edn
@@ -217,6 +217,8 @@
:task (let [{:keys [arguments]} (cli/parse! (current-task))]
(apply readability/check arguments))}
+ ;; Uncomment this if you want to play with the example calculator task:
+ #_#_
-example-calculator
{;; `:doc` is a short docstring for the task, will be listed in `./bin/mage -h` and other help info.
;; Keep these short, they need to fit on one line in the output from `./bin/mage -h`.
diff --git a/dev/src/user.clj b/dev/src/user.clj
index 951635af606..4f8bc2af59d 100644
--- a/dev/src/user.clj
+++ b/dev/src/user.clj
@@ -92,6 +92,7 @@
(future
#_:clj-kondo/ignore
(println "Starting Metabase cider repl on port" port)
+ (spit ".nrepl-port" port)
(nrepl-server/start-server
:port port
:bind "0.0.0.0"
diff --git a/mage/resources/bash_alias.sh b/mage/resources/bash_alias.sh
index 228904105b9..7b5edd0119e 100644
--- a/mage/resources/bash_alias.sh
+++ b/mage/resources/bash_alias.sh
@@ -3,7 +3,7 @@
export MB_DIR="{{mb-dir}}"
# alias:
mage() {
- cd $MB_DIR && exec ./bin/mage "$@"
+ cd $MB_DIR && ./bin/mage "$@"
}
# autocomplete:
_bb_tasks() {