Startup Settings
The Startup tab decides which program runs your code, which version, and from which file.
Updated Dec 1, 2026Open the deployment, then Startup (under More, or from Settings). It needs the Manage permission.
The type of the deployment (application, database or service) is fixed at creation. Startup changes what runs inside it.
Application settings
| Field | What it means |
|---|---|
| Runtime | The language, for example Node.js, Python or Java |
| Version | The version of that runtime |
| Entry file | The file that starts your app, relative to the root of your files |
| Start command | The command run at each start. Default uses the runtime's command, Override lets you write your own |
The default entry file of each runtime and what its default command does are listed in Deployment Types and Runtimes.
The entry file
The entry file must point to your main file. If it sits in a folder, write the path, for example src/index.js or bot/main.py. For Java, it is the name of your .jar. The value is stored in the system variable STARTUP_FILE, which the start command uses.
Most "Cannot find module" or "No such file" errors at start come from a wrong entry file. See Module and Directory Problems.
Override the start command
Leave the command on Default unless you need something special, for example npm run start, a build step before the start, or extra flags. When you edit it, the field switches to Override. If you set it back to exactly the default, the deployment follows the default again, including future improvements.
Write the command for a Linux shell. It runs from /home/container, and ${STARTUP_FILE} is replaced by your entry file.
cd /home/container && npm ci && exec npm run start
Use exec before the last program so that Stop reaches your app directly and it can shut down cleanly.
Database settings
A database deployment shows Database engine, Version and Start command. Changing the engine or the version reinstalls the database, and the data is reset. Take a backup or an export first, see Databases.
Service settings
A service deployment shows Service, Version when more than one exists, and Start command.
What happens when you save
Click Save and apply. The panel tells you what the change does before you save.
| Change | Effect |
|---|---|
| Entry file or start command | Restarts without a rebuild |
| Runtime or version of an application | The container is rebuilt on the new image. Your files are kept |
| Service, or switching between a service and a runtime | The deployment is reinstalled from scratch and every file is deleted |
| Database engine or version | The database is reinstalled and the data is reset |
The page shows a red warning before any change that deletes files. Discard cancels your edits, and the page asks before you leave with unsaved changes.
If your saved version is no longer offered, the page says so and shows the latest version. Saving moves you to it.
System variables
Startup manages STARTUP_FILE and RUNTIME_VERSION, and the Network tab manages SERVER_PORT. They appear as System variables in the Environment tab and are read-only there. See Environment Variables.