This commit is contained in:
@ -38,6 +38,8 @@ RUN mkdir -p public/build/ && npm i && npm run build
|
||||
# RUN
|
||||
FROM php:8.2-alpine AS final
|
||||
|
||||
ARG APP_ENV_FILE=.env.docker
|
||||
|
||||
# Install system dependencies
|
||||
RUN apk update && apk add --no-cache \
|
||||
git \
|
||||
@ -63,7 +65,7 @@ WORKDIR /var/www
|
||||
|
||||
COPY . .
|
||||
COPY --from=build-vue /usr/app/public/build ./public/build
|
||||
RUN mv .env.docker .env
|
||||
RUN mv ${APP_ENV_FILE} .env
|
||||
|
||||
# DUSK
|
||||
# RUN php artisan dusk:install && php artisan dusk:chrome-driver && mv ./undetectedChromedriver/chromedriver-linux ./vendor/laravel/dusk/bin/chromedriver-linux
|
||||
|
@ -217,6 +217,10 @@ abstract class BrowserJob implements ShouldQueue
|
||||
$this->execute();
|
||||
}
|
||||
|
||||
public function reschedule($minutes) {
|
||||
$this::dispatch()->delay(now()->addMinutes($minutes));
|
||||
}
|
||||
|
||||
|
||||
// === BROWSER MACROS ===
|
||||
protected function waitForAndClickText(Browser $browser, string $text, int $timeout = 30, bool $ignoreCase = true) {
|
||||
|
@ -177,13 +177,14 @@ class HellcaseJob extends BrowserJob
|
||||
$hours = explode(" ", $hours);
|
||||
$minutes = $hours[4];
|
||||
$hours = $hours[2];
|
||||
// $this->reschedule($hours);
|
||||
|
||||
$this->jobRun->addArtifact(new JobArtifact([
|
||||
"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;
|
||||
}
|
||||
|
||||
|
@ -24,6 +24,9 @@ class AppServiceProvider extends ServiceProvider
|
||||
{
|
||||
Vite::prefetch(concurrency: 3);
|
||||
|
||||
dd(env('APP_URL'));
|
||||
dd(config('app.url'));
|
||||
dd($_ENV['APP_URL']);
|
||||
if (str_starts_with(env('APP_URL'), "https://")) {
|
||||
$url->forceScheme('https');
|
||||
}
|
||||
|
Reference in New Issue
Block a user