Quickstart: Deployment
Learn how to deploy your app (it’s one click)
Anvil does not have a deployment step. Apps are deployed at a private URL by default. You can configure what is deployed and the URL is it deployed to.
Anvil apps can be deployed in the cloud or in your own network.
Follow this quickstart to create an app that is published online at a URL of your choice.
Create an app
Log in to Anvil and click ‘New Blank App’. Choose the Material Design theme.
It is already deployed
As soon as it is created, your app is deployed at a random URL. This URL is private (it has sufficient entropy that nobody could ever guess it).
To find out this URL, click on ‘Publish app’ in the Gear Menu :
You’ll see this dialog:
Choose your own URL
To choose a more meaningful URL, click ‘share via public link’. This allows you to set your app’s domain name to whatever you want.
You can choose any available subdomain of anvil.app
such as health-tracker.anvil.app
, or use your own domain such as health-tracker.com
.
(Apps created on the Free plan get a randomly-generated three-word subdomain of anvil.app
such as fabulous-elegant-garden.anvil.app
- as soon as you upgrade to a paid plan you can change the domain names of all your existing apps.)
See your app online
In your app, go to the code for Form1. It looks like this:
Write this line in the __init__
method:
alert('This is the app I just built')
Change the message to something that proves it’s your app.
Open the Publish App dialog again to copy the URL of your app, then visit that URL in a web browser. You’ll see your app with your message in an alert box.
Copy the example app
Click on the button below to clone a finished version of this app into your account.
Deploying the entire Anvil system on-site or in the cloud
You can also get an on-site deployment of the Anvil platform itself, including the editor and hosting system. That means you can run Anvil on your private network, airgapped from the internet if you want.
Anvil can also be deployed in private cloud environments.
The standard installation is just three Docker containers, but Anvil can also be installed natively if Docker is not available.
Email contact@anvil.works to request more details.
Next up
Want more depth on this subject?
Read more about deploying your app and how to get a custom deployment of the Anvil development and hosting system.
Want another quickstart?
Every quickstart is on the Quickstarts page.
Do you still have questions?
Our Community Forum is full of helpful information and Anvil experts.