Question

How can I modify the source code of my project?

Posted September 4, 2021 104 views
ApachePHPDeployment

I am trying to modify the source code of my project, source code in php. How can i do it.

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.

×
Submit an Answer
1 answer

Hello,

In case that you are using Git and GitHub for your project, you could make the changes directly to your GitHub project and then pull them to your Droplet. If your project uses Git and if you are not familiar with it, you could learn more about it here:

https://www.digitalocean.com/community/cheatsheets/how-to-use-git-a-reference-guide

If you are not using Git, then you could change your files directly on your server. There are two ways to do so:

  • Via SFTP:

https://docs.digitalocean.com/products/droplets/how-to/transfer-files/

  • Or via the terminal over SSH:

https://docs.digitalocean.com/products/droplets/how-to/connect-with-ssh/

Hope that this helps!
Regards,
Bobby

by Lisa Tagliaferri
This cheat sheet-style guide provides a quick reference to some of the more common Git commands you may use when managing repositories and collaborating on software.