Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable ring / jetty with a command line option #283

Open
sirmspencer opened this issue Mar 8, 2021 · 0 comments
Open

Disable ring / jetty with a command line option #283

sirmspencer opened this issue Mar 8, 2021 · 0 comments

Comments

@sirmspencer
Copy link

I have a large project that mostly loads with figwheel and the jetty server it loads. We have one specific server side function that requires me to load the server separately for testing. It would be nice to be able to disable jetty from the command line without modifying our figwheel-main.edn file.

Something like:
clojure -m figwheel.main -b compile-dev -j or clojure -A:figwheel -j where -j disables jetty

We are using figwheel like

:figwheel         {:extra-deps {com.bhauman/figwheel-main {:mvn/version "0.2.4-SNAPSHOT"}
                                           com.bhauman/rebel-readline-cljs {:mvn/version "0.1.4"}}
                              :main-opts ["-m" "figwheel.main" "-b" "compile-dev" "-r"]}

My edn file looks like

{:watch-dirs ["src/cljs"]
 :css-dirs ["resources/public/css"]
 :ring-server-options {:port 8080 :join? false}
 :ring-handler my-proj.handler/development-app}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant