Compare commits
No commits in common. "ebdc8790e2a6a0fe47dc63e1dbcbbe77987fe879" and "8c78834b61f2829d71c068b1b183dffdd0a3198b" have entirely different histories.
ebdc8790e2
...
8c78834b61
20
README.md
20
README.md
|
@ -51,28 +51,18 @@ Add the `-v` option for more verbose output
|
||||||
|
|
||||||
### Build
|
### Build
|
||||||
|
|
||||||
podman build -t guestbook-ng .
|
docker build -t guestbook-ng .
|
||||||
|
|
||||||
### Tag
|
### 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
|
### Push
|
||||||
|
|
||||||
podman push git.minimally.online/swaggboi_priv/guestbook-ng
|
docker push us-east4-docker.pkg.dev/www-swagg/guestbook-ng/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
|
|
||||||
|
|
||||||
## TODOs
|
## TODOs
|
||||||
|
|
||||||
1. Do something about the hardcoded URL in Webhook stuff
|
1. Do something about the hardcoded URL in Webhook stuff
|
||||||
|
1. Implement try/catch for Webhook since we're using Perl 5.36
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#!/usr/bin/env perl
|
||||||
|
|
||||||
package GuestbookNg::Model::Counter;
|
package GuestbookNg::Model::Counter;
|
||||||
|
|
||||||
use Mojo::Base -base, -signatures;
|
use Mojo::Base -base, -signatures;
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#!/usr/bin/env perl
|
||||||
|
|
||||||
package GuestbookNg::Model::Message;
|
package GuestbookNg::Model::Message;
|
||||||
|
|
||||||
use Mojo::Base -base, -signatures;
|
use Mojo::Base -base, -signatures;
|
||||||
|
|
|
@ -12,10 +12,10 @@ my $t = Test::Mojo->new($script);
|
||||||
$t->ua->max_redirects(0);
|
$t->ua->max_redirects(0);
|
||||||
|
|
||||||
# This one is not spam
|
# 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');
|
->text_is(h2 => 'Messages from the World Wide Web');
|
||||||
# This one _is_ spam
|
# 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');
|
->text_is(h2 => 'Messages from the World Wide Web');
|
||||||
# This one is deleted
|
# This one is deleted
|
||||||
$t->get_ok('/message/1')->status_is(404)
|
$t->get_ok('/message/1')->status_is(404)
|
||||||
|
|
|
@ -28,7 +28,6 @@
|
||||||
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
|
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
|
||||||
<link rel="icon" type="image/x-icon" href="/favicon.ico">
|
<link rel="icon" type="image/x-icon" href="/favicon.ico">
|
||||||
<link rel="manifest" href="/site.webmanifest">
|
<link rel="manifest" href="/site.webmanifest">
|
||||||
<link rel="me" href="https://eattherich.club/@swaggboi">
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="outer">
|
<div class="outer">
|
||||||
|
|
|
@ -30,7 +30,6 @@
|
||||||
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
|
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
|
||||||
<link rel="icon" type="image/x-icon" href="/favicon.ico">
|
<link rel="icon" type="image/x-icon" href="/favicon.ico">
|
||||||
<link rel="manifest" href="/site.webmanifest">
|
<link rel="manifest" href="/site.webmanifest">
|
||||||
<link rel="me" href="https://eattherich.club/@swaggboi">
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="outer">
|
<div class="outer">
|
||||||
|
|
Loading…
Reference in New Issue
Block a user