Skip to main content
From a Code Repository connects a git repository you already own. It deploys on every push.

Connect a repository

Go to Backend → Logic, click New service, select From a Code Repository, and click Continue. In the empty state, you can click Import from Git instead. The dialog is titled From a Code Repository. The From a Code Repository dialog with Name, Repository URL, Provider, Default branch, API token, and Webhook secret fields. Click Create function to connect the repository. The button stays disabled until the required fields are filled in.
Treat the API token and webhook secret as credentials. Use a token that only has access to this repository.

After you create the service

Open the service to follow its deployments. Each push to the connected branch builds a new deploy. You can also read and edit the code in the Code tab and set environment variables.

FAQ

GitHub and GitLab have their own options. Choose Other Git for any other git host.
On every push, as described in the dialog: “Connect your own git repository. It deploys on every push.”