O'Reilly logo

Building Scalable Apps with Redis and Node.js by Joshua Johanan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required