The Deploy to Deta button provides users a quick way to deploy a public Git repo to a Deta Micro directly from the browser.
It's an easy way to share your creations with the developer community.
You can use the "Deploy To Deta Button" in open-source repositories, blog posts, landing pages etc, allowing other developers to quickly deploy and use your app on Deta.
An example button that deploys a sample Python Micro to Deta:
You can let users deploy your GitHub repo quickly by adding the following markup:
The button link will automatically identify the repo and prompt the user with the Deploy to Deta prompt.
In case you are using your README outside of GitHub, for repos hosted on other Git providers (like GitLab, Bitbucket, etc), or you just want to make sure you always linking to the correct repo, please provide
repo parameter, folowing this format:
Specify the exact branch url if you want to use a different branch for deplyment. If you provide the repository url without specifying a branch, the default branch will be used.
The repository must be a public git repository url.
The button image is hosted in the following url:
You can optionally specify metadata and environment variables needed by the Micro in a
deta.json file. Create this file in the root directory of your application.
deta.json file has the following schema:
You can test your
deta.json file by visiting
Make sure to add the
deta tag to you repo for it to show up in our GitHub topic.