Custom provider¶
Connecting custom git repository¶
- Navigate to
My repos > Connectand selectCustom gitprovider - Enter title and URL to your git repository. Click
Proceed - Copy the public key generated by Wodby to
~/.ssh/authorized_keyson 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/hooksdirectory and create a new filepost-receive.shwith 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¶
If there is no native integration for your hosting provider, connect a fresh server using the Custom server option:
-
Review the Infrastructure 7 requirements and supported operating systems
-
Go to
My servers > Add. SelectCustom serverand click proceed -
You will see the page with requirements and instructions. Make sure all requirements are met
-
Connect to the server by SSH and execute the generated Infrastructure installer command as root. The command installs the pinned runtime components and connects the server to Wodby 1
-
Now you can deploy apps to this server