Skip to content

Include reference to pre_start in build-deploy description. #3970

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions sites/platform/src/learn/overview/build-deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,11 @@ but the file system is read-only.
New branches have file systems cloned from their parent.
1. **Expose services**:
Networking connections are opened between any containers specified in your app and services configurations.
1. **Run start commands**:
The commands necessary to start your app are run.
1. **Run (pre-) start commands**:
The [commands](/create-apps/app-reference/single-runtime-image#web-commands) necessary to start your app are run.
Often this stage will only include a start command, which is restarted if ever terminated going forward.
You may also, however, define a `pre_start` command, when you need to run _per-instance_ actions.
In this case, as you might expect, the `pre_start` command is run, then the `start` command.
1. **Run deploy hook**:
The `deploy` hook is any number of shell commands you can run to finish your deployment.
This can include clearing caches, running database migrations, and setting configuration that requires relationship information.
Expand Down
7 changes: 5 additions & 2 deletions sites/upsun/src/learn/overview/build-deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,11 @@ but the file system is read-only.
New branches have file systems cloned from their parent.
1. **Expose services**:
Networking connections are opened between any containers specified in your app and services configurations.
1. **Run start commands**:
The commands necessary to start your app are run.
1. **Run (pre-) start commands**:
The [commands](/create-apps/app-reference/single-runtime-image#web-commands) necessary to start your app are run.
Often this stage will only include a start command, which is restarted if ever terminated going forward.
You may also, however, define a `pre_start` command, when you need to run _per-instance_ actions.
In this case, as you might expect, the `pre_start` command is run, then the `start` command.
1. **Run deploy hook**:
The `deploy` hook is any number of shell commands you can run to finish your deployment.
This can include clearing caches, running database migrations, and setting configuration that requires relationship information.
Expand Down
Loading