Deploying a Node App to Digital Ocean

Deploying a Node App to Digital Ocean

There are various platforms that help with deploying NodeJS apps to production. Zeit Now is one such platform.

[…]

Once we are logged in to the server, we can move on to create a new user:

[…]

The command above adds the user mezie to sudo group.

Now the user can run commands with superuser privileges.

[…]

For the new user to login to the server with SSH key, we must add the public key to a special file in the user's home directory.

Still logged in as root on the server, enter the following command:

[…]

Type the command below to return to the root user:

[…]

To make sure you can login as the new user with SSH. Enter the command below in a new terminal on your local computer:

[…]