From 9ce8e808034b4aef8cb662cdd7acf777985661e7 Mon Sep 17 00:00:00 2001 From: Alex Hussey Date: Wed, 24 Jan 2024 02:04:07 +0000 Subject: [PATCH] Add 'run' command to DevFile --- .devfile.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.devfile.yaml b/.devfile.yaml index e37f01b..5ddab8b 100644 --- a/.devfile.yaml +++ b/.devfile.yaml @@ -23,4 +23,10 @@ components: name: http protocol: http targetPort: 3000 -commands: [] \ No newline at end of file +commands: + - id: run + exec: + component: universal-developer-image + commandLine: 'npm start' + label: run + workingDir: '${PROJECT_SOURCE}' \ No newline at end of file