# Deployment Hooks


What are Deployment Hooks

You may wish to execute some commands automatically during a deployment, the deployment hooks enables you to do that.

Types of Deployment Hooks

The available types are:

  • Pre-Deployment: These hooks are executed immediately after cloning your app from Source Control.
  • Post-Deployment: These hooks are executed before the deployment is activated and made live.

Creating a Hook

On the deployment page, you would find some table below the analytics. The Deployment Hooks is one of these tabs. Click on the Create Hook button and enter the details as necessary.

The hooks are executed in the order specified. Hooks with higher order values are treated with higher priority and executed first.

Found Something Wrong?

Have you found something in the documentation that is confusing or incorrect? Devpilot's documentation is completely open source! Please consider submitting a pull request on GitHub.