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
Ibrahim Jarif 2018-11-20 12:32:23 +05:30 committed by Ilya Buziuk
parent f451d25729
commit 042fea24de
1 changed files with 1 additions and 1 deletions

View File

@ -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": [],