furkan3ayraktar / clojure-polylith-realworld-example-app

Clojure, Polylith and Ring codebase containing real world examples (CRUD, auth, advanced patterns, etc) that adheres to the RealWorld spec and API.
MIT License
448 stars 79 forks source link

ring is not a task #3

Closed bencao closed 5 years ago

bencao commented 5 years ago

Sorry for the stupid question, I've never used Closure before and just installed lein today for this demo and noticed this error:

$ lein ring server-headless
'ring' is not a task. See 'lein help'.

Please advice, thank you.

furkan3ayraktar commented 5 years ago

No worries! I need to emphasize that part in the Readme documentation. The issue is, you need to run the command under environments/development directory instead of the workspace root. In order for leiningen to run a ring server, it needs to have lein-ring plugin. In this case, development project has that plugin defined. If you navigate to environments/development directory and run lein ring server-headless, it should run without any problems.

bencao commented 5 years ago

thanks, that works!