gr2m / spawn-pouchdb-server

Configurable per-app pouchdb-server as a drop-in replacement for CouchDB
27 stars 13 forks source link

feat: stop server #16

Closed jo closed 9 years ago

jo commented 9 years ago

Add server.stop method which is exposed to the callback:

spawnPouchdbServer(function (error, server) {
  console.log('PouchDB Server stared at localhost:5985/_utils')
  server.stop(function () {
    console.log('PouchDB Server stopped')
  })
})

The main process is not killed in case pouchdb server is stopped via server.stop().

Closes #14

gr2m commented 9 years ago

merged via 8c17b0c