How to deploy your website from Git (GitHub, GitLab, Bitbucket or Gitea)
In PD Panel, open Git and click Connect a repository. Enter the repository URL, branch and deploy path, add the deploy key and webhook PD Panel shows to your Git service, and turn on Deploy on every push. Each push then goes live automatically, and you can roll back to the previous release.
Applies to: every PD Panel web hosting and WordPress hosting plan.
Connect a repository
- Log in to PD Panel, open your website and scroll to the Git section.
- Click Connect a repository and fill in:
- the repository URL and Branch;
- the Deploy path: the folder your site is served from;
- optional build commands, for example to install dependencies;
- optional shared paths, for files that should stay between deploys, such as uploads;
- Deploy on every push, if you want automatic deploys.
Then click Connect.
- On GitHub, GitLab, Bitbucket or Gitea, add the deploy key and the webhook that PD Panel shows.
Deploy, check and roll back
- Deploy runs a deploy by hand.
- History lists past deploys.
- Roll back switches back to the release before the current one.
Questions
Are Git submodules deployed?
No. Include the code directly in the repository instead.
Can I deploy without a webhook?
Yes. Leave Deploy on every push off and click Deploy when you’re ready.
Related: Node.js, Python and Ruby apps · PD Panel hosting