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.

+3


source to share


4 answers


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.

+1


source


Perhaps a better approach would be to use Meteor Pub / Sub capabilities rather than sharing DB for everyone. It is entirely possible to publish and subscribe to meteorite apps or any implementation using DDP.



http://docs.meteor.com/#/full/ddp_connect

+1


source


You can use the partitioner to send different views of the data to different users based on the domain name they came to.

0


source


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.

0


source







All Articles