Skip to content
This repository has been archived by the owner on May 16, 2020. It is now read-only.

Commit

Permalink
Merge pull request #80 from hobindar/bug/uri
Browse files Browse the repository at this point in the history
Allow modified database name, host, and port
  • Loading branch information
qasim authored Jul 9, 2016
2 parents 309a553 + f55a1ac commit a0c91b5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/db/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@ db.update = (collection) => {
}

let shell = childProcess.spawn('mongoimport', [
'-d', 'cobalt',
'-d', mongoose.connection.name,
'-c', collection,
'--host', mongoose.connection.host,
'--port', mongoose.connection.port,
'--file', filePath
])

Expand Down

0 comments on commit a0c91b5

Please sign in to comment.