Add Slapbird stuff back in
This commit is contained in:
parent
808dd7cd14
commit
bec86785d8
@ -61,7 +61,6 @@ tests locally:
|
|||||||
|
|
||||||
## TODOs
|
## TODOs
|
||||||
|
|
||||||
- Add SlapbirdAPM back in
|
|
||||||
- Do I need `SUM` for `by_id()`?
|
- Do I need `SUM` for `by_id()`?
|
||||||
|
|
||||||
## AGPL-3.0+ANTIFA compliance
|
## AGPL-3.0+ANTIFA compliance
|
||||||
|
1
cpanfile
1
cpanfile
@ -7,3 +7,4 @@ requires 'XML::RSS';
|
|||||||
requires 'Text::Markdown';
|
requires 'Text::Markdown';
|
||||||
requires 'HTML::Restrict';
|
requires 'HTML::Restrict';
|
||||||
requires 'Roman::Unicode';
|
requires 'Roman::Unicode';
|
||||||
|
requires 'SlapbirdAPM::Agent::Mojo';
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
body_max_length => 8_000,
|
body_max_length => 8_000,
|
||||||
version => 'Feb 11 2025',
|
version => 'Feb 11 2025',
|
||||||
secrets => ['t0p_s3cr3t'],
|
secrets => ['t0p_s3cr3t'],
|
||||||
|
slapbird_api_key => 'AyyLmao39b4eb99de26d437633e49555',
|
||||||
development => {
|
development => {
|
||||||
pg_string =>
|
pg_string =>
|
||||||
'postgresql://post_text:t0p_s3cr3t@127.0.0.1/post_text'
|
'postgresql://post_text:t0p_s3cr3t@127.0.0.1/post_text'
|
||||||
|
@ -19,6 +19,12 @@ sub startup($self) {
|
|||||||
$self->plugin('Config');
|
$self->plugin('Config');
|
||||||
$self->plugin('TagHelpers::Pagination');
|
$self->plugin('TagHelpers::Pagination');
|
||||||
|
|
||||||
|
# Alpha testing Slapbird APM
|
||||||
|
if (my $slapbirdapm_api_key = $self->config->{'slapbirdapm_api_key'}) {
|
||||||
|
$self->plugin('SlapbirdAPM', key => $slapbirdapm_api_key)
|
||||||
|
if $self->mode eq 'production'
|
||||||
|
}
|
||||||
|
|
||||||
# Helpers
|
# Helpers
|
||||||
$self->helper(pg => sub ($c) {
|
$self->helper(pg => sub ($c) {
|
||||||
state $pg = Mojo::Pg->new($c->config->{$self->mode}{'pg_string'})
|
state $pg = Mojo::Pg->new($c->config->{$self->mode}{'pg_string'})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user