I think you need to do a `lein cljsbuild once` as well. The problem is
that lein uberwar/jar cleans the target so either add in cljsbuild to
the hook or tell uberjar not to clean.

I prefer the second which is done by adding `:auto-clean false` as a
top-level key in project.clj.

To make things simpler, I have an alias in project.clj as well by adding
`:alias {"build!" ["do" "clean" ["cljsbuild" "once" "prod"] "uberwar"]}`
as another top-level key in project.clj

HTH

Ashish Negi writes:

> Hello, Thanks for wonderful work with ClojureScript.
> I have made a beautiful game with it : https://github.com/ashishnegi/phogame
> This is my first CS app.
>
> I am using ring and compojure in server side. All runs well with figwheel, 
> during dev environment. Now, for the deployment using uberjar in prod 
> environment, i find that server is giving 404 for main js file, which is 
> present at the same location as during dev environment.
>
> For dev env, i use :
>         `lein figwheel`
> and in prod env, i use :
>       `java $JVM_OPTS -cp target/phogame-standalone.jar clojure.main -m 
> phogame.core`
>
> You can see the problem live at : http://phogame.herokuapp.com/
> where in console/network devtools window you can find 404 for phogame.min.js
> though it is present at 
> https://github.com/ashishnegi/phogame/tree/master/resources/public/js/compiled
>
> Please have a look at my project.clj : 
> https://github.com/ashishnegi/phogame/blob/master/project.clj . I think i 
> might have missed some settings.
>
> Thanks.

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/clojurescript.

Reply via email to