odo-devfiles / registry

A repository of devfile 2.0 stacks for odo
7 stars 33 forks source link

Fix node v2 devfile #4

Closed maysunfaisal closed 4 years ago

maysunfaisal commented 4 years ago

Signed-off-by: Maysun J Faisal maysun.j.faisal@ibm.com

Migrated changes from https://github.com/elsony/devfile-registry/blob/master/devfiles/nodejs/devfile.yaml and fixed the devfile

$ d logs -f 563946e4faf1
time="2020-06-09T22:36:46Z" level=info msg="create process:debugrun" 
time="2020-06-09T22:36:46Z" level=info msg="create process:devrun" 
time="2020-06-09T22:36:49Z" level=debug msg="no auth required" 
time="2020-06-09T22:36:49Z" level=info msg="stop the program" program=debugrun 
time="2020-06-09T22:36:49Z" level=info msg="stop the program" program=devrun 
time="2020-06-09T22:36:49Z" level=info msg="force to kill the program" program=debugrun 
time="2020-06-09T22:36:49Z" level=info msg="force to kill the program" program=devrun 
time="2020-06-09T22:36:49Z" level=debug msg="no auth required" 
time="2020-06-09T22:36:49Z" level=debug msg="succeed to find process:devrun" 
time="2020-06-09T22:36:49Z" level=info msg="try to start program" program=devrun 
time="2020-06-09T22:36:49Z" level=info msg="success to start program" program=devrun 
ODO_COMMAND_RUN is nodemon app.js
Changing directory to ${CHE_PROJECTS_ROOT}/nodejs-web-app/app
Executing command cd ${CHE_PROJECTS_ROOT}/nodejs-web-app/app && nodemon app.js
[nodemon] master: <none>
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: *.*
[nodemon] starting `node app.js`
Example app listening on port 3000!