F4 Panel πŸ“– User manual ΰΉ„ΰΈ—ΰΈ’EN Sign in β†’

← All chapters

πŸ™ Deploying from Git

Pull code from GitHub / GitLab / Bitbucket and have the site update itself on every push

Connect the repository

1
Open the site β†’ Git tab. Either form of URL works: https://github.com/user/repo.git or [email protected]:user/repo.git.
2
Give a branch, or leave it blank for the repository default.
3
If the servable code sits in a subfolder β€” public, dist, build β€” name it. Blank means the whole repository.
4
Click β€œConnect and pull”.
πŸ’‘ Your existing public is never deleted β€” it is moved aside to public.before-git-… first.

Private repositories

The same tab shows a Deploy key. Copy it into GitHub β†’ your repo β†’ Settings β†’ Deploy keys β†’ Add deploy key; there is no need to allow write access. Public repositories can skip this.

Auto-deploy on every push

1
On the Git tab click β€œEnable webhook” β€” a Payload URL and a Secret are generated for you.
2
Go to GitHub β†’ your repo β†’ Settings β†’ Webhooks β†’ Add webhook.
3
Paste the Payload URL, set Content type to application/json, paste the Secret and choose β€œJust the push event”.
4
Push once to test β€” the page shows when the hook was last called.

Manual deploys and disconnecting

← PreviousπŸ–₯ SSH / SFTP and the web terminal Next β†’πŸ—„ Databases
Every chapter
πŸš€ Getting started🌐 Creating & managing websitesπŸ›° Pointing DNS at this serverπŸ”’ SSL / HTTPS certificates🌿 Subdomains & extra domainsπŸ“ File manager & code editorπŸ“‘ FTP / FTPSπŸ–₯ SSH / SFTP and the web terminalπŸ™ Deploying from GitπŸ—„ Databases🧩 The app installer⏰ Cron jobs β€” scheduled workπŸ”Œ API & integrationsπŸ‘€ Your account & security🧯 Common problems
F4 Panel Β· hosting control panel Β· developed by F4 Code