开发者

Multiple webs on a server using capistrano

Is there any way to configure Capistrano for deploying many webs on a server? I would like to have a project on port 80 an other project on port 1000 and m开发者_C百科anage each one with different dbs.


As Leonm said, the port numbers are completely irrelevant - you configure your application and web server environment with multiple virtual hosts, and simply deploy to the vhost webroot directory.


For Apache, you can get some help here. http://httpd.apache.org/docs/1.3/vhosts/

I am hosting my own VPS (multiple) with Apache2 + Passenger (mod_rails) + vhost config. Share some more specific details if you wish to.


My capistrano script looks something like this (I trimmed some stuff for IP safety) http://pastie.textmate.org/699537

then I have vhosts configured for each of these folders where app gets deployed. apache makes it a breeze.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜