Setup db config for local and prod
This commit is contained in:
@@ -27,20 +27,6 @@ module.exports.adapters = {
|
|||||||
mongo: {
|
mongo: {
|
||||||
module: 'sails-mongo',
|
module: 'sails-mongo',
|
||||||
schema: true,
|
schema: true,
|
||||||
host: 'localhost',
|
url: process.env.DB_URL
|
||||||
database: 'lunch'
|
|
||||||
},
|
|
||||||
|
|
||||||
// MySQL is the world's most popular relational database.
|
|
||||||
// Learn more: http://en.wikipedia.org/wiki/MySQL
|
|
||||||
myLocalMySQLDatabase: {
|
|
||||||
|
|
||||||
module: 'sails-mysql',
|
|
||||||
host: 'YOUR_MYSQL_SERVER_HOSTNAME_OR_IP_ADDRESS',
|
|
||||||
user: 'YOUR_MYSQL_USER',
|
|
||||||
// Psst.. You can put your password in config/local.js instead
|
|
||||||
// so you don't inadvertently push it up if you're using version control
|
|
||||||
password: 'YOUR_MYSQL_PASSWORD',
|
|
||||||
database: 'YOUR_MYSQL_DB'
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user