From 0d558b2ab0fecfad418ed78afb6000f80543e290 Mon Sep 17 00:00:00 2001 From: Kekskurse Date: Sun, 17 Jan 2021 03:39:33 +0100 Subject: [PATCH] Stuff --- app/Http/Controllers/PublicController.php | 2 +- resources/ansible/playbook.yml | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/PublicController.php b/app/Http/Controllers/PublicController.php index 53abc70..3660487 100644 --- a/app/Http/Controllers/PublicController.php +++ b/app/Http/Controllers/PublicController.php @@ -40,7 +40,7 @@ class PublicController extends BaseController public function returnImageFile($tenant_url, $gallery_url, $image_id, Request $request) { $sizeName = $request->input("size", "medium"); - if(!array_key_exists($sizeName, $this->size)) { + if(!array_key_exists($sizeName, self::$size)) { abort(400, "Size not exists"); } $size = (int)$this->size[$sizeName]; diff --git a/resources/ansible/playbook.yml b/resources/ansible/playbook.yml index e536c59..50c4ea6 100644 --- a/resources/ansible/playbook.yml +++ b/resources/ansible/playbook.yml @@ -170,3 +170,9 @@ state: restarted daemon_reload: no name: nginx + + - name: Creates a cron file under /etc/cron.d + ansible.builtin.cron: + name: laravelcron + user: www-data + job: "php /var/www/kuvia/artisan schedule:run"