What's the common wisdom/best-practices regarding configuring an app to
run on a different port while developing (say, 3001 instead of 3000)?
I've been searching the web for this over the past few days, and I've
found two kinds of solutions:
The first (as seen a few places on StackOverflow) is sort-of
monkey-patching Rails::Server.default_options to override the :Port
Another is to put "#\ -p 3001" at the beginning of the "config.ru" file.
Anybody have any strong preference for either of these two methods, or
for a third that I haven't found?
It seems to me that the ideal would be if there was a line I could add
to config/environments/development.rb , but I'm not sure what that
I'm particularly worried about potentially using a undocumented
interface that could go away at any time.
Alternatively, is there an argument out there that "modifying your app
to use something other than 3000 is bad, it's better just to use the -p