Question

Deploying to droplet with git

I’ve followed the article here: https://www.digitalocean.com/community/tutorials/how-to-set-up-automatic-deployment-with-git-with-a-vps

But when trying to push it just stops here:

RC@DESKTOP-QU1JT41 MINGW64 ~/Documents/Nodejs Course/server (master)
$ git push live master
The server's host key is not cached in the registry. You
have no guarantee that the server is the computer you
think it is.
The server's ssh-ed25519 key fingerprint is:
SERVER FINGER PRINT IS HERE
If you trust this host, enter "y" to add the key to
PuTTY's cache and carry on connecting.
If you want to carry on connecting just once, without
adding the key to the cache, enter "n".
If you do not trust this host, press Return to abandon the
connection.
Store key in cache? (y/n) y


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Hello,

For anyone who comes across this in the future, you can now use GitHub Actions to achieve this.

Here is a video on how to do that:

https://www.digitalocean.com/community/tech_talks/deploying-to-digitalocean-with-github-actions

Alternatively, you can use the DigitalOcean App platform which offers this out of the box and does not require you to do any server-side configuration:

https://www.digitalocean.com/products/app-platform

Best,

Bobby