Instructions for hosting a repository with DreamHost
Matt Nordhoff
mnordhoff at mattnordhoff.com
Wed Jan 2 20:27:14 UTC 2008
Chris Williams wrote:
> Couple of questions in-line...
>
> On Dec 31, 2007 11:52 PM, Matt Nordhoff <mnordhoff at mattnordhoff.com> wrote:
>> cdwillie76 wrote:
>>> I just went through and added step by step instructions on how to configure a
>>> DreamHost account to host a mercurial repository. The instructions can be
>>> found on the DreamHost Wiki at http://wiki.dreamhost.com/Mercurial. I am
>>> noob with Mercurial so any feedback would be great.
>> I only have a couple (times 2) comments:
>>
>> 1.) I don't like encouraging push_ssl = False. Just use SSH.
> Wouldn't this require you to have a domain that supports SSL and have
> a certificate? I think most DreamHost accounts don't have this
> option.
If there's only one person pushing, it's easy to do it over SSH.
hg push ssh://user@domain.com/hg/<whatever>
If there are multiple people, it probably is easier over HTTP. SSL would
be ideal though.
>> 2.) I never thought of using ~/hg. I use that for private stuff and
>> ~/hg.mydomain.com/hg for public stuff (of which there is none at the
>> moment). You could probably just use [collections] without a symlink.
> Yea. Looking back I don't know if there is any advantage of putting
> the hg directory in my home directory and symbolic link it or not.
Well, shorter URL over SSH, that's more similar to the HTTP URL.
>> 3.) I don't like that RewriteCond !-f and !-d stuff. I put my repos
>> under an hg/ directory so I can rewrite the entire directory.
> Ok.
>
>> 4.) What about using FastCGI? It could be a little speedier.
> How would one do this? I have heard of FastCGI and I know DreamHost
> supports it but not sure how to configure for it.
I think all you have to do is enable it for the domain in the panel and
use the contrib/hgwebdir.fcgi script instead of hgwebdir.cgi.
Unless the site is very very busy, it's probably not really worth it.
>> 5.) Trivial: [QSA] isn't necessary when you aren't setting a query string.
> Ok. I took that from another example. I will remove it and see if
> everything still works.
--
More information about the Mercurial
mailing list