Permalink
Switch branches/tags
deployment/bbbikede/20180915 deployment/bbbikede/20180629 deployment/bbbikede/20180605 deployment/bbbikede/20180125 deployment/bbbikede/20171224 deployment/bbbikede/20171217 deployment/bbbikede/20171118 deployment/bbbikede/20170913 deployment/bbbikede/20170821 deployment/bbbikede/20170603_2 deployment/bbbikede/20170603 deployment/bbbikede/20170515 deployment/bbbikede/20170320 deployment/bbbikede/20161029_2 deployment/bbbikede/20161029 deployment/bbbikede/20160407 deployment/bbbikede/20160403 deployment/bbbikede/20160208 deployment/bbbikede/20160130 deployment/bbbikede/20160113 deployment/bbbikede/20150920 deployment/bbbikede/20150830_2 deployment/bbbikede/20150830 deployment/bbbikede/20150617 deployment/bbbikede/20150616 deployment/bbbikede/20150419 deployment/bbbikede/20150418 deployment/bbbikede/20150416 deployment/bbbikede/20150102 deployment/bbbikede/20141110 deployment/bbbikede/20140909 deployment/bbbikede/20140813 deployment/bbbikede/20140703 deployment/bbbikede/20140607 deployment/bbbikede/20140319 deployment/bbbikede/20140306 deployment/bbbikede/20140126 deployment/bbbikede/20131216 deployment/bbbikede/20131201 deployment/bbbikede/20131128 deployment/bbbikede/20131013 deployment/bbbikede/20130831 deployment/bbbikede/20130716 deployment/bbbikede/20130623_2 deployment/bbbikede/20130623 deployment/bbbikede/20130618 deployment/bbbikede/20130615 deployment/bbbikede/20130418 deployment/bbbikede/20130410 deployment/bbbikede/20130405_3 deployment/bbbikede/20130405_2 deployment/bbbikede/20130405 deployment/bbbikede/20130403_2 deployment/bbbikede/20130403 deployment/bbbikede/20130328 deployment/bbbikede/20130326 deployment/bbbikede/20130129 deployment/bbbikede/20130116 deployment/bbbikede/current
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 55 lines (37 sloc) 1.52 KB
#!/usr/bin/perl -w
# -*- perl -*-
#
# Author: Slaven Rezic
#
# Copyright (C) 2016,2017 Slaven Rezic. All rights reserved.
# This program is free software; you can redistribute it and/or
# modify it under the same terms as Perl itself.
#
# Mail: slaven@rezic.de
# WWW: http://www.rezic.de/eserte/
#
use strict;
system("wget", "-O", "/tmp/log.txt~", "http://metabase.cpantesters.org/tail/log.txt?" . time);
die "Getting log.txt failed" if $? != 0;
rename "/tmp/log.txt~", "/tmp/log.txt" or die $!;
system("/home/eserte/src/CPAN/CPAN-Testers-Matrix/bin/tail-log-to-json.pl", "-o", "/var/tmp/metabase-log/log-as-json", "-logfile", "/tmp/log.log", "-statusfile", "/tmp/statusfile", "/tmp/log.txt", "-no-seek");
die if $? != 0;
__END__
=head1 SETUP
Create directory:
mkdir -p /var/tmp/metabase-log/log-as-json
Setup cron job:
2,7,12,17,22,27,32,37,42,47,52,57 * * * * $HOME/bin/sh/cron-wrapper $HOME/src/CPAN/CPAN-Testers-Matrix/bin/tail-log-to-json-wrapper.pl
(L<http://metabase.cpantesters.org/tail/log.txt> is currently modified
about 80s after minute 0,5,10,...)
(If you don't have C<cron-wrapper>, then just run without and redirect
everything to F</dev/null>)
Create a cgi-bin/cpantestersmatrix.yml in the CPAN-Testers-Matrix
directory with the following content:
static_dist_dir: /var/tmp/metabase-log/log-as-json
cache_root: /tmp/cpantesters_fast_cache
serializer: Sereal
(You can omit the serializer if Sereal is not available)
Run C<plackup> (or C<starman>) like this:
plackup cpan-testers-matrix.psgi
=cut