Following the tutorial at BUILDING AN APPLICATION FROM EXISTING APPERL everything works until this step:
Now, you may still wish for your application to be run, even if the executable is renamed. Add default_script to your config to set a fallback script:
  "default_script" : "/zip/bin/hello"

Where exactly does that line belong? Adding it to apperl-project.json causes the error "Failed to find APPERL_DEFAULT_SCRIPT" when doing "apperlm build" again:
{ "apperl_configs" : { "my_nobuild_config" : { "desc" : "description of this config", "base" : "nobuild-v0.1.0", "dest" : "perl.com", "zip_extra_files" : { "bin" : ["src/hello"] }, "default_script" : "/zip/bin/hello" } }, "defaultconfig" : "my_nobuild_config" }
I've tried adding it to the other two "logical" places in apperl-project.json and also in .apperl/o/user-project.json, without getting any errors, but it still does not work. By "work" I expect that after adding "default_script" and running "apperlm build" again that running the newly built ./perl.com would run that script, without having to type "./perl.com /zip/bin/hello" and that it will work if even the perl.com is renamed.

In reply to APPerl tutorial problem: default_script by Anonymous Monk

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.