Book Image

Heroku Cookbook

By : Mike Coutermarsh
Book Image

Heroku Cookbook

By: Mike Coutermarsh

Overview of this book

Heroku is a Platform as a Service that enables developers to rapidly deploy and scale their web applications. Heroku is designed for developer happiness, freeing developers from doing system administrative tasks such as configuring servers and setting up load balancers. Developers are able to focus on what they do best, building web applications, while leaving the details of deployment and scaling to the experts at Heroku. This practical guide is packed with step-by-step solutions to problems faced by every production-level web application hosted on Heroku. You'll quickly get comfortable with managing your Heroku applications from the command line and then learn everything you need to know to deploy and administer production-level web applications.
Table of Contents (17 chapters)
Heroku Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Continuous integration and deployment with Travis CI


Travis CI is a service that will automatically run our application's test suite for us after we push each commit to GitHub. This gives us a reliable and repeatable process to test our code continuously.

We can take Travis CI a step further and have it deploy our code after each successful build. This allows us to focus our time on writing code rather than deploying it. The entire test and the deploy process is automated for us, as shown in the following diagram:

The process begins with the Continuous Integration (CI) server and ends with the latest code being deployed to either a staging or production environment. The CI server is where the latest version of our code is built and its automated test suite is run. If the build on the CI server passes (goes green), we will move on to the next step of automatically deploying the code. If the build fails, the developer is alerted, fixes the code, and starts the process again.

This process works...