luminus-framework / luminus

documentation site for Luminus framework
http://www.luminusweb.net/
629 stars 121 forks source link

REPL development instructions are incorrect or out of date #131

Closed scottjacobsen closed 8 years ago

scottjacobsen commented 8 years ago

As a noob I can't figure out how to start the web app from the repl. Following instructions from here: http://www.luminusweb.net/docs/repl.md

scott@endor ~/dev/todo% lein repl
user=> (ns todo.core) ;;; Documentation says I should be automatically in this ns, but I'm in user
nil
todo.core=> (http/start {:port 3000 :init init :handler app}) ;;; Docs say this starts the server

CompilerException java.lang.RuntimeException: Unable to resolve symbol: init in this context, compiling:(/private/var/folders/02/_f132dj94_zcrhvhf4t1_wv80000gn/T/form-init2113808848391849401.clj:1:1)
todo.core=> ;;;???
yogthos commented 8 years ago

Ah that's a bit outdated. I'll have to update the docs for that. The current way is to just run (start) in the REPL. The latest version of Luminus uses a user namespace found in env/dev/clj/user.clj, and the REPL defaults to it. The namespace has helper functions for starting/stoppng/restarting the components.

yogthos commented 8 years ago

Let me know if the updated docs make sense.

scottjacobsen commented 8 years ago

+1 Thanks. Looks good.

On Tue, May 10, 2016 at 9:08 PM, Dmitri Sotnikov notifications@github.com wrote:

Let me know if the updated docs make sense.

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/luminus-framework/luminus/issues/131#issuecomment-218350527