Collaborative web development
Hi,
with other two (or possibly more) guys I am going to build a web application. We live in three different cities and we would like to find a good way to work together.
We would like to use some version control system, but we are not sure that this would be a good idea for web development. I know about Git and I thought we could use Gitosis to make a repository on our server, but we think that this may slow down our work.
Often, when we have to adjust some code, or some graphics, we quickly modify something, save and refresh to see what happens. How can we accomplish this with Git/Gitosis?
How do you usually work in team and mantain code?
9 comments
[ 5.1 ms ] story [ 114 ms ] threadThere's no reason you can't make quick updates with version control. You'll each have a copy of the whole site (maybe with test databases) on your dev machines, and should be able to make the update, test it on your dev machine, then commit the changes to the repository.
With Git, for example, you modify the code on your machine, then save it, that you have to commit and push. Or am I wrong?
Your development machine should be able to run the same code as your server.
Making changes to the public site is a very bad practice. What if your code has errors in it?
Version control also keeps everyone up to date. Before making a change to the site you'll download the most up to date version from the repository, that way your local copy has everyones changes, with comments about what they've done.
my standard process is so:
have my checked out code mounted via nfs etc on the dev server.
make changes.
install.
if it works correctly, check it in.
we have a very flexible build system that allows for anything from the entire system to being installed down to just a single file.