You might be able to adapt the tests I use in the tool and the rules for
generating the config later on.
Though as-is the actual code won't be as much help. It's in Ruby rather
than PHP. And the code has to be intermixed with the config output because
of how variable short url config can be.
You may want to consider holding out on actually adding it to the
installer until after the external tool has been in use for some time and
we've added all the servers and made sure all the configs it outputs in
edge cases work properly, and taken into account any issues with some
shared hosts that might make it need tweaks.
As it is right now I haven't added the root urls in Apache root config yet
(just the .htaccess ones), I still need to look into the best way to
configure Lighttpd, and ISS, and perhaps some of the other small servers
people seem to be using.
So it will probably have to be some distance in the future before it's
robust enough for us to include into the installer.
That is probably natural anyways. Since when you think about it, at this
point we don't even have good manual pages for creating short urls. So if
we don't even have good guides, it's unlikely that any code will be robust
right away either.
Also, integrating it into the installer will have to be a spare time
project. Mixed in with the pile of other things I want to do in that short
time. (Like drop our Loggedout cookie in favor of better ETag support) I
think it would be hard to swing that part as something I can use work
hours for.
On Sat, 25 Feb 2012 12:26:17 -0800, Chad <innocentkiller(a)gmail.com> wrote:
Integrating short url config to the installer has been
on my todo list
for
a long time.
Dan: would you be interested in putting this into the installer sometime
in
the future?
-Chad
On Feb 25, 2012 3:06 PM, "Mr. Gregory Varnum" <gregory.varnum(a)gmail.com>
wrote:
> I think the tool is great!
>
> Would it be possible to house on labs or toolserver? My only hesitation
> in linking to it is then we're dependent on Redwerks generosity in
> hosting.
> I think we should leave due credit to them and such in place.
>
>
> -Greg aka varnent
>
> ____________
> Sent from my iPhone. Apologies for any typos. A more detailed response
> may
> be sent later.
>
> On Feb 25, 2012, at 2:26 PM, "Daniel Friesen"
> <lists(a)nadir-seen-fire.com>
> wrote:
>
> > On Sat, 25 Feb 2012 01:25:32 -0800, Antoine Musso <hashar+wmf(a)free.fr>
> wrote:
> >
> >> Daniel Friesen wrote:
> >>> Balanced? That section lists a single bad example of an /advantage/
> for
> >>> long urls.
> >>
> >> Another advantage of long URLs, is for such corner case when the
> sysop
> team does not know about URL rewriting and has more important things to
> do
> than figuring it out. I have seen such cases in small company.
> >
> > That's not really even an advantage. That's just not knowing how to
> configure your own software.
> > The point is moot anyways, because the goal of the Short URL building
> tool is to make it so that you don't need to know.
> > You just tell it where your wiki is. Tell it what path you want. And
> it'll guess your server setup, environment, and generate the config you
> need.
> > You just then setup that config and poof.
> >
> > --
> > ~Daniel Friesen (Dantman, Nadir-Seen-Fire)
> [
http://daniel.friesen.name]
> >
> > _______________________________________________
> > Wikitech-l mailing list
> > Wikitech-l(a)lists.wikimedia.org
> >
https://lists.wikimedia.org/mailman/listinfo/wikitech-l
>
> _______________________________________________
> Wikitech-l mailing list
> Wikitech-l(a)lists.wikimedia.org
>
https://lists.wikimedia.org/mailman/listinfo/wikitech-l
>
--
~Daniel Friesen (Dantman, Nadir-Seen-Fire) [
http://daniel.friesen.name]