Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: Setting up and accessing a DarkPAN

by kcott (Archbishop)
on May 07, 2020 at 13:59 UTC ( [id://11116541] : note . print w/replies, xml ) Need Help??


in reply to Re: Setting up and accessing a DarkPAN
in thread Setting up and accessing a DarkPAN

G'day marto,

Many thanks for your suggestions. Some of these have already been looked into. Here's a brief summary of those.

  • Work on creating a local CPAN mirror was started quite some time ago (before I joined the company). It ran into various difficulties and was never fully operational. Fixing (or finding an alternative to) this is part of my current task. For now, I've put this into the overkill bucket; although, that doesn't preclude revisiting at some future point.
  • My current research looked into the option of using MetaCPAN locally; I did encounter Docker which you mentioned. While not entirely abandoned, I felt this also fell into the overkill bucket.
  • I had looked at both CPAN::Mini::Webserver and minicpan_webserver. The latter does have more documentation; although, how to achieve various tasks is not shown. As an example, it uses static CSS, via CPAN::Mini::Webserver::Templates::CSS: I imagine there would be some way to either tweak what that provides, or to specify a completely different style sheet, but there is no information on how to do that.
    • Compare with Pod::Html (and, by extension, pod2html) which has a fairly straightforward --css=stylesheet option. CPAN::Mini::Webserver uses Moose but I can't see any obvious 'has css' statements; the code is fairly long, and includes a number of use and extends statements, so I imagine I will eventually be able to find what I need — it's just annoying that I need to do this at all.

Thanks for pointing me towards App::lcpan [for anyone else reading this, that's a lowercase case 'L', not an uppercase 'i']. I've had a brief look at this but will need to spend more time on it. There does appear to be a lot of documentation, especially in App::lcpan::Manual; at present, a lot of that is just "TODO" but the author (fellow monk, perlancar) appears to be working on that at the moment — I see four distribution updates in the last three days.

Overall, there's nothing currently set in stone. I'll be starting a proof-of-concept tomorrow using the DarkPAN solution outlined in the OP — of course, that may change as work progresses. Given tomorrow is only a few minutes away in my timezone, I should probably get some sleep first. :-)

— Ken

Replies are listed 'Best First'.
Re^3: Setting up and accessing a DarkPAN
by marto (Cardinal) on May 07, 2020 at 14:09 UTC
Re^3: Setting up and accessing a DarkPAN
by perlancar (Hermit) on May 08, 2020 at 05:28 UTC

      G'day perlancar,

      I've just finished reading it: clear, concise and easy to read. Much appreciated. Thankyou.

      — Ken