Fix crontab
All checks were successful
Push image to registry / build-image (push) Successful in 3m47s

This commit is contained in:
2025-02-16 10:04:41 +01:00
parent e6776df487
commit b40764c4ad
2 changed files with 6 additions and 5 deletions

View File

@ -61,7 +61,8 @@ RUN docker-php-ext-install gd pdo pdo_mysql zip
# Get latest Composer
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
WORKDIR /var/www
ARG wd=/var/www
WORKDIR ${wd}
COPY . .
COPY --from=build-vue /usr/app/public/build ./public/build
@ -75,7 +76,7 @@ RUN mv ${APP_ENV_FILE} .env
RUN composer install --no-interaction --prefer-dist
# CRON
RUN echo "* * * * * cd /usr/app && php artisan schedule:run >> /dev/null 2>&1" > /etc/crontabs/root
RUN echo "* * * * * cd ${wd} && php artisan schedule:run >> /dev/null 2>&1" > /etc/crontabs/root
# Link the storage directory to the public directory.
RUN php artisan storage:link

View File

@ -4,9 +4,9 @@ namespace App\Browser\Jobs\Hellcase;
use App\Browser\BrowserJob;
use App\Browser\Components\Hellcase\MainNav;
use App\Models\JobArtifact;
use App\Browser\JobArtifacts\JobRunArtifact;
use App\Browser\Jobs\Hellcase\HellcaseLoginQrCode;
use App\Models\JobArtifact;
use App\Models\JobRun;
use App\Notification\NotificationBody\Hellcase\HellcaseNotificationDailyFreeBody;
use App\Notification\NotificationBody\Hellcase\HellcaseNotificationLoginBody;
@ -125,10 +125,10 @@ class HellcaseJob extends BrowserJob
}
if ($isBackOnHellcase) {
// Click a button tjat says "sign in"
// Click a button that says "sign in"
$browser->waitForText("By signing into steam.loginhell.com through Steam", 30, true);
$browser->clickAtXPath('//input[@id = "imageLogin"]');
sleep(30);
sleep(20);
}
}