Re: [ANN] Webistrano 1.1

Jonathan Weiss
2007-09-29T15:49:39Z

Phlip wrote:
> Jonathan Weiss wrote:
>
>> and the repository variable
>>
>> alpha:http://svn..../trunk
>> beta:http://svn..../releases/2
>> prod:http://svn..../releases/1
>
> I want to use only one svn lineage (I abhor code forks),

You can argue a lot how the right way to do this is, but in my
experience using different branches is the way to go. As long as you do
not commit to this branch/tag you have exactly the same code without any
hacks like your symlink stuff. Further you can backport bug-fixes and
important patches.

> and to
> symlink the beta and prod domains to previous entries in the one
> releases/2007* folder. This implies that the public version is the
> exact same source files as passed alpha and beta tests. We would bless
> a version by moving the symlink to it.
>

You can easily do this with Webistrano, just define a custom task for
updating the symlink.

> Is this what your lecture claims Capistrano makes hard? Or do you
> imply that using multiple SVN drops is hard?
>

In general handling different environments of the same project with
Capistrano is not trivial. Webistrano tries to make this easy.

>> The different Rails env would also be set as a variable or inside your
>> mongrel configuration.
>
> lighttp.
>

Should make no difference, you would then set the env in your lighttpd
config.