Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save bhauman/c3dd1a8961076f981f817ce639546f67 to your computer and use it in GitHub Desktop.
Save bhauman/c3dd1a8961076f981f817ce639546f67 to your computer and use it in GitHub Desktop.
(require 'tubular.core)
(tubular.core/connect "127.0.0.1" REPL_PORT)
(require '[figwheel-sidecar.repl :as r]
'[figwheel-sidecar.repl-api :as ra]
'[clojure.core.server :as server])
(ra/start-figwheel!
{:figwheel-options
{:server-ip SERVER_IP :server-port SERVER_PORT}
:build-ids ["foo"]
:all-builds
[{:id "foo"
:figwheel {:websocket-url (str "ws://" CLIENT_IP ":" CLIENT_PORT "/figwheel-ws")}
:source-paths ["src/"]
:compiler {
:main 'foo.core
:asset-path "js/out"
:output-to "resources/public/js/out/main.js"
:output-dir "resources/public/js/out"}}]})
(server/start-server
{:address SERVER_IP
:port REPL_PORT
:name :cljs-socket-repl
:accept `ra/cljs-repl})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment