Fix bootstrapping problem with upgrade into WebGUI8
This commit is contained in:
parent
607218880e
commit
13c56144de
7 changed files with 1 additions and 94 deletions
|
|
@ -122,7 +122,7 @@ Returns a CHI object, configured according to the settings in the config file.
|
|||
sub cache {
|
||||
my $self = shift;
|
||||
unless (exists $self->{_cache}) {
|
||||
my $cacheConf = $self->config->get('cache');
|
||||
my $cacheConf = $self->config->get('cache') || { driver => "Memory", global => 1 };
|
||||
|
||||
# Default values
|
||||
my $resolveConf = sub {
|
||||
|
|
|
|||
|
|
@ -1,14 +0,0 @@
|
|||
use WebGUI::Upgrade::Script;
|
||||
|
||||
use File::Basename;
|
||||
use Cwd qw(realpath);
|
||||
use File::Spec::Functions;
|
||||
use WebGUI::Paths;
|
||||
|
||||
start_step "Moving preload files";
|
||||
|
||||
my $webgui_root = realpath( catdir( dirname( $INC{'WebGUI/Upgrade/Script.pm'} ), (updir) x 3 ) );
|
||||
|
||||
config->set('maintenancePage', catfile( $webgui_root, 'www', 'maintenance.html' ));
|
||||
|
||||
done;
|
||||
|
|
@ -1,36 +0,0 @@
|
|||
use WebGUI::Upgrade::Script;
|
||||
use Module::Find;
|
||||
|
||||
start_step "Migrating to new cache";
|
||||
|
||||
rm_lib
|
||||
findallmod('WebGUI::Cache'),
|
||||
'WebGUI::Workflow::Activity::CleanDatabaseCache',
|
||||
'WebGUI::Workflow::Activity::CleanFileCache',
|
||||
;
|
||||
|
||||
config->set("cache", {
|
||||
'driver' => 'FastMmap',
|
||||
'expires_variance' => '0.10',
|
||||
'root_dir' => '/tmp/WebGUICache',
|
||||
});
|
||||
|
||||
config->set('hotSessionFlushToDb', 600);
|
||||
config->delete('disableCache');
|
||||
config->delete('cacheType');
|
||||
config->delete('fileCacheRoot');
|
||||
config->deleteFromArray('workflowActivities/None', 'WebGUI::Workflow::Activity::CleanDatabaseCache');
|
||||
config->deleteFromArray('workflowActivities/None', 'WebGUI::Workflow::Activity::CleanFileCache');
|
||||
|
||||
sql 'DROP TABLE IF EXISTS cache';
|
||||
sql 'DELETE FROM WorkflowActivity WHERE className in (?,?)',
|
||||
'WebGUI::Workflow::Activity::CleanDatabaseCache',
|
||||
'WebGUI::Workflow::Activity::CleanFileCache',
|
||||
;
|
||||
sql 'DELETE FROM WorkflowActivityData WHERE activityId IN (?,?)',
|
||||
'pbwfactivity0000000002',
|
||||
'pbwfactivity0000000022',
|
||||
;
|
||||
|
||||
done;
|
||||
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
use WebGUI::Upgrade::Script;
|
||||
|
||||
use File::Basename;
|
||||
use Cwd qw(realpath);
|
||||
use File::Spec::Functions;
|
||||
use WebGUI::Paths;
|
||||
|
||||
start_step "Moving preload files";
|
||||
|
||||
my $webgui_root = realpath( catdir( dirname( $INC{'WebGUI/Upgrade/Script.pm'} ), (updir) x 3 ) );
|
||||
|
||||
unlink catfile($webgui_root, 'lib', 'default.ttf');
|
||||
|
||||
unlink catfile($webgui_root, 'sbin', 'preload.custom.example');
|
||||
unlink catfile($webgui_root, 'sbin', 'preload.exclude.example');
|
||||
|
||||
rename catfile($webgui_root, 'sbin', 'preload.custom'), WebGUI::Paths->preloadCustom;
|
||||
rename catfile($webgui_root, 'sbin', 'preload.exclude'), WebGUI::Paths->preloadExclusions;
|
||||
|
||||
done;
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
use WebGUI::Upgrade::Script;
|
||||
|
||||
use File::Spec::Functions;
|
||||
use File::Basename;
|
||||
use Cwd qw(realpath);
|
||||
|
||||
my $webgui_root = realpath( catdir( dirname( $INC{'WebGUI/Upgrade/Script.pm'} ), (updir) x 3 ) );
|
||||
|
||||
start_step "Moving maintenance file";
|
||||
|
||||
unlink catfile($webgui_root, 'docs', 'maintenance.html');
|
||||
|
||||
done;
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
|
||||
use WebGUI::Upgrade::Script;
|
||||
|
||||
|
||||
report "\tRemoving Admin Bar... ";
|
||||
|
||||
session->config->delete( 'macros/AdminBar' );
|
||||
|
||||
|
||||
done;
|
||||
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue