Webxplosion Posted April 14, 2009 Share Posted April 14, 2009 Hi there, I'm curious as to what kind of setup you guys use or have used to develop using version control, with a standard PHP & MySQL environment on a Windows and / or Linux server. Also, what do you consider to be a good workflow to use, for a small company with say lass than 5 developers working on let's say 20 different PHP & MySQL projects. Currently we're using no version control at all, we develop on a local windows server, and we simply upload via FTP when it's done Any comments, suggestions, do's, dont's and experiences would be greatly appreciated. Thanks in advance! Quote Link to comment https://forums.phpfreaks.com/topic/154018-version-control-with-php-mysql/ Share on other sites More sharing options...
Mchl Posted April 14, 2009 Share Posted April 14, 2009 Subversion works fine. Quote Link to comment https://forums.phpfreaks.com/topic/154018-version-control-with-php-mysql/#findComment-809611 Share on other sites More sharing options...
Webxplosion Posted April 14, 2009 Author Share Posted April 14, 2009 Thanks, can you describe your workflow when developping a PHP & MySQL project with subversion? And does it also cover changes in database structure, in such way that you can create an "update.php" file for example to convert to a new version on your live server? Quote Link to comment https://forums.phpfreaks.com/topic/154018-version-control-with-php-mysql/#findComment-809755 Share on other sites More sharing options...
Daniel0 Posted April 14, 2009 Share Posted April 14, 2009 You could use a combination of Phing and dbdeploy. Quote Link to comment https://forums.phpfreaks.com/topic/154018-version-control-with-php-mysql/#findComment-809801 Share on other sites More sharing options...
Mchl Posted April 14, 2009 Share Posted April 14, 2009 Thanks, can you describe your workflow when developping a PHP & MySQL project with subversion? And does it also cover changes in database structure, in such way that you can create an "update.php" file for example to convert to a new version on your live server? Pretty much just like subversion manual describes: checkout, make your changes, update, resolve conflicts if any, commit... For database structure I just export it to SQL file and commit that. Quote Link to comment https://forums.phpfreaks.com/topic/154018-version-control-with-php-mysql/#findComment-809944 Share on other sites More sharing options...
Daniel0 Posted April 14, 2009 Share Posted April 14, 2009 For database structure I just export it to SQL file and commit that. There are two problems with that approach though: 1) The other team members might find it annoying having to loose all the data all the time. 2) You end up stepping on other people's toes. What if you and another team member wants to change a particular table at the same time? Quote Link to comment https://forums.phpfreaks.com/topic/154018-version-control-with-php-mysql/#findComment-809954 Share on other sites More sharing options...
Mchl Posted April 14, 2009 Share Posted April 14, 2009 Working on one-member team I'm using subversion more for archiving than for collaboration. Quote Link to comment https://forums.phpfreaks.com/topic/154018-version-control-with-php-mysql/#findComment-809960 Share on other sites More sharing options...
Daniel0 Posted April 14, 2009 Share Posted April 14, 2009 It's good for that too, but collaboration is where version control really excels though. He did also specifically mention that he had a multi-person team. Quote Link to comment https://forums.phpfreaks.com/topic/154018-version-control-with-php-mysql/#findComment-809964 Share on other sites More sharing options...
Webxplosion Posted August 19, 2009 Author Share Posted August 19, 2009 Can anybody describe this process / workflow in in layman’s terms? To explain: we currently just have .php files on a local server that has filesharing enabled... we develop there and just make sure we don't edit the same file at the same time... then we test locally, and we upload via ftp... How would this process change when we implement, let's say subversion? - Do we still have our files stored on the local server with filesharing enabled? - If so, where are the new versions stored? From where do we upload? - Do we even upload via ftp or will this be replaced by some neat subversion option? I'm quite surprised to say that I haven't found any proper (being: simple) tutorials about how to start using subversion from the PHP developers perspective. I'm sure more ppl have found the transition from 1 on 1 development, to version control development somewhat hard to grasp Any feedback on this would be greatly appreciated! Quote Link to comment https://forums.phpfreaks.com/topic/154018-version-control-with-php-mysql/#findComment-901789 Share on other sites More sharing options...
Daniel0 Posted August 19, 2009 Share Posted August 19, 2009 You can perhaps check this out: http://svnbook.red-bean.com/ Quote Link to comment https://forums.phpfreaks.com/topic/154018-version-control-with-php-mysql/#findComment-901796 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.