* deploy fix

* thumb size changed
This commit is contained in:
Danyi Dávid 2018-07-08 21:43:35 +02:00
parent 23ad3132c3
commit 7283d6eefb
2 changed files with 3 additions and 2 deletions

View File

@ -21,7 +21,7 @@ set('writable_dirs', []);
set('keep_releases', 3);
set('default_stage', 'production');
host('alfheim.ragnarok.yvan.hu', 22)
host('alfheim.ragnarok.yvan.hu')
->stage('production')
->user('yvan')
->forwardAgent()

View File

@ -17,7 +17,7 @@ class GalleryService
const CONFIG_FILE = 'data/galleries/config.yaml';
const IMAGE_BASEDIR = 'data/galleries/%s/';
const EXPORT_DIR = 'data/export/';
const THUMBNAIL_SIZE = 500;
const THUMBNAIL_SIZE = 750;
protected $contentTypeMap = [
'jpg' => 'image/jpeg',
@ -160,6 +160,7 @@ class GalleryService
}
private function ensureThumbnailExists(string $dir, string $imageName) {
set_time_limit(30);
$imageDir = $this->getImageDir($dir);
$thumbPath = $imageDir . "thumb_" . self::THUMBNAIL_SIZE;
@mkdir($thumbPath);