File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -17,8 +17,8 @@ const users = [
1717]
1818
1919//const conn = mongoose.createConnection(ENV.MANGOOSE_CONN_STR,'vue-webpack')
20- let dbPics = mongoose . createConnection ( ENV . MANGOOSE_CONN_STR + 'pics' )
21- let dbVueWebpack = mongoose . createConnection ( ENV . MANGOOSE_CONN_STR + 'vue-webpack' )
20+ let dbPics = mongoose . createConnection ( ENV . MANGOOSE_CONN_STR , 'pics' )
21+ let dbVueWebpack = mongoose . createConnection ( ENV . MANGOOSE_CONN_STR , 'vue-webpack' )
2222let PhotosModel = dbVueWebpack . model ( 'Photos' , PhotosSchema )
2323let PicsModel = dbPics . model ( 'fs.files' , PicsSchema )
2424
Original file line number Diff line number Diff line change @@ -4,12 +4,12 @@ let ENV = {}
44console . log ( 'env is:' + process . env . NODE_ENV )
55if ( process . env . NODE_ENV === "development" ) {
66 ENV . MANGODB_CONN_STR = 'mongodb://116.62.143.122:27017/'
7- ENV . MANGOOSE_CONN_STR = 'mongodb:// 116.62.143.122/ '
7+ ENV . MANGOOSE_CONN_STR = '116.62.143.122'
88 ENV . REDIS_CONN_URL = '116.62.143.122'
99 ENV . REDIS_CONN_PORT = 6379
1010} else {
1111 ENV . MANGODB_CONN_STR = 'mongodb://127.0.0.1:27017/'
12- ENV . MANGOOSE_CONN_URL = 'mongodb:// 127.0.0.1/ '
12+ ENV . MANGOOSE_CONN_STR = '127.0.0.1'
1313 ENV . REDIS_CONN_URL = '127.0.0.1'
1414 ENV . REDIS_CONN_PORT = 6379
1515}
You can’t perform that action at this time.
0 commit comments