How to Restart or Force Rebuild Your App
Validated on 20 Nov 2024 • Last edited on 10 Mar 2026
App Platform is a fully managed Platform-as-a-Service (PaaS) that deploys applications from Git repositories or container images. It automatically builds, deploys, and scales components while handling all underlying infrastructure.
App Platform provides two options for managing your app’s container: restarting the container or forcing a rebuild. Both options are useful in different situations:
-
Restart your app’s container: Redeploys an exact copy of your app’s container without fetching updates from your source code repository. This is useful if your app is stuck in a connection loop or a deadlock. However, restarting your app does not fix issues caused by code or configuration errors.
Restarting your app performs a rolling restart of its service and worker components; it does not restart the app’s jobs or databases. You can also restart individual services or workers.
-
Force a rebuild of your app’s container: Redeploys the app with the latest changes from your source code repository. This is useful if you have made changes to your app’s container image and want to ensure that the changes are reflected in your app.
Restart Your App Using the API or CLI
You can restart all of your app’s components by providing your app’s ID to the restart command or API endpoint. You can also restart individual components by setting the --components flag in the command, or the components field in the API, and then provide a list of component names as arguments.
Restart Your App Using the Control Panel
To restart your app’s container, go to the Apps page and select the app you want to restart. Click the Actions menu, then select Restart.
In the Restart or deploy window, choose whether to restart all services and workers or restart individual components. After selecting which components to restart, click Restart. The app restarts using the existing container image and does not pull in any changes from your source code repository.
Force Rebuild Your App Using the API or CLI
You can force a rebuild of your app’s container by creating a new deployment for the app and setting the force-rebuild flag in the CLI, or the force_rebuild parameter in the API, to true. This forces the app to redeploy with the latest changes from your source code repository.
Force a Rebuild of Your App Using the Control Panel
To force a rebuild of your app’s container, go to the Apps page and select the app you want to rebuild. Click the Actions menu, then select Force Rebuild and Deploy.
In the Restart or deploy window, choose whether to clear the build cache, then click Force rebuild and deploy. App Platform builds a new container image from the latest changes in your source code repository and redeploys your app.