Deployment from Scratch
Please rate the book
Book short description
"Deployment from Scratch" is an introduction to web application deployment that covers the entire process from basic concepts to complex server and database configuration. This book will help you understand the fundamentals of running web applications in production, teach you how to set up virtual Linux servers and containers, and deploy web servers and databases. Instead of guesswork and trial and error, you are offered a clear and structured path to deploying applications from scratch.
What will you get?
- Condensed knowledge from multiple books in one edition, written by a former professional Linux package developer.
- From theory to practice: from the basics of network interaction to encrypting database backups.
- 26 chapters of valuable content covering all key aspects of web application deployment.
- Practical demonstrations using Bash scripts to help you understand reliable system settings, secure configuration, and internal processes, without complex deployment tools.
- Checklists and cheat sheets for subsequent use.
- Dockerfile examples for inspiration and adaptation to your projects.
Who is this book for?
This book is intended for software developers, engineers, indie hackers, and anyone developing web applications. It teaches server administration, infrastructure setup, and web application deployment.
The book is suitable for both beginners wanting to understand the basics and experienced developers looking to deepen their knowledge in application deployment.
Code examples are provided in Ruby and Python, but 90% of the book is language-independent, so the material will also be useful for developers using JavaScript, Go, PHP, Rust, and other languages. The OS examples used are Rocky Linux 8 and Fedora.
Demonstrations you will master
- Deploying a static website with TLS and Let's Encrypt certificates support.
- Deploying a full Rails application on a single server:
- Working with UNIX sockets
- Setting up PostgreSQL with ident authentication
- Supporting WebSockets
- Automatic deployment with git push
- Administrative scripts for server connection, file and database backup.
- PostgreSQL cluster demonstration, which includes:
- Automatic system updates and log rotation
- TLS setup with custom certificates
- Scripts for backup and restoration at the entire cluster level.
Conclusion
After reading the book, you will be able to independently deploy a web application in a production environment, ensuring its reliability, security, and automated management.