Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
This is not a Perl question.

It seems to be a "getting to the perl" question.

See the docs provided by your host:

I stared at those pages for hours, days. The couple hints I got here imparted courage to try something, at least. When I view that page whilst signed in now, the domain information makes more sense, because it's particular.

"My goal for this thread is to get "hello mojo world" to display" Does it do that in your local, test environment?

Yes, and your question made me think long and hard about that local, test environment, and how it should have directory hierarchies similar to the target. I've got local and remote results, so super happy about that:

fred@fourth:~/mojo$ mojo generate lite-app [exist] /home/fred/mojo [write] /home/fred/mojo/ [chmod] /home/fred/mojo/ 744 fred@fourth:~/mojo$ ll total 20 drwxrwxr-x 2 fred fred 4096 Oct 13 20:29 ./ drwxr-xr-x 9 fred fred 4096 Oct 13 20:29 ../ -rwxr--r-- 1 fred fred 388 Oct 13 20:29* -rwxr-xr-x 1 fred fred 127 Oct 13 19:12* -rwxr-xr-x 1 fred fred 1925 Oct 13 18:41* fred@fourth:~/mojo$ ./ daemon [2020-10-13 20:30:50.55473] [75108] [info] Listening at "http://*:3000 +" Web application available at [2020-10-13 20:31:02.55218] [75108] [debug] [XY-c4b0j] GET "/" [2020-10-13 20:31:02.55290] [75108] [debug] [XY-c4b0j] Routing to a ca +llback [2020-10-13 20:31:02.55381] [75108] [debug] [XY-c4b0j] Rendering templ +ate "index.html.ep" from DATA section [2020-10-13 20:31:02.55514] [75108] [debug] [XY-c4b0j] Rendering templ +ate "layouts/default.html.ep" from DATA section [2020-10-13 20:31:02.55639] [75108] [debug] [XY-c4b0j] 200 OK (0.00419 +6s, 238.322/s) ^Cfred@fourth:~/mojo$ cat #!/usr/bin/env perl use Mojolicious::Lite -signatures; get '/' => sub ($c) { $c->render(template => 'index'); }; app->start; __DATA__ @@ index.html.ep % layout 'default'; % title 'Welcome'; <h1>Welcome to the Mojolicious real-time web framework!</h1> @@ layouts/default.html.ep <!DOCTYPE html> <html> <head><title><%= title %></title></head> <body><%= content %></body> </html> fred@fourth:~/mojo$

Thanks all for replies.

In reply to Re^2: [OT] Next steps in using DigitalOcean to host a website running Mojolicious by Aldebaran
in thread [OT] Next steps in using DigitalOcean to host a website running Mojolicious by Aldebaran

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, 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, 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.
  • Log In?

    What's my password?
    Create A New User
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others making s'mores by the fire in the courtyard of the Monastery: (8)
    As of 2021-04-16 08:30 GMT
    Find Nodes?
      Voting Booth?

      No recent polls found