Look at the contents of the :output-to script for your Node.js project. You can see that it expects to start from the current directory and appends :output-dir to get to the compiled sources. Given what you've specified it won't work since you compiled :output-to *inside* :output-dir. I would recommend just putting your server script outside :output-dir - the requirements of web servers don't really apply to Node.js scripts. And to clarify further, :asset-path won't help you here.
David On Thu, Feb 12, 2015 at 6:14 PM, Sebastian Bensusan <sbe...@gmail.com> wrote: > Roger > > I don't use Node as target so take this with a grain of salt: > > When you add the :main option the compiler will add a small script that > dynamically adds goog, the dependencies, and the compiled script. You need > to specify in the :asset-path option the relative paths of those files. > > For example, since my dev server has its root in "resources/public", my > asset path looks like this: > > :output-to "resources/public/js/app.js" > :output-dir "resources/public/js/compiled" > :main server.core > :asset-path "js/compiled" > > -- > Note that posts from new members are moderated - please be patient with > your first post. > --- > You received this message because you are subscribed to the Google Groups > "ClojureScript" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojurescript+unsubscr...@googlegroups.com. > To post to this group, send email to clojurescript@googlegroups.com. > Visit this group at http://groups.google.com/group/clojurescript. > -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups "ClojureScript" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojurescript+unsubscr...@googlegroups.com. To post to this group, send email to clojurescript@googlegroups.com. Visit this group at http://groups.google.com/group/clojurescript.