Articles on: Deployments

Connect to Site

Once you have added deployment to your InstaWP account, you can connect Git Repository (Deployment) to an existing site. So, every new push to the branch will update the code inside the site.

In this documentation, we will explore the steps to connect a Git repository to a site.

Let’s get started 🚀


Step 1: Sign in to your InstaWP account and click on your site to enter into the site's dashboard.




Step 2: Select Git Deployment from the options and click on the repository you have added to your account. So that every new push to the selected Git branch will update the code inside the site. Now, click the copy icon.





Step 3: Go to the selected GitHub repository’ Webhook setting to add a webhook. Click the Add webhook button.




Step 4: Paste the Payload URL (where you'd like to receive payloads) & select Content type (data format to receive the webhook payload in) json that will deploy repository code automatically to the website. Now, click Add webhook button.





This will connect template webhook to Git Repository.







Step 5: Go to the InstaWP Git deployment page, save to update the repository list to the site on every push.





Step 6: Now, you can make some changes to the plugin with the code editor.



Following that, you can type the git commit -a -m 'updated test' command in your terminal (Command Prompt).
Hit enter. Then, you need to push the Git, by typing the git push command and hit enter.

This will call the webhook and update the changes you made to the website. You can see that the plugin has been added.

👉 Note: The user needs to activate the plugin the first time following any changes made to the website. After that the user no need to activate it again.



💡 Did you know - You can make changes to the staging site and push that changes to your live (production) site from your WP admin panel. Learn about 2 Way sync.

Updated on: 30/05/2025

Was this article helpful?

Share your feedback

Cancel

Thank you!