mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-01-15 03:42:23 +01:00
Upgrades Mongoose to 4.11.1 Updates Mongoose connection implementation to accommodate deprecated features & connection options. Also, updates the Gulp Mocha tasks to reflect changes to the Mongoose implementation. Fixes tests to get the database from the existing Mongoose singleton. Derives from changes in https://github.com/meanjs/mean/pull/1816 Closes https://github.com/meanjs/mean/issues/1814
33 lines
1.2 KiB
JavaScript
33 lines
1.2 KiB
JavaScript
'use strict';
|
|
|
|
// Rename this file to local-NODE_ENV.js (i.e. local-development.js, or local-test.js) for having a local configuration variables that
|
|
// will not get commited and pushed to remote repositories.
|
|
// Use it for your API keys, passwords, etc.
|
|
|
|
// WARNING: When using this example for multiple NODE_ENV's concurrently, make sure you update the 'db' settings appropriately.
|
|
// You do not want to accidentally overwrite/lose any data. For instance, if you create a file for 'test' and don't change the
|
|
// database name in the setting below, running the tests will drop all the data from the specified database.
|
|
//
|
|
// You may end up with a list of files, that will be used with their corresponding NODE_ENV:
|
|
//
|
|
// local-development.js
|
|
// local-test.js
|
|
// local-production.js
|
|
//
|
|
|
|
/* For example (Development):
|
|
|
|
module.exports = {
|
|
db: {
|
|
uri: 'mongodb://localhost/local-dev',
|
|
options: {}
|
|
},
|
|
sessionSecret: process.env.SESSION_SECRET || 'youshouldchangethistosomethingsecret',
|
|
facebook: {
|
|
clientID: process.env.FACEBOOK_ID || 'APP_ID',
|
|
clientSecret: process.env.FACEBOOK_SECRET || 'APP_SECRET',
|
|
callbackURL: '/api/auth/facebook/callback'
|
|
}
|
|
};
|
|
*/
|