Automatically Updating Your Environment with New Commits/Merges
We've previously shown you how easy it is to automatically create and automatically destroy ephemeral environments. Now let's see how you can keep your primary up to date when changes are merged in your main Git branch:
1. Select your environment in the Bunnyshell interface.
2. Click the
Settings button. The settings for the selected environment are displayed.
3. In the General Settings section, toggle on the Auto-update option. This option is automatically saved by Bunnyshell.
4. Click Save changes.
5. Go to your Git repository and merge a PR in the branch linked as primary in Bunnyshell.
6. Go back to the Bunnyshell interface. Congratulations! Your environment was automatically updated.
Environments will be automatically updated only if they are running. If an environment is stopped when a Git webhook is received, it will be redeployed the next time it is started.
Copy link