File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ Options:
48
48
-s, --static <dir> Static files directory (multiple allowed)
49
49
--help Show this message
50
50
` )
51
+ process . exit ( )
51
52
}
52
53
53
54
if ( values . version ) {
@@ -63,12 +64,6 @@ const file = positionals[0] ?? ''
63
64
const port = parseInt ( values . port ?? process . env [ 'PORT' ] ?? '3000' )
64
65
const host = values . host ?? process . env [ 'HOST' ] ?? 'localhost'
65
66
66
- // Check file
67
- if ( file === '' ) {
68
- console . log ( 'No file specified' )
69
- process . exit ( 1 )
70
- }
71
-
72
67
if ( ! existsSync ( file ) ) {
73
68
console . log ( `File ${ file } not found` )
74
69
process . exit ( 1 )
@@ -125,5 +120,6 @@ if (process.env['NODE_ENV'] !== 'production') {
125
120
126
121
app . listen ( port , ( ) => {
127
122
console . log ( `Started on :${ port } ` )
123
+ console . log ( `Watching ${ file } ...` )
128
124
console . log ( routes ( db ) . join ( '\n' ) )
129
125
} )
You can’t perform that action at this time.
0 commit comments