platformsh-docs icon indicating copy to clipboard operation
platformsh-docs copied to clipboard

Rework Build and Deploy page to include `pre_start` command

Open AnouckColson opened this issue 1 year ago • 2 comments

Where on docs.platform.sh should be changed?

https://docs.platform.sh/learn/overview/build-deploy.html

What exactly should be updated?

Further information on the pre_start command is needed (similar to the info provided on each hook in the table on https://docs.platform.sh/create-apps/hooks/hooks-comparison.html). There is confusion as to how it works and where it belongs in the whole build and deploy flow, so we need to make that clear.

Atm we only have mention of the pre_start command on https://docs.platform.sh/create-apps/hooks/hooks-comparison.html#deploy-hook with a link to the configuration side on https://docs.platform.sh/create-apps/app-reference/single-runtime-image.html#web-commands .

Additional context

See thread for screenshots with client questions/showing the confusion + newer request

No response

AnouckColson avatar Apr 11 '24 08:04 AnouckColson

A typical example would be to regenerate / warm up cache

web:
    commands:
        pre_start: 'bash warmup-cache'

chadwcarlson avatar Apr 24 '24 14:04 chadwcarlson

A typical example would be to regenerate / warm up cache

web:
    commands:
        pre_start: 'bash warmup-cache'

Be careful here as the pre_start hook is not blocking, which means that the deploy hook can start running before the pre_start command is finished.

fabpot avatar Jul 17 '24 09:07 fabpot