How to download the source code from a droplet

I took over a legacy PHP project which is deployed on DO. I was provided with the droplet ip and pass code, and also the contol panel credentials. However, I couldnt figure out the easiest way to grab the source codes to my local machine, and how to upload the modifed codes back to droplet? I only worked with PaaS before. does DO use git to upload codes? Please advise.

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.

Hey, droplets are virtual servers hosted by DO, access to the code on a droplet is up to you/the owner of the droplet and isn’t controlled by DO.

Default access to droplets is provided via SSH which you can use to connect via SFTP if you have the credentials. You can use a clilent like Filezilla (or another for your platform) which will allow you to upload/download files from the server.

Your droplet setup may be different though, they may have setup FTP, it may have Git repository, but this will be controlled by whoever setup the droplet, not Digital Ocean.

If you have any more questions or want anything clarifying let me know and I’ll see what I can do.