How can I deploy from CircleCI to Vultr

I use vultr server how i connect circleci and vultr?

Check out this example that I wrote in a blog post.

In this case we are deploying Jekyll to an Ubuntu VPS. You can replace Jekyll with any random collection of of files for your app, and the Ubuntu VPS with any server that has SSH.

Key Points

  1. Create a User on the Server and allow them to have SSH access
  2. Copy the User’s Private Key to CircleCI
  3. Set up a deployment config using something like rsync as an example.
    branch: master
      - rsync -avz $YOUR_APP/ circleci@$YOUR_SERVER:/var/www/

thank you so much levlaz :sunglasses:

1 Like

I’ve got a remote server on Digital Ocean and I’m trying to deploy my nodeJS API out there. I followed your example from that blog post. Seems straight forward. Every Time the build happens and it gets to the deploy step, circleci is asking for a password. I created an ssh key on the remote server for the user circleci. That key is added to the authorized_keys dir. I added that key also to my CircleCI project under SSH Permissions and included the IP Address as the hostname. In my deployment section of my circle.yml file I use the rsync command with YOUR_SERVER as the IP Address. What am I missing?

@elrondshep that is very strange, I deploy braindump to Digital Ocean without any issues.

Build: Script:

Can you share a link to your CircleCI build so I can take a look?