Though I personally take a different route, probably the easiest way is to create a new project on the website, leave the option "Initialize repository with a README" or similar enabled, and then do a git clone to get that repository onto the local machine, and then start working in this new directory, pushing changes up to the server as desired.

You know, haukex, I might read your posts ten times and still get something from them. I finally cottoned on to the whole git clone deal, and I'm able to move forward:

$ git clone https://github.com/haukex/webperl.wiki.git wiki Cloning into 'wiki'... remote: Enumerating objects: 64, done. remote: Total 64 (delta 0), reused 0 (delta 0), pack-reused 64 Unpacking objects: 100% (64/64), done. $ ls 1.example.config.txt 1.txt 2.txt 4.getopt.pl 5.git.sh wiki 1.git.sh 2.git.sh 3.git.sh 5.getopt.pl README.md $ cd wiki $ ls Building-WebPerl.md _Footer.md Perl6.md Using-Web +Perl.md FAQ.md Home.md Post-your-Examples-Here.md $ cat Using-WebPerl.md These are **supplemental** notes on using WebPerl. Please see the main documentation at **<https://webperl.zero-g.net/usi +ng.html>**. - Nothing here yet. $ pwd /home/pi/Documents/curate/perlmonks/trans/trans/trans/wiki $ ls Building-WebPerl.md _Footer.md Perl6.md Using-Web +Perl.md FAQ.md Home.md Post-your-Examples-Here.md $ git clone --branch gh-pages https://github.com/haukex/webperl.git pa +ges Cloning into 'pages'... remote: Enumerating objects: 1106, done. remote: Total 1106 (delta 0), reused 0 (delta 0), pack-reused 1106 Receiving objects: 100% (1106/1106), 6.15 MiB | 2.48 MiB/s, done. Resolving deltas: 100% (711/711), done. $ ls Building-WebPerl.md _Footer.md pages Post-your-Examples-Here.md FAQ.md Home.md Perl6.md Using-WebPerl.md $ cd pages/ $ ls building.md favicon.ico legal.md regex.html CNAME HD_WebPerl_GPW_2019_Slides.pdf _misc using.md _config.yml HD_WebPerl_Riga_2019_Slides.pdf notes.md webperl.png democode index.md perl6.md $

Q1) How do I clone the rpi repo that I visit so much and now can't find?

I hadn't been in a position to follow webperl main page when you rolled it out. I remember that I had some crummy hosting arrangement at the time that didn't allow me to have sudo privileges, so I couldn't replicate much of any of it. Well, now is the dead of winter, and I have my perl feet under me now. I'm confident that if I typed:

plackup webperl.psgi

, your software would snap to attention and be ready for contact. So I have executed the cpanfile that was:

# $ cpanm --installdeps . requires 'Cpanel::JSON::XS'; requires 'Plack'; requires 'Plack::Middleware::CrossOrigin'; requires 'Plack::Middleware::Auth::Digest';

Q2) Is Plack the solution for my upload question?

I'm concerned that I see the date of 2009 at stackoverflow thread on psgi and advent.plackperl, but I'm hoping that means that it is well-seasoned rather than obsolete. I am encouraged to see the name Miyagawa on it. One comment from these sources:

I'm new in PSGI too, but zilion things now are much easier as before in my apache/mod_perl era. try write some apps with it and will find than Plack is like the first sex - now you didn't understand that you could live without it. ps: If was here something like "Perl Oscar", will sure nominating MyiagavaSan. :)

That's kind of the way I feel about:

cpanm --installdeps .

Again, thanks for your writeup....

Gruss aus Amiland,


In reply to Re^2: Using perl to script an upload page by Aldebaran
in thread Using perl to script an upload page by Aldebaran

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.