Skip to content

Commit a06639b

Browse files
authored
Include reference to pre_start in build-deploy description. (#3970)
1 parent 8369c11 commit a06639b

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

sites/platform/src/learn/overview/build-deploy.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,11 @@ but the file system is read-only.
7272
New branches have file systems cloned from their parent.
7373
1. **Expose services**:
7474
Networking connections are opened between any containers specified in your app and services configurations.
75-
1. **Run start commands**:
76-
The commands necessary to start your app are run.
75+
1. **Run (pre-) start commands**:
76+
The [commands](/create-apps/app-reference/single-runtime-image#web-commands) necessary to start your app are run.
77+
Often this stage will only include a start command, which is restarted if ever terminated going forward.
78+
You may also, however, define a `pre_start` command, when you need to run _per-instance_ actions.
79+
In this case, as you might expect, the `pre_start` command is run, then the `start` command.
7780
1. **Run deploy hook**:
7881
The `deploy` hook is any number of shell commands you can run to finish your deployment.
7982
This can include clearing caches, running database migrations, and setting configuration that requires relationship information.

sites/upsun/src/learn/overview/build-deploy.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,11 @@ but the file system is read-only.
7272
New branches have file systems cloned from their parent.
7373
1. **Expose services**:
7474
Networking connections are opened between any containers specified in your app and services configurations.
75-
1. **Run start commands**:
76-
The commands necessary to start your app are run.
75+
1. **Run (pre-) start commands**:
76+
The [commands](/create-apps/app-reference/single-runtime-image#web-commands) necessary to start your app are run.
77+
Often this stage will only include a start command, which is restarted if ever terminated going forward.
78+
You may also, however, define a `pre_start` command, when you need to run _per-instance_ actions.
79+
In this case, as you might expect, the `pre_start` command is run, then the `start` command.
7780
1. **Run deploy hook**:
7881
The `deploy` hook is any number of shell commands you can run to finish your deployment.
7982
This can include clearing caches, running database migrations, and setting configuration that requires relationship information.

0 commit comments

Comments
 (0)