continue;
}
$path = \Storage::disk('local')->path($pdf->pdfPath);
+ $path=str_replace('fluidbook','flowpaper',$path);
$e = explode('/', $path);
array_pop($e);
$filebin = implode('/', $e) . '/file.bin';
$tmp = '/tmp/dump' . rand(100000, 999999) . '.sql';
+ Artisan::call('optimize:clear');
+
// Get dump from old server
$mysqldump = new CommandLine('mysqldump', $tmp, false);
$mysqldump->setArg('h', env('OLD_DB_HOST'));
`rclone sync olds3:prescription-sante/flowpaper/ /application/storage/app/flowpaper/`;
Artisan::call('psq:fluidbook:archives');
+ Artisan::call('optimize:clear');
}
}