Skip to content

Commit

Permalink
Update launch,toml to API 0.10
Browse files Browse the repository at this point in the history
Specify command as an array, rather than a string

Signed-off-by: Aidan Delaney <adelaney21@bloomberg.net>
  • Loading branch information
AidanDelaney committed Dec 21, 2023
1 parent e686032 commit cce8479
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ EOL
cat >> "${CNB_LAYERS_DIR}/launch.toml" << EOL
[[processes]]
type = "web"
command = "node app.js"
command = ["node", "app.js"]
default = true
EOL

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ cat > "${CNB_LAYERS_DIR}/launch.toml" << EOL
# our web process
[[processes]]
type = "web"
command = "node app.js"
command = ["node", "app.js"]
default = true
# our debug process
[[processes]]
type = "debug"
command = "node --inspect app.js"
command = ["node", "--inspect", "app.js"]
EOL
```

Expand Down Expand Up @@ -121,7 +121,7 @@ EOL
cat >> "${CNB_LAYERS_DIR}/launch.toml" << EOL
[[processes]]
type = "web"
command = "node app.js"
command = ["node", "app.js"]
default = true
EOL
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ To make your app runnable, a default start command must be set. You'll need to a
cat > "${CNB_LAYERS_DIR}/launch.toml" << EOL
[[processes]]
type = "web"
command = "node app.js"
command = ["node", "app.js"]
default = true
EOL

Expand Down Expand Up @@ -48,7 +48,7 @@ echo -e '[types]\nlaunch = true' > "${CNB_LAYERS_DIR}/node-js.toml"
cat > "${CNB_LAYERS_DIR}/launch.toml" << EOL
[[processes]]
type = "web"
command = "node app.js"
command = ["node", "app.js"]
default = true
EOL
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ EOL
cat >> "${CNB_LAYERS_DIR}/launch.toml" << EOL
[[processes]]
type = "web"
command = "node app.js"
command = ["node", "app.js"]
default = true
EOL
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ cat > "${CNB_LAYERS_DIR}/launch.toml" << EOL
# our web process
[[processes]]
type = "web"
command = "node app.js"
command = ["node", "app.js"]
default = true
# our debug process
[[processes]]
type = "worker"
command = "node --inspect app.js"
command = ["node", "--inspect", "app.js"]
EOL

# ...
Expand Down Expand Up @@ -58,13 +58,13 @@ cat > "${CNB_LAYERS_DIR}/launch.toml" << EOL
# our web process
[[processes]]
type = "web"
command = "node app.js"
command = ["node", "app.js"]
default = true
# our debug process
[[processes]]
type = "debug"
command = "node --inspect app.js"
command = ["node", "--inspect", "app.js"]
EOL
```

Expand Down

0 comments on commit cce8479

Please sign in to comment.