File: /var/dev/irantv2.com/rest/config/datastores.js
/**
* Datastores
* (sails.config.datastores)
*
* A set of datastore configurations which tell Sails where to fetch or save
* data when you execute built-in model methods like `.find()` and `.create()`.
*
* > This file is mainly useful for configuring your development database,
* > as well as any additional one-off databases used by individual models.
* > Ready to go live? Head towards `config/env/production.js`.
*
* For more information on configuring datastores, check out:
* https://sailsjs.com/config/datastores
*/
module.exports.datastores = {
'mongodb': {
adapter: 'sails-mongo',
host: 'localhost',
port: 27017,
// user: 'irantver',
// password: '8-{)arabasdoombarabas',
database: 'irantv'
},
'mysql': {
adapter: 'sails-mysql',
host: 'localhost',
user: 'root',
password: 'anandashankar',
database: 'irantv'
},
cache: {
adapter: 'sails-redis',
url: 'redis://localhost:6379/2',
// password: null,
// database: 2,
},
};