I have rented a VPS (Linux - Fedora) and it's to be used as a web server for both development and production of the same web application.
I have yum-installed apache, subversion, and all packages necessary for running PHP.
In apache, I have created two virtual hosts:
dev.mydomain.com (for ongoing development, /var/domains/dev.mydomain.com/public_html ) www.mydomain.com (for production, /var/domains/www.mydomain.com/public_html )
There will be only one developer and he will use Netbeans as the IDE on Windows XP.
I can imagine that the first thing he will do is to checkout a copy from the SVN repository to his computer in Netbeans. What I am going to do is to just setup two SVN repositories on these folders.
So, when he does some changes on his local copy and then commits the changes, then he can visit dev.mydomain.com on his browser to view the pages and do the code debugging.
Later when he thinks the codes in dev.mydomain.com can be used in production, he can use Netbeans to commit the changes to www.mydomain.com.
Is there any problem with the above scenario? Is this how such a web server should be setup?