This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-04-08
Channels
- # architecture (8)
- # boot (18)
- # cider (33)
- # cljs-dev (35)
- # cljsrn (3)
- # clojure (77)
- # clojure-dev (6)
- # clojure-dusseldorf (1)
- # clojure-russia (1)
- # clojure-spec (4)
- # clojurescript (40)
- # cryogen (1)
- # cursive (4)
- # dirac (2)
- # emacs (1)
- # figwheel (10)
- # funcool (2)
- # hoplon (21)
- # incanter (2)
- # leiningen (1)
- # lumo (44)
- # off-topic (2)
- # onyx (53)
- # overtone (5)
- # pedestal (8)
- # re-frame (9)
- # reagent (37)
- # rum (9)
- # spacemacs (16)
- # sql (2)
- # testing (1)
- # unrepl (4)
- # untangled (4)
- # yada (16)
I've finally got my app running from a jar, but I've been pulling my hair out on the deployment now. I used the config file that came with Edge and also most of the startup code, but when I run it locally everything works, but as soon as I put it on a server and connect to it, I just get a screen saying 'Not Found' and the host name - anyone know what I'm doing wrong?
Look at the resources/config.edn file. Set up the :prod profile according to your hostnames
@malcolmsparks I'm starting to think it might be something on the server end as the prod details contain the correct hostname and I used the same port number. The message only appears if I run the jar, so something is happening
What's the port number? Are you using nginx?
Host should include port if not 80/443. E.g. http://example.com:8080
404 indicates the host/port isn'
matching
I was using port 3080, but not including it in the host name. I'll try adding it
@malcolmsparks Thanks, that worked!
Great. The Host header in HTTP has the same semantics. But we'd better document that part better. Edge dev and deployment is going to see some nice improvements soon.
@grav did you ever figure out trailing slashes with Yada/bidi?
I saw https://clojurians-log.clojureverse.org/yada/2017-03-17.html, but couldn't find a reply
@danielcompton I ended up solving it with nginx. It’s a one-liner there, and it keeps the api cleaner in a sense. Something like rewrite ^/(.+)/$ /$1 permanent;
Nice, thanks!
I was printing out the ctx map in my handler and noticed that the :known-methods
methods seem to create a new instance every time I reload the page. Is this a correct reading?
and is it necessary to create new ones for every request? I'm guessing it is, but just wanted to check