Anvil: Web apps with nothing but Python Transcripts
Chapter: Hosting on a custom domain
Lecture: Adding the custom domain in Anvil

Login or purchase this course to watch this video and the rest of the course contents.
0:00 Well, here's our app, and we saw that
0:01 we could press run on it and that's pretty cool.
0:04 We get this URL up here
0:06 if you try to go to that URL in a private browser
0:10 well, what do we get? Sign in.
0:13 This is not the experience we want
0:14 we don't want to share our login to Anvil, obviously.
0:17 Well, we've done some work already as part of that API step
0:21 and we said publish the app
0:22 and we said we want to use fresh-zealous-song.anvil.app
0:26 That first part was auto generated
0:29 and this actually works.
0:31 This is pretty good
0:32 we have HTPS, we have a domain
0:34 we could even login over here.
0:38 Now we're logged in, here's our help history
0:40 works like a charm.
0:41 Okay, however if you really want to build your own product
0:45 you don't want to depend on Anvil's domain
0:48 you wanted to identify you out there.
0:50 This is fine for little utility apps
0:52 maybe even you share within your company
0:54 things like that
0:55 but if you want to have a public website you need a domain.
0:58 So that's what we going to do here
1:01 and you come down here and click
1:02 add a custom domain
1:06 and like I said what I'm going to use is Fitnessd, like fitnessd
1:09 that's the name of our app .talkpython
1:12 My main site is .fm, but I'm going to use .com.
1:15 I have both domains
1:16 really rather not mess with the
1:18 talk.python.fm domain really at all
1:21 and notice here it says we're going to
1:22 create an A record and we're going to enter
1:26 Fitnessd for the pattern or whatever
1:30 and then we're going to enter that as the
1:32 place to map it to.
1:33 And they have a little guide here on how that works.
1:36 So I'm going to flip over to my domain provider
1:39 quickly run through these steps
1:41 and then we're going to come back
1:42 and have a look at what happened.