开发者

How to branch and using a standalone server efficiently (e.g. Apache)

开发者 https://www.devze.com 2023-01-23 07:00 出处:网络
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).

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).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号