Skip to content

Commit 75213fa

Browse files
committed
Fixed octane permissions
1 parent e874400 commit 75213fa

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
vendor/

examples/laravel/Dockerfile.octane

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG OCTANE_TAG=pr-27-octane-4.8-php8.1-alpine
1+
ARG OCTANE_TAG=octane-a65874dd8e099759ebdd6271caff2ae2513cc65f-4.8-php8.1-alpine
22

33
# 1. Create a preliminary step to build the required assets & dependencies.
44
###########################################################################
@@ -7,8 +7,7 @@ FROM quay.io/renokico/laravel-base:$OCTANE_TAG as build
77
COPY . /var/www/html
88

99
# Update permissions
10-
RUN chown www-data:www-data /var/www/html ; \
11-
chmod -R 777 /var/www/html
10+
RUN chmod -R 777 /var/www/html
1211

1312
# Install dependencies.
1413
RUN apk --update --no-cache add \
@@ -50,8 +49,7 @@ FROM quay.io/renokico/laravel-base:$OCTANE_TAG
5049

5150
COPY --from=build /var/www/html .
5251

53-
RUN chown www-data:www-data /var/www/html ; \
54-
chmod -R 777 /var/www/html ; \
52+
RUN chmod -R 777 /var/www/html ; \
5553
apk --update --no-cache add \
5654
libjpeg-turbo-dev \
5755
jpeg-dev \

examples/laravel/app/Http/Controllers/LogRequestController.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
use App\Jobs\LogRequest;
66
use Illuminate\Http\Request;
7+
use Illuminate\Support\Facades\Log;
78
use Illuminate\Support\Facades\Response;
89

910
class LogRequestController extends Controller
@@ -17,6 +18,7 @@ class LogRequestController extends Controller
1718
public function __invoke(Request $request)
1819
{
1920
LogRequest::dispatch($request->__toString());
21+
Log::debug($request->__toString());
2022

2123
return Response::json([
2224
'status' => 'success',

0 commit comments

Comments
 (0)