[56k Warning] Development environment with version control
Posted: Tue Apr 28, 2009 2:42 am
This isn't so much a php design question as it is a development environment design question.
Right now I have a development server and a live server. What I do is mount the development server as a ssh drive then do all the development on the development server and whatnot then, whenever I feel the changes (usually really small) are stable enough to be live, I just rsync to push the new changes to the live site and thats that. The obvious problem with this though is that I can't roll back really quickly if something screws up on the live server and of course I can go back in time and check out deleted files or what have you. Basically, no version control, just 1 version being used.
Now everyone says to use subversion of course so I have been trying to get that going but I can't think of how to setup my situation. I would like to use eclipse because of its easy to use subversion plugin but there are problems with this. I can't have my workspace on a remote server, only on my local machine but I want to have the development on the development server since the setup is exactly the same as the live server.
So my question is, what would be the best setup to keep version control AND have a proper development cycle?
Right now I have a development server and a live server. What I do is mount the development server as a ssh drive then do all the development on the development server and whatnot then, whenever I feel the changes (usually really small) are stable enough to be live, I just rsync to push the new changes to the live site and thats that. The obvious problem with this though is that I can't roll back really quickly if something screws up on the live server and of course I can go back in time and check out deleted files or what have you. Basically, no version control, just 1 version being used.
Now everyone says to use subversion of course so I have been trying to get that going but I can't think of how to setup my situation. I would like to use eclipse because of its easy to use subversion plugin but there are problems with this. I can't have my workspace on a remote server, only on my local machine but I want to have the development on the development server since the setup is exactly the same as the live server.
So my question is, what would be the best setup to keep version control AND have a proper development cycle?