Created
March 6, 2013 16:08
-
-
Save tedkulp/5100415 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Configure installed adapters | |
// If you define an attribute in your model definition, | |
// it will override anything from this global config. | |
module.exports.adapters = { | |
// If you leave the adapter config unspecified | |
// in a model definition, 'default' will be used. | |
'default': 'mongo', | |
// In-memory adapter for DEVELOPMENT ONLY | |
// (data is NOT preserved when the server shuts down) | |
memory: { | |
module: 'sails-dirty', | |
inMemory: true | |
}, | |
// Persistent adapter for DEVELOPMENT ONLY | |
// (data IS preserved when the server shuts down) | |
disk: { | |
module: 'sails-dirty', | |
filePath: './.tmp/dirty.db', | |
inMemory: false | |
}, | |
// MySQL is the world's most popular relational database. | |
// Learn more: http://en.wikipedia.org/wiki/MySQL | |
mysql: { | |
module : 'sails-mysql', | |
host : 'YOUR_MYSQL_SERVER_HOSTNAME_OR_IP_ADDRESS', | |
user : 'YOUR_MYSQL_USER', | |
password : 'YOUR_MYSQL_PASSWORD', | |
database : 'YOUR_MYSQL_DB' | |
}, | |
mongo: { | |
module : 'sails-mongo', | |
url : 'mongodb://localhost:27017/sails' | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment