Summary
Building a great Sanic application is only half of the job. Deploying it to make our application usable out in the wild is the other half. In this chapter, we explored some important concepts for you to consider. It is never too early to think about deployment either. The sooner you know which server you will use and where you will host your application, the sooner you can plan accordingly.
There are of course many combinations of deployment options, and I only provided you with a small sample. As always, you will need to learn what works for your project and team. Take what you have learned here and adapt it.
However, if you were to ask me to boil all of this information down and ask for my personal advice on how to deploy Sanic, I would tell you this:
- Run your applications using the built-in Sanic server.
- Terminate TLS outside of your application.
- For personal or smaller projects, or if you want a simpler deployment option, use a PaaS provider.
- For...