How it works...

Using some of the recipes we performed in Chapter 11, Implementing Server-Side Rendering, I created a new GitHub repository with that code to push it to production. You can see this repository at https://github.com/csantany/production.

In our Droplet, we will clone this git repo (if you already have your application ready, use your repository). The production repository is public, but if you use a private repository, you need to add the SSH Key of your Droplet in your GitHub account. For this, you need to run the ssh-keygen command in your Droplet, and then press Enter three times without writing any passphrase:

If your terminal ...

Get React Cookbook 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.