bhauman / devcards

Devcards aims to provide a visual REPL experience for ClojureScript
1.53k stars 113 forks source link

Question: How to deploy devcards as the 'main-app' #46

Closed frankhale closed 8 years ago

frankhale commented 8 years ago

Here is what I want to do:

lein new devcards helloworld
lein cljsbuild once prod

After I compile 'prod' I want to take everything in resources\public and deploy it to a server and have my devcards show up.

That said, I followed this https://github.com/bhauman/devcards#devcards-without-figwheel and when I try to start the decards gui in my main function I get a compiler warning:

WARNING: Use of undeclared Var devcards.core/start-devcard-ui!*

That is a private function in devcards.core namespace and out of my control. Deploying the assets in resource\public results in a blank page when opening index.html.

What am I doing wrong?

frankhale commented 8 years ago

I missed the thing where I needed to require devcards.core. Even though I read the README I mistakenly thought the require-macros was enough.