[erlang-questions] Code organization for virtual websites based on Cowboy
lloyd@REDACTED
lloyd@REDACTED
Fri Apr 25 00:52:51 CEST 2014
Hello,
Suppose we have n virtual websites served out of a single Cowboy server.
I get, I think, this:
Routes = [Host1, Host2, ... HostN].
Host1 = {HostMatch, PathsList}.
Host2 = {HostMatch, Constraints, PathsList}.
But two questions trouble me:
1) What is the best directory structure to organize handlers and site-specific code to keep site code and resources separated and and easy to maintain?
2) Can these sites be developed and tested through localhost, or is a more elaborate set-up involving, say more than one box on a local network with local DNS server?
Many thanks,
LRP
*********************************************
My books:
THE GOSPEL OF ASHES
http://thegospelofashes.com
Strength is not enough. Do they have the courage
and the cunning? Can they survive long enough to
save the lives of millions?
FREEIN' PANCHO
http://freeinpancho.com
A community of misfits help a troubled boy find his way
AYA TAKEO
http://ayatakeo.com
Star-crossed love, war and power in an alternative
universe
Available through Amazon or by request from your
favorite bookstore
**********************************************
More information about the erlang-questions
mailing list