diff --git a/Dockerfile b/Dockerfile index c8628d6..958ab86 100644 --- a/Dockerfile +++ b/Dockerfile @@ -61,6 +61,7 @@ RUN composer install \ RUN cp .env.example .env \ && php artisan key:generate \ - && rm -f public/storage && php artisan storage:link + && rm -f public/storage && php artisan storage:link \ + && php artisan migrate CMD ["/usr/local/bin/supervisord", "-c", "/etc/supervisord.conf"] diff --git a/app/Jobs/UpdateFavListJob.php b/app/Jobs/UpdateFavListJob.php index 52df99d..b0642ea 100644 --- a/app/Jobs/UpdateFavListJob.php +++ b/app/Jobs/UpdateFavListJob.php @@ -80,7 +80,7 @@ public function pullFavList($id) $response = file_get_contents($url, false, $context); $result = json_decode($response, true); - if (isset($result['data'])) { + if (isset($result['data']) && is_array($result['data']['medias'])) { foreach ($result['data']['medias'] as $value) { $filename = $this->convertToFilename($value['cover']); diff --git a/config/horizon.php b/config/horizon.php index 5101f6f..c50eb32 100644 --- a/config/horizon.php +++ b/config/horizon.php @@ -190,7 +190,7 @@ 'maxJobs' => 0, 'memory' => 128, 'tries' => 1, - 'timeout' => 60, + 'timeout' => 1600, 'nice' => 0, ], ],