diff --git a/deploy.php b/deploy.php index d95f420..309a249 100644 --- a/deploy.php +++ b/deploy.php @@ -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() diff --git a/src/App/Service/GalleryService.php b/src/App/Service/GalleryService.php index 2dc5f8e..e42e750 100644 --- a/src/App/Service/GalleryService.php +++ b/src/App/Service/GalleryService.php @@ -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);