Setting up different environments

We will continue with our opening problem. Our application is only accessible from one computer—our own. To fix this, we need to find all the differences that would exist between environments and abstract them out. We need this process to be automated. We cannot go through and find all references to localhost and change them out every time we want to deploy. We will follow the advice given by Twelve Factor App (http://12factor.net/).

Twelve Factor App

Twelve Factor App was written by the people behind Heroku (https://www.heroku.com/). Heroku is a Platform as a Service (Paas), which means they can easily host and scale out application with very little modification to code. This ability is exactly what we want for ...

Get Building Scalable Apps with Redis and Node.js now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.