yesod devel not reading config for port?

251 views
Skip to first unread message

geoff

unread,
Jul 8, 2014, 1:05:30 PM7/8/14
to yeso...@googlegroups.com
In a freshly scaffolded app I am not able to make yesod devel default to a different port

$ cat config/settings.yml | head -n 4
Default: &defaults
  host: "*4" # any IPv4 host
  port: 4000
  approot: "http://localhost:4000"
$ yesod version
yesod-bin version: 1.2.11
$ which yesod
.cabal-sandbox/bin/yesod
$ yesod devel
yesod: devel port unavailable
$ yesod devel --port 4000
Yesod devel server. Press ENTER to quit


not too big a deal to just add --port 4000  but i am not sure if this is a bug or I'm just missing something.

geoff

unread,
Jul 8, 2014, 1:07:20 PM7/8/14
to yeso...@googlegroups.com
er I should mention that I have a different yesod app running on port 3000.

Michael Snoyman

unread,
Jul 8, 2014, 3:32:28 PM7/8/14
to yeso...@googlegroups.com
This is just the way yesod devel works: it defaults to port 3000, and that setting is overridden by command line arguments, not the config file.


--
You received this message because you are subscribed to the Google Groups "Yesod Web Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to yesodweb+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages