Appearance
Deploy a Demo
On this page you will learn how to deploy a Demo for your Use Case. You will learn how deployments work, the requirements for host and port configuration, and how to deploy a Demo step-by-step.
How deployments work
To deploy a Demo, simply connect a GitHub repository. PlanQK always deploys the default branch of your repository and automatically triggers a re-deployment every time you push to the default branch. Each deployed Demo has a resource limit of 1 CPU and 512 MiB of memory and automatically scales to zero when not in use.
Host and port configuration
Your Demo application must listen for requests on 0.0.0.0
on the port 8080
.
A step-by-step guide to deploy a Demo
A simple way to create a Demo is to use the Gradio python library. Gradio lets you build interactive web interfaces in a matter of minutes. Check out our Gradio starter template. Alternatively, you can deploy any other web app of your choice using Docker.
The following steps show you how to deploy a Demo for your Use Case.
Prerequisites:
- A Use Case you want to deploy a Demo for. Alternatively, create a new Use Case.
- A fork of our Gradio starter template.
To deploy a Demo for your Use Case click on the Demo tab of your Use Case and click on the Create Demo button.
![Image](/images/demos/create-a-demo.png)
You will be asked to connect your GitHub account (if you haven't done so already) and to select a repository. Select the fork of the Gradio starter template you created earlier by clicking on Connect. That's it, you deployed your first Demo!
But there is one more thing. In order to make your Demo work we need to set some environment variables. Learn how to set environment variables.