Closed chipgata closed 9 years ago
I'll look into this now and possibly add some Unit Tests.
I notice that you use config.fileName = tenantId;
in your connections.js
which is only applicable for when using sails-disk
and not sails-mongo
. This is likely the problem.
Please see this branch for a working and tested demo using sails-mongo. Thanks for your interest and support.
See https://github.com/Glavin001/sails-multitenancy-example/tree/sails-mongo
I try example with sails-mongo: 1.Install sails-mongo
2.package.json
3.connection.js
5.I use Nginx working reverse proxy mode for 2 host abc.xxx.com, xyz.xxx.com with config:
Every things working ok, but database do not create and save, it not working.
Thanks you!