don't preload for development, and encode output as UTF-8

This commit is contained in:
Graham Knop 2010-05-09 08:32:05 -05:00
parent defb78ab64
commit 99386f52eb
2 changed files with 10 additions and 1 deletions

View file

@ -1,8 +1,12 @@
use strict;
use Plack::Builder;
use WebGUI::Paths -preload;
use WebGUI::Paths -inc;
use WebGUI::Config;
if ($ENV{PLACK_ENV} ne 'development') {
WebGUI::Paths->preloadAll;
}
builder {
my $first_app;
for my $config_file (WebGUI::Paths->siteConfigs) {