This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-04-12
Channels
- # announcements (1)
- # aws (1)
- # beginners (182)
- # boot (33)
- # calva (87)
- # cider (3)
- # clj-kondo (2)
- # clojure (108)
- # clojure-dev (73)
- # clojure-europe (2)
- # clojure-italy (27)
- # clojure-nl (22)
- # clojure-norway (1)
- # clojure-spec (1)
- # clojure-uk (122)
- # clojurescript (78)
- # cursive (5)
- # datomic (17)
- # duct (2)
- # emacs (25)
- # events (3)
- # figwheel (1)
- # figwheel-main (1)
- # fulcro (88)
- # kaocha (6)
- # leiningen (2)
- # luminus (1)
- # lumo (4)
- # nrepl (4)
- # off-topic (37)
- # onyx (1)
- # re-frame (35)
- # reagent (1)
- # reitit (4)
- # shadow-cljs (8)
- # spacemacs (22)
- # specter (2)
- # sql (19)
- # tools-deps (12)
- # vim (11)
I'm building a front-end in straight up react (no cljs for me right now) and that builds a bundle... I'm putting my 'lein new luminus myapp +reitit +swagger +service' onto heroku, and it would be handy to just serve the site from there and have it hit the endpoints from there... I'm not sure the best approach for a good development experience. Instead of figuring out the root routing since I used +service I copied everything from the build folder of the react project that was created via 'npm build' into resources/public and renamed index.html to thesite.html and was able to launch it via <host>:thesite.html as a test and it worked. However, that sounds like a hack and also isn't going to launch the site from the root of the host. Should I have foregone the +service, or is serving a static site from a +service ok... or what should I be doing here?