Change the startup settings
deployments_updateStartupChange runtime / version / entry file / start command (queues a rebuild). The start command is a FULL SHELL LINE run at every boot: it can install and build before starting - e.g. 'npm install && npm run build && exec node build/index.js'. There is no other way to run build steps, and there does not need to be: put them here and restart. Keep the install step: a command that only starts the app stops installing dependencies at boot. A new runtime brings its own default version, entry file and start command unless you pass them. Changing the TYPE (e.g. nodejs to static) reinstalls from scratch and deletes every file: it needs wipeFiles: true, so switch first and write the files after. Writes made during a reinstall wait until it is done.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>"
},
"name": "deployments_updateStartup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| kind | No | ||
| engine | No | ||
| runtime | No | Omit to keep the current runtime. | |
| entryFile | No | Omit to keep the current entry file. | |
| wipeFiles | No | Required when the change deletes every file in the deployment (a new type, e.g. nodejs to static). | |
| startCommand | No | Full shell line, run in the container at every boot, from the volume root (/home/container, where files.tree starts): never cd to /app or any other path. Chain install/build/start with &&. A server must bind 0.0.0.0 and the SERVER_PORT env (or pass the port explicitly). The last step is exec'd so that Stop works, and exec is added for you if you leave it out. null = the runtime default, which already installs from package.json / requirements.txt. Omit to keep the current command. | |
| runtimeVersion | No | Runtime version as a string, e.g. "24"; a bare number is accepted too. Omit to keep the current one. |