I’m looking into ways to improve workflow for multiple developers on a webserver. Git is currently the most promising method at the moment to help track changes to files etc. but I have a few questions.
Firstly I am currently running an Ubuntu droplet with Apache 2 installed and I’m not sure what would be better; either renting a second droplet and setting up a private git server on that or just storing all our files on GitHub. I get that using GitHub would be cheaper but I’d prefer to not have all of my work out on the public domain.
Secondly if I went down the road of using git how would I be able to only allow users access to edit certain files at a time rather than have access to edit every file in the repository.
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!
Another option for you would be to store your files on GitLab. Unlike GitHub, GitLab allows you to create private repositories for free. Adding a trigger to your GitLab setup would allow you to trigger a file update on your web server. You could choose whether to allow this setup to push to your live site or to set up a second virtualhost on your droplet so you could push to a staging environment before copying the changes over to your live site.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.