Custom provider¶
Connecting custom git repository¶
- Navigate to
My repos > Connect
and selectCustom git
provider - Enter title and URL to your git repository. Click
Proceed
- Copy the public key generated by Wodby to
~/.ssh/authorized_keys
on a server with your git.
Add git hook for auto-deployment¶
- Navigate to your git repo page in Wodby Dashboard and copy the auto-deployment
Webhook URL
- Connect to the server with your origin git repository
- Go to
.git/hooks
directory and create a new filepost-receive.sh
with the following content (replace<WEBHOOK URL>
in this file with the URL you copied before)#!/bin/sh while read oldrev newrev ref do curl -H "Content-type: application/json" -X POST -d '{"ref": "'"$ref"'"}' <WEBHOOK URL> done
- Now make this file executable
chmod +X post-receive.sh
Connecting custom server¶
In case there's no native integration for your hosting provider, you can always connect your node (list of supported OS by using feature "Custom server" regardless what hosting you're using:
-
Go to
My servers > Add
. SelectCustom server
and click proceed -
You will see the page with requirements and instructions. Make sure all requirements are met
-
Connect to your server by SSH and execute the agent installation command as a root. This command will download our agent which sets up the infrastructure and connects your server to our platform
-
Now you can deploy apps to this server