Skip to content

Commit

Permalink
Static site has now been deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
barbie committed Jun 29, 2017
1 parent 23d635d commit 2917a2d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
2 changes: 2 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ Changes for the CPAN Testers Reports website
- perls & OSes no longer stored as JSON, retrieved dynamically on page
request.
- DB server now in US, so oldest request time are recorded at EDT.
- Static site has now been deprecated. See GH#6 for more details:
https://github.com/barbie/cpan-testers-www-reports/issues/6

3.59 2017-06-07
- introduced auto incrementing storeid to stats_store, to make updates
Expand Down
23 changes: 13 additions & 10 deletions lib/Labyrinth/Plugin/CPAN/Builder.pm
Original file line number Diff line number Diff line change
Expand Up @@ -555,11 +555,12 @@ sub AuthorPages {
$vars{content} = 'cpan/author-reports-static.html';
$vars{processed} = formatDate(8);

# build other static pages
my $text = Transform( 'cpan/layout-static.html', \%vars );
overwrite_file( "$cache/$name.html", $text );
# 2017-06-27 - Static page creation disabled, see GH#6 for more details: https://github.com/barbie/cpan-testers-www-reports/issues/6
# # build other static pages
# my $text = Transform( 'cpan/layout-static.html', \%vars );
# overwrite_file( "$cache/$name.html", $text );

$text = Transform( 'cpan/author.js', \%vars );
my $text = Transform( 'cpan/author.js', \%vars );
overwrite_file( "$cache/$name.js", $text );

overwrite_file( "$cache/$name.json", _make_json( \@reports ) );
Expand Down Expand Up @@ -847,13 +848,15 @@ sub DistroPages {
$vars{processed} = formatDate(8);

#$progress->( ".. .. building static pages for $name" ) if(defined $progress);
# build other static pages
$vars{content} = 'cpan/distro-reports-static.html';
my $text = Transform( 'cpan/layout-static.html', \%vars );
overwrite_file( "$cache/$name.html", $text );
#$progress->( ".. .. Static HTML page written for $name" ) if(defined $progress);

$text = Transform( 'cpan/distro.js', \%vars );
# 2017-06-27 - Static page creation disabled, see GH#6 for more details: https://github.com/barbie/cpan-testers-www-reports/issues/6
# # build other static pages
# $vars{content} = 'cpan/distro-reports-static.html';
# my $text = Transform( 'cpan/layout-static.html', \%vars );
# overwrite_file( "$cache/$name.html", $text );
##$progress->( ".. .. Static HTML page written for $name" ) if(defined $progress);

my $text = Transform( 'cpan/distro.js', \%vars );
overwrite_file( "$cache/$name.js", $text );
#$progress->( ".. .. JS page written for $name" ) if(defined $progress);

Expand Down

0 comments on commit 2917a2d

Please sign in to comment.