← Back

Moving build & deploy scripts to Git

Update

Custom build and deploy scripts are really powerful, but having them stored in your app configuration can be worrisome. What if someone accidentally cleared it out? What did the previous version look like?

To solve these problems, you can now specify build and deploy scripts inside your Git repository. This lets you version control them to track changes, but it also means the scripts live right along with the rest of your code in one place so they can't get lost.

Hatchbox now looks in the .hatchbox folder of your Git repository when deploying. If it finds a matching script, it will execute it.

Build & Deploy scripts in your Git repository

While you'll most commonly write these in Bash, you can also specify any language in the shebang if you want to use Ruby, Python, etc.