Modern Python Projects Transcripts
Chapter: Deployment
Lecture: Deploying Python applications
Login or
purchase this course
to watch this video and the rest of the course contents.
0:00
In the final chapter. I want to talk about deploying your application. Depending on what you build, it will be easier or harder to deploy it.
0:10
Also, the meaning of deploy will be different. If you have a Python package, all you need to do is publish it on pypi,
0:17
and people can use it. If you haven't executable application, then you can either send it directly to someone or put it on,
0:25
GitHub or GitLab and people can grab it from there. If it's a large file, then you can put it in Dropbox or in Amazon
0:32
s3 bucket or any other type of file hosting. So that's also rather straight forward. Now the problem starts when you have a website.
0:42
You can't just serve websites from your computer. Okay, technically, you can. But what if you need to reboot your computer or if your IP changes?
0:51
And if your website gets a lot of traffic, your computer might not have enough resources to handle it.
0:57
Not to mention the fact that you don't want people constantly hammering your computer with their
1:02
requests and waste Your computer resource is to serve a website. No, there are better ways. So, in the rest of this chapter,
1:10
I will talk about deploying a Web application. I will start with comparing virtual private servers, platform as a service and container solutions.
1:19
And then I will show you how to deploy a simple website to Heroku and how to build and deploy a docker container.