I can see branching is easy if you're using rails or django, which has development servers in their development directories (django-admin.py runserver).
At the moment I'm developing php served by Apache (windows). If I make a branch out of my php directory, I need to edit httpd.co开发者_如何学JAVAnf and add the new branch.
Is there a way I can get a branch just to work instantly with apache? I'd love it to be like this: http://master.project.localhost -> /projects/master
, http://testing.project.localhost -> /projects/testing
I've read that the hostfiles can't have wildcards. Must I use a DNS-software or something to get this streamlined?
Also, my projects can't run i directories, http://project.localhost/master and http://project.localhost/testing, is not working
Look at sites-available/sites-enabled in Apache so that you can run multiple sites with one server (using a2ensite, etc).
精彩评论