Skip to content

Commit 046a358

Browse files
committed
refactor: Update Dockerfile to set CI environment variable to true
1 parent d23f5af commit 046a358

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

app/Providers/AppServiceProvider.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ public function boot(): void
3131
}
3232
});
3333
echo config('app.env');
34-
if (config('app.env') === 'production') {
34+
echo env('CI');
35+
if (! env('CI')) {
3536
View::share('instanceSettings', InstanceSettings::get());
3637
}
3738

docker/prod/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ ARG TARGETPLATFORM
1717
# https://github.com/cloudflare/cloudflared/releases
1818
ARG CLOUDFLARED_VERSION=2024.4.1
1919
ARG POSTGRES_VERSION=15
20+
ARG CI=true
2021

2122
WORKDIR /var/www/html
2223

0 commit comments

Comments
 (0)