Single use Meteor with multiple domains
Is it possible to create one Meteor app with multiple domains and display different views / layouts depending on that domain?
For example, I have an admin interface accessible at admin.myapp.com and two domains storeX.com and storeY.com , Both domains should point to data from admin.myapp.com , but displaying data (mostly) independently friend.
source to share
This may not be fully updated to 2014 standards, but I answered this question before:
How can Meteor handle multiple virtual hosts?
And with the same setup, you can use Passenger (for nginx
OR apache2
) for Meteor. Here is a complete tutorial on using Passenger with Meteor , but keep in mind that you need to integrate multiple virtual hosts / domains into this tutorial yourself.
source to share
You can use the partitioner to send different views of the data to different users based on the domain name they came to.
source to share
See How to Share MongoDB Collections between Meteor Applications? ... Basically the idea is that you are creating two meteor applications that will share mongodb and collection (s) data.
source to share