From 042fea24ded43e64cfab8b2b329f962ee6757794 Mon Sep 17 00:00:00 2001 From: Ibrahim Jarif Date: Tue, 20 Nov 2018 12:32:23 +0530 Subject: [PATCH] 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 --- ide/che-core-ide-stacks/src/main/resources/stacks.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ide/che-core-ide-stacks/src/main/resources/stacks.json b/ide/che-core-ide-stacks/src/main/resources/stacks.json index 66850b5aa1..aa9d07d5b3 100644 --- a/ide/che-core-ide-stacks/src/main/resources/stacks.json +++ b/ide/che-core-ide-stacks/src/main/resources/stacks.json @@ -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": [],