Compare commits

..

No commits in common. "ebdc8790e2a6a0fe47dc63e1dbcbbe77987fe879" and "8c78834b61f2829d71c068b1b183dffdd0a3198b" have entirely different histories.

6 changed files with 11 additions and 19 deletions

View File

@ -51,28 +51,18 @@ Add the `-v` option for more verbose output
### Build
podman build -t guestbook-ng .
docker build -t guestbook-ng .
### Tag
podman tag guestbook-ng git.minimally.online/swaggboi_priv/guestbook-ng
docker tag guestbook-ng \
us-east4-docker.pkg.dev/www-swagg/guestbook-ng/guestbook-ng
### Push
podman push git.minimally.online/swaggboi_priv/guestbook-ng
### Pull
podman pull git.minimally.online/swaggboi_priv/guestbook-ng
### Run
podman run -dt --rm --name guestbook-ng -p 3001:3000 guestbook-ng:latest
### Generate unit file
podman generate systemd --files --new --name guestbook-ng
docker push us-east4-docker.pkg.dev/www-swagg/guestbook-ng/guestbook-ng
## TODOs
1. Do something about the hardcoded URL in Webhook stuff
1. Implement try/catch for Webhook since we're using Perl 5.36

View File

@ -1,3 +1,5 @@
#!/usr/bin/env perl
package GuestbookNg::Model::Counter;
use Mojo::Base -base, -signatures;

View File

@ -1,3 +1,5 @@
#!/usr/bin/env perl
package GuestbookNg::Model::Message;
use Mojo::Base -base, -signatures;

View File

@ -12,10 +12,10 @@ my $t = Test::Mojo->new($script);
$t->ua->max_redirects(0);
# This one is not spam
$t->get_ok('/message/3')->status_is(200)
$t->get_ok('/message/8')->status_is(200)
->text_is(h2 => 'Messages from the World Wide Web');
# This one _is_ spam
$t->get_ok('/message/2')->status_is(200)
$t->get_ok('/message/19')->status_is(200)
->text_is(h2 => 'Messages from the World Wide Web');
# This one is deleted
$t->get_ok('/message/1')->status_is(404)

View File

@ -28,7 +28,6 @@
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<link rel="manifest" href="/site.webmanifest">
<link rel="me" href="https://eattherich.club/@swaggboi">
</head>
<body>
<div class="outer">

View File

@ -30,7 +30,6 @@
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<link rel="manifest" href="/site.webmanifest">
<link rel="me" href="https://eattherich.club/@swaggboi">
</head>
<body>
<div class="outer">