You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sites/upsun/src/learn/overview/app-life-cycle.md
+8-7Lines changed: 8 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,22 +7,23 @@ description: "Understand the {{% vendor/name %}} application lifecycle and learn
7
7
8
8
Hooks and web commands let you automate and control different stages of your [application’s lifecycle](#lifecycle-overview).
9
9
10
-
-**Web commands** (`pre_start`, `start`, `post_start`) run **on every instance**, every time that instance starts. They ensure each container is correctly initialised before it receives traffic, including during [horizontal](/manage-resources/adjust-resources.html#horizontal-scaling) autoscaling.
10
+
-**[Web commands](/create-apps/app-reference/single-runtime-image.html#web-commands)** (`pre_start`, `start`, `post_start`) run **on every instance**, every time that instance starts. They ensure each container is correctly initialised before it receives traffic, including during [horizontal](/manage-resources/adjust-resources.html#horizontal-scaling) autoscaling.
11
11
12
-
-**Hooks** (`build`, `deploy`, `post_deploy`) run **once per deployment**, on a single instance. They are used for environment-wide tasks such as preparing the image, running database migrations, or triggering background jobs.
12
+
-**[Hooks](/create-apps/hooks/hooks-comparison.html)** (`build`, `deploy`, `post_deploy`) run **once per deployment**, on a single instance. They are used for environment-wide tasks such as preparing the image, running database migrations, or triggering background jobs.
13
13
14
14
Together, hooks and web commands give you fine-grained control of the application lifecycle, ensuring smooth start-up, reliable [autoscaling](/manage-resources/autoscaling.html), and safe deployments.
15
15
16
16
## Lifecycle overview
17
17
18
-
The {{% vendor/name %}} deployment lifecycle has two parallel tracks:
18
+
The {{% vendor/name %}} deployment lifecycle has two parallel tracks. Understanding how these two tracks interact helps you choose the right hook for each task:
19
+
20
+
-**Deployment process** (runs once per deployment)
19
21
20
-
- Deployment process (runs once per deployment)
21
22
This is where your environment is built, deployed, updated, and released.
22
-
- Instance startup process (runs on every container instance)
23
-
Each new application instance goes through its own startup steps before it can receive traffic.
24
23
25
-
Understanding how these two tracks interact helps you choose the right hook for each task.
24
+
-**Instance startup process** (runs on every container instance)
25
+
26
+
Each new application instance goes through its own startup steps before it can receive traffic.
0 commit comments