#100DaysOfWeb in Python Transcripts
Chapter: Days 29-32: Static Sites
Lecture: How sweet is Netlify auto-build?

Login or purchase this course to watch this video and the rest of the course contents.
0:00 Now looking back at this site that we've just created with our static content remember I said that with Netlify if you push content to your GitHub repo
0:12 it will automatically sync that over to your live website. While refreshing our live website here we don't have the image.
0:22 But on our local host, we do. And the reason is, we haven't pushed the code, obviously. So we need to push our code to our GitHub repo.
0:31 So let's get that done. We can then go back here we can simply do a git add . and git commit -m pushing the images directory
0:48 and git push origin master that will push this logo file plus the images directory and all the content we generated in our output folder
0:59 up to our GitHub repo. And we can then see pretty much instantly we'll be able to see Netlify do an automatic build. So we go back to our deploys.
1:10 And straightaway look here, today at 9:32pm. It's still 9:32, building it's automatically building and pushing doing our latest commit.
1:21 So you can see the name of the commit there pushing the images directory once it has finished building
1:26 we'll be able to see that reflected on the live website. So this is one of the key things about Netlify that makes it really awesome, right?
1:34 Once you have committed that code it'll automatically update your website. Now that could be a Catch-22 situation for you if you've made a mistake
1:43 but you can always roll back, right? That's the beauty of GitHub in the back end. So let's wait for that to finish building.
1:50 Once it's done, we'll be able to see that in the website. And with that published finally showed up there published
1:58 probably took about 40 seconds to finish building. We can then go back to our website reload the page, and there is our image. So see how easy that is.
2:09 If you had your own blog you could literally write it locally on your computer test it, push the code, and bang, it's live.
2:17 You don't actually have to do a thing. This is the beauty of static site generators and Netlify.


Talk Python's Mastodon Michael Kennedy's Mastodon