$this->writeJs();
$this->log('Js written');
$this->vdir->sync(true, $this);
+ `chmod -R 775 $this->dir`;
$this->log('Files Synced');
// $f=rtrim(str_replace('/html5/', '/compiletime/', $this->dir));
// touch($f);
class Farm
{
protected static $_outPDF = [];
- protected static $_forceServer = false;
- //protected static $_forceServer = 'alphaville';
+ //protected static $_forceServer = false;
+ protected static $_forceServer = 'alphaville';
protected static $_region = Region::EUROPE;
if (file_exists($thumbpdf)) {
try {
Farm::setRegion($this->region);
- return Farm::getFileFromPDF($thumbpdf, $page, $format, $resolution, $this->JPEGQuality, $withText, $withGraphics, $version, null, $force, 1);
+ $res = Farm::getFileFromPDF($thumbpdf, $page, $format, $resolution, $this->JPEGQuality, $withText, $withGraphics, $version, null, $force, 1);
+ return $res;
} catch (\Exception $e) {
throw new \Exception('Unable to generate thumbnails file from custom PDF "' . $this->pdfThumbnails . '" (original message : ' . $e->getMessage() . ')');
}
} else {
+ Log::warning('Thumbnails file ' . $thumbpdf . ' not found. Generating file from standard PDF');
}
}
return $this->getFile($page, $format, $resolution, $withText, $withGraphics, $version, $force);
chmod -R 775 /data/toolbox/alpha/protected
chmod -R 775 /data/toolbox/alpha/public
chmod -R 775 /data/toolbox/alpha/bin
+
+find /data/extranet/www/fluidbook/ -type d -prune -o -exec chown -R toolbox:www-data {} \;