Chapter 13: Launching a Rocket Application
After development and testing, an important part of development is preparing the application to serve its intended users. In this chapter, we are going to learn some techniques to generate a production-ready binary. After we generate the binary, we are going to learn about configuring the application behind a general-purpose web server. And finally, we will learn how to generate Docker images for a Rocket application.
After learning the information in this chapter, you will be able to optimize binaries using Rust compiler flags and Cargo configurations. You will also learn techniques to prepare your applications to serve their intended users.
In this chapter, we are going to cover these main topics:
- Optimizing production binaries
- Setting up the Apache HTTP Server with a Rocket application
- Generating Docker images for a Rocket application