Using LocomotiveJS under virtual hosts

54 views
Skip to first unread message

Byrne Reese

unread,
Jul 11, 2013, 4:15:12 PM7/11/13
to locomo...@googlegroups.com
I have a simple problem: I want to host two different websites on two different domains, under one nodejs/locomotivejs instance. Is such a thing possible?

I have been trying to implement the concept behind this tutorial:

But am getting wrapped around the axle. 

AJ ONeal

unread,
Jul 29, 2013, 4:19:35 PM7/29/13
to locomo...@googlegroups.com
I've got a module just for that sort of thing:

You create a directory of the name of each site and then run the parent server (vhoster).

AJ ONeal

unread,
Aug 8, 2013, 1:39:13 PM8/8/13
to locomo...@googlegroups.com
I spoke too soon!

I was assuming that `lcm server -p 5050` simply required a `server.js` or `app.js` somewhere and called `server.listen(fn, port)` like connect and express do, but I can't find the `app.js` equivalent!
Reply all
Reply to author
Forward
0 new messages