Debug
Some checks failed
Push image to registry / build-image (push) Failing after 52s

This commit is contained in:
2025-02-08 10:23:34 +01:00
parent 7f4ba8a8c9
commit ec869bffe9
4 changed files with 13 additions and 3 deletions

View File

@ -38,6 +38,8 @@ RUN mkdir -p public/build/ && npm i && npm run build
# RUN # RUN
FROM php:8.2-alpine AS final FROM php:8.2-alpine AS final
ARG APP_ENV_FILE=.env.docker
# Install system dependencies # Install system dependencies
RUN apk update && apk add --no-cache \ RUN apk update && apk add --no-cache \
git \ git \
@ -63,7 +65,7 @@ WORKDIR /var/www
COPY . . COPY . .
COPY --from=build-vue /usr/app/public/build ./public/build COPY --from=build-vue /usr/app/public/build ./public/build
RUN mv .env.docker .env RUN mv ${APP_ENV_FILE} .env
# DUSK # DUSK
# RUN php artisan dusk:install && php artisan dusk:chrome-driver && mv ./undetectedChromedriver/chromedriver-linux ./vendor/laravel/dusk/bin/chromedriver-linux # RUN php artisan dusk:install && php artisan dusk:chrome-driver && mv ./undetectedChromedriver/chromedriver-linux ./vendor/laravel/dusk/bin/chromedriver-linux

View File

@ -217,6 +217,10 @@ abstract class BrowserJob implements ShouldQueue
$this->execute(); $this->execute();
} }
public function reschedule($minutes) {
$this::dispatch()->delay(now()->addMinutes($minutes));
}
// === BROWSER MACROS === // === BROWSER MACROS ===
protected function waitForAndClickText(Browser $browser, string $text, int $timeout = 30, bool $ignoreCase = true) { protected function waitForAndClickText(Browser $browser, string $text, int $timeout = 30, bool $ignoreCase = true) {

View File

@ -177,13 +177,14 @@ class HellcaseJob extends BrowserJob
$hours = explode(" ", $hours); $hours = explode(" ", $hours);
$minutes = $hours[4]; $minutes = $hours[4];
$hours = $hours[2]; $hours = $hours[2];
// $this->reschedule($hours);
$this->jobRun->addArtifact(new JobArtifact([ $this->jobRun->addArtifact(new JobArtifact([
"name" => "Cadeau gratuit pas encore disponible", "name" => "Cadeau gratuit pas encore disponible",
"content" => "Le cadeau gratuit journalier sera disponible dans {$hours} heures et {$minutes} minutes.\nDatboi se fera un plaisir d'aller le chercher pour vous." "content" => "Le cadeau gratuit journalier sera disponible dans {$hours} heures et {$minutes} minutes."
])); ]));
$this->reschedule($hours * 60 + $minutes + 1);
return; return;
} }

View File

@ -24,6 +24,9 @@ class AppServiceProvider extends ServiceProvider
{ {
Vite::prefetch(concurrency: 3); Vite::prefetch(concurrency: 3);
dd(env('APP_URL'));
dd(config('app.url'));
dd($_ENV['APP_URL']);
if (str_starts_with(env('APP_URL'), "https://")) { if (str_starts_with(env('APP_URL'), "https://")) {
$url->forceScheme('https'); $url->forceScheme('https');
} }