Member-only story

Configure CircleCI to automatically deploy your NodeJS applications

Tom Nagle
4 min readJun 13, 2019

--

CircleCI is a a great way to automate your continuous integration and delivery, but you already know that, that’s why you’re here.

In this post you will learn how to:

  1. Setup a circleci user on your server
  2. Add SSH keys so CircleCI can log in to your server
  3. Add a configuration file to your NodeJS application (could also be any other code base)
  4. Add your project to CicrcleCI and start bulding

Add a circleci user without a password so you don’t have to give root access to CircleCI.

adduser circleci --disabled-password

Generate a public and private key with PuTTyGen by clicking the ‘Generate’ button and moving your cursor around in the open space to generate a unique key.

When the green bar get to the end, you’ll be given a public key and the option to save a private key. Save your private key and store it somehwere safe. This key will give the holder access to your server, so be carful with it.

--

--

Tom Nagle
Tom Nagle

Written by Tom Nagle

I am a full stack JavaScript developer, living in Melbourne, Australia. My preferred stack is Mongoose, TypeScript, Node.js, React & GraphQL.

No responses yet