luminus-framework / luminus

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

Error while creating a migration #212

Closed vascoferreira25 closed 6 years ago

vascoferreira25 commented 6 years ago

When I try to create a new migration in REPL, I get the following error:


(create-migration "add-guestbook-table")
; => IllegalArgumentException find not supported on type: mount.core.DerefableState  clojure.lang.RT.find (RT.java:863)
yogthos commented 6 years ago

The error indicates that the database resource <app-name>.db.core/*db* hasn't been started. By default the resources are started when the namespace is referenced somewhere in the project. Alternatively, you can start the database resource from the REPL by running, (mount.core/start #'<app-name>.db.core/*db*).