Change Centos Nodejs stack Run Command
Change the default run command for `centos nodejs` stack from `node app.js` (which will work only if the entry point of the project is app.js) to `node .` (which will work for all nodejs projects which have a `main` section defined in `package.json` file. The `main` section defines the entry point. Related to https://github.com/redhat-developer/rh-che/pull/1078 Signed-off-by: Ibrahim Jarif <jarifibrahim@gmail.com>6.19.x
parent
f451d25729
commit
042fea24de
|
|
@ -2021,7 +2021,7 @@
|
|||
"goal": "Run",
|
||||
"previewUrl": "${server.8080/tcp}"
|
||||
},
|
||||
"commandLine": "cd ${current.project.path} && scl enable rh-nodejs6 'node app.js'"
|
||||
"commandLine": "cd ${current.project.path} && scl enable rh-nodejs6 'node .'"
|
||||
}
|
||||
],
|
||||
"projects": [],
|
||||
|
|
|
|||
Loading…
Reference in New Issue