Skip to content

Get started with scripts

Every project has customizable shell scripts that run at fixed points in the deployment process:

  • Before build - Runs before the deployment process begins building the application. Use it to change the application code before the build starts.
  • After build - Runs once the application has finished building. Use it to perform any necessary cleanup or configuration tasks.

Scripts are highly customizable and can be used to automate various deployment tasks, such as updating configuration files, or sending notifications to team members.

Note that any modification of a script may affect the behavior of your deployments, so make sure to test your changes thoroughly before deploying to production. If you have any questions or issues with scripts, don't hesitate to reach out to our support team for assistance.

Edit scripts

  1. Open your project and navigate to the Scripts tab.
  2. Edit the content of the Before build and/or After build script.
  3. Click the "Update scripts" button to apply the changes.

That's it! Your scripts will now run the next time you deploy to your environment. Leave a field empty to skip running a script for that stage.

Limits

Each script can contain up to 5,000 characters. For longer or more complex logic, add a script file to your repository and call it from the project script instead, e.g. bash scripts/pre-build.sh. This keeps the logic versioned alongside your code.