# Run migrations and other tasks with the pre-deploy command

- Date: 2023-10-11
- Change type: New
- URL: https://render.com/changelog/predeploy-command

Set a *pre-deploy command* for your service to run tasks (such as database migrations or asset uploads) right before a new version of your service goes live.

This command is particularly useful for services that deploy a prebuilt Docker image, because they can't fold these kinds of tasks into the build command.

For details, see the [blog post](https://render.com/blog/build-pipelines) and [documentation](https://docs.render.com/deploys#deploy-steps).
