Member-only story
Configure CircleCI to automatically deploy your NodeJS applications
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:
- Setup a circleci user on your server
- Add SSH keys so CircleCI can log in to your server
- Add a configuration file to your NodeJS application (could also be any other code base)
- 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.