Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No adapter.js created with sails #20

Open
dayhaysoos opened this issue Oct 15, 2014 · 1 comment
Open

No adapter.js created with sails #20

dayhaysoos opened this issue Oct 15, 2014 · 1 comment

Comments

@dayhaysoos
Copy link

Hello Irl,

I love everything about sails, and the sails casts, and you. Thank you SO much for the work you've done, it's been very helpful for my growth as a coding noob.

So, I'm on the part where we switch over to mongo and you use the adapter.js file to set it up. Sails doesn't make an adapter.js, I read that you moved the adapter to local.js but things are set up a little differently than what is shown in your video.

Is there an update on the github that I'm missing or is this supposed to work the same way?

@alexdaube
Copy link

I'm guessing you already found the answer, but here how it is done in 10x. You set up your adapter configurations in connections.js the same way that Irl is doing it. Then, to set the default connection, you type: connection: 'someMongodbServer' or whatever your adapter name is in config/models.js. To use different adapters(database or tables) in a single model, write connection: 'someMongodbServer' in your api/models/User.js file for example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants