File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 11# Change Log
22
3+ ## [ Unreleased] [ Unreleased ]
4+
5+ * Fix [ #221 ] ( https://github.com/typicode/json-server/issues/221 ) nohup support
6+ * Fix [ #420 ] ( https://github.com/typicode/json-server/issues/420 ) TypeError when watching db.json
7+
38## [ 0.9.1] [ 2016-11-21 ]
49
510* Fix
Original file line number Diff line number Diff line change @@ -160,7 +160,11 @@ module.exports = function (argv) {
160160 chalk . gray ( ' Type s + enter at any time to create a snapshot of the database' )
161161 )
162162
163- process . stdin . resume ( )
163+ // Support nohup
164+ // https://github.com/typicode/json-server/issues/221
165+ process . stdin . on ( 'error' , ( err ) => {
166+ console . log ( ' Error, can\'t read from stdin' )
167+ } )
164168 process . stdin . setEncoding ( 'utf8' )
165169 process . stdin . on ( 'data' , ( chunk ) => {
166170 if ( chunk . trim ( ) . toLowerCase ( ) === 's' ) {
You can’t perform that action at this time.
0 commit comments