Deploying PHP apps to DigitalOcean with

June 27, 2015 509 views
DigitalOcean Getting Started Deployment Ubuntu

I've never used any deployment tools/services before and thought I'd give a go after seeing this article:

I'm stuck trying to connect dploy to my droplet - I've tried a few times but keep getting the dploy error message "Warning: can’t connect to a server"

I signed up to deploy, the options in the process were not quite the same as the ones shown in the article (e.g. there is no "Upload static files" or "Pre-launch commands" settings but there is "Upload configuration files", "Run commands after new version becomes active" and "Run commands after new version is uploaded") but it looks fairly similar.

I created a Digital Ocean personal access token and added it to dploy.

I added the dployssh key to ~/.ssh/authorized_keys in my droplet and rebooted. I think the permissions are ok (I could be wrong here...). I followed the instructions for permisisons although I have a feeling I had already set them before.

Github is linked ok.

t's not critical, I'm just trying to figure out how to do it. Any advice appreciated, thanks!

1 Answer


Tools like this use SSH to connect to the droplet, and this is likely where the error is. If you added the public key to the authorized_keys folder did you test SSH manually?

I would suggest trying to log in with SSH from your local PC with the same key pair. If you cannot get the public key (The service is no longer free so I cannot test it directly I apologize) then make your own and try connecting.

You can also log in with SSH as root or whatever sudo user you made in the secure steps, and check the /var/log/auth.log for errors. This will show any errors the deploybot user has while connecting and why the server is rejecting you.

Have another answer? Share your knowledge.