Question

Deploying PHP apps to DigitalOcean with Dploy.io

Posted June 27, 2015 2k views
UbuntuGetting StartedDigitalOceanDeployment

I’ve never used any deployment tools/services before and thought I’d give dploy.io a go after seeing this article:
http://www.sitepoint.com/deploying-php-apps-digitalocean-dploy-io/

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!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer

Hello,

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.

Submit an Answer