fixed the use of deprecated env var BLOGALBA_DIR
This commit is contained in:
parent
0748405cbd
commit
37e695415c
|
@ -17,7 +17,7 @@ use Dancer2;
|
|||
|
||||
my $HOST = `hostname -s`; chomp $HOST;
|
||||
|
||||
my $basedir=$ENV{BLOGALBA_DIR} || cwd();
|
||||
my $basedir=$ENV{BASE}."/".$ENV{APP} || cwd();
|
||||
config->{url} .= '/' unless config->{url} =~ /\/$/;
|
||||
|
||||
my ($page,@posts,@pages,%defparams);
|
||||
|
|
Loading…
Reference in New Issue