Compare commits
10 Commits
8c78834b61
...
ebdc8790e2
Author | SHA1 | Date | |
---|---|---|---|
|
ebdc8790e2 | ||
d31dcf5f1b | |||
4332a072e0 | |||
8f424a3a62 | |||
5e036384e0 | |||
2fc1375b89 | |||
222d3b3271 | |||
7dc6ceb581 | |||
3c513e4ad9 | |||
f475ec85ca |
20
README.md
20
README.md
|
@ -51,18 +51,28 @@ Add the `-v` option for more verbose output
|
|||
|
||||
### Build
|
||||
|
||||
docker build -t guestbook-ng .
|
||||
podman build -t guestbook-ng .
|
||||
|
||||
### Tag
|
||||
|
||||
docker tag guestbook-ng \
|
||||
us-east4-docker.pkg.dev/www-swagg/guestbook-ng/guestbook-ng
|
||||
podman tag guestbook-ng git.minimally.online/swaggboi_priv/guestbook-ng
|
||||
|
||||
### Push
|
||||
|
||||
docker push us-east4-docker.pkg.dev/www-swagg/guestbook-ng/guestbook-ng
|
||||
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
|
||||
|
||||
## TODOs
|
||||
|
||||
1. Do something about the hardcoded URL in Webhook stuff
|
||||
1. Implement try/catch for Webhook since we're using Perl 5.36
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
#!/usr/bin/env perl
|
||||
|
||||
package GuestbookNg::Model::Counter;
|
||||
|
||||
use Mojo::Base -base, -signatures;
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
#!/usr/bin/env perl
|
||||
|
||||
package GuestbookNg::Model::Message;
|
||||
|
||||
use Mojo::Base -base, -signatures;
|
||||
|
|
|
@ -12,10 +12,10 @@ my $t = Test::Mojo->new($script);
|
|||
$t->ua->max_redirects(0);
|
||||
|
||||
# This one is not spam
|
||||
$t->get_ok('/message/8')->status_is(200)
|
||||
$t->get_ok('/message/3')->status_is(200)
|
||||
->text_is(h2 => 'Messages from the World Wide Web');
|
||||
# This one _is_ spam
|
||||
$t->get_ok('/message/19')->status_is(200)
|
||||
$t->get_ok('/message/2')->status_is(200)
|
||||
->text_is(h2 => 'Messages from the World Wide Web');
|
||||
# This one is deleted
|
||||
$t->get_ok('/message/1')->status_is(404)
|
||||
|
|
|
@ -28,6 +28,7 @@
|
|||
<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">
|
||||
|
|
|
@ -30,6 +30,7 @@
|
|||
<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">
|
||||
|
|
Loading…
Reference in New Issue
Block a user