File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
packages/devextreme-cli/testing Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -25,16 +25,16 @@ module.exports = class NextJsServer {
2525 await new Promise ( ( resolve ) => setTimeout ( resolve , 1000 ) ) ;
2626 this . proc . kill ( 'SIGKILL' ) ;
2727 await new Promise ( ( resolve ) => setTimeout ( resolve , 1000 ) ) ;
28+ }
2829
29- if ( process . platform !== 'win32' ) {
30- console . log ( `-----NEXTJS SERVER-exec kill for port ${ this . port } ---->` ) ;
31- try {
32- execSync ( `lsof -i :${ this . port } -t | xargs kill -9` , { stdio : 'ignore' } ) ;
33- await new Promise ( ( resolve ) => setTimeout ( resolve , 1000 ) ) ;
34- } catch ( e ) {
35- console . log ( `NextJs server on port ${ this . port } not found. It's OK` ) ;
36- this . proc = null ;
37- }
30+ if ( process . platform !== 'win32' ) {
31+ console . log ( `-----NEXTJS SERVER-exec kill for port ${ this . port } ---->` ) ;
32+ try {
33+ execSync ( `lsof -i :${ this . port } -t | xargs kill -9` , { stdio : 'ignore' } ) ;
34+ await new Promise ( ( resolve ) => setTimeout ( resolve , 1000 ) ) ;
35+ } catch ( e ) {
36+ console . log ( `NextJs server on port ${ this . port } not found. It's OK` ) ;
37+ this . proc = null ;
3838 }
3939 }
4040 }
You can’t perform that action at this time.
0 commit comments