Back to Frankenphp!

Bug fix is in and we're back to the races!

This change requires:

1. You to update your .env file to:
`OCTANE_SERVER=frankenphp`

2. An already build sail container to be rebuilt:
```
docker compose down -v
sail build --no-cache
sail up -d
```
This commit is contained in:
Refringe 2024-08-31 11:41:25 -04:00
parent 8175c853ae
commit 48c4d5b44d
Signed by: Refringe
SSH Key Fingerprint: SHA256:t865XsQpfTeqPRBMN2G6+N8wlDjkgUCZF3WGW6O9N/k
5 changed files with 19 additions and 20 deletions

View File

@ -70,7 +70,7 @@ MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS="no-reply@sp-tarkov.com" MAIL_FROM_ADDRESS="no-reply@sp-tarkov.com"
MAIL_FROM_NAME="${APP_NAME}" MAIL_FROM_NAME="${APP_NAME}"
OCTANE_SERVER=swoole OCTANE_SERVER=frankenphp
OCTANE_HTTPS=false OCTANE_HTTPS=false
SAIL_XDEBUG_MODE=develop,debug,coverage SAIL_XDEBUG_MODE=develop,debug,coverage

27
.gitignore vendored
View File

@ -3,19 +3,20 @@
.env.backup .env.backup
.env.production .env.production
.phpunit.result.cache .phpunit.result.cache
/.fleet .fleet
/.idea .idea
/.phpunit.cache .phpunit.cache
/.vscode .vscode
/caddy caddy
/config/psysh config/psysh
/data config/caddy
/node_modules data
/public/build node_modules
/public/hot public/build
/public/storage public/hot
/storage/*.key public/storage
/vendor storage/*.key
vendor
auth.json auth.json
frankenphp frankenphp
frankenphp-worker.php frankenphp-worker.php

View File

@ -1 +0,0 @@
{"admin":{"listen":"localhost:2019"},"apps":{"frankenphp":{"workers":[{"file_name":"/var/www/html/public/frankenphp-worker.php"}]},"http":{"servers":{"srv0":{"automatic_https":{"disable_redirects":true},"listen":[":443"],"logs":{"logger_names":{"localhost":["log0"]}},"routes":[{"handle":[{"handler":"subroute","routes":[{"handle":[{"handler":"subroute","routes":[{"handle":[{"handler":"vars","root":"/var/www/html/public"},{"encodings":{"br":{},"gzip":{},"zstd":{}},"handler":"encode","prefer":["zstd","br","gzip"]}]},{"handle":[{"handler":"static_response","headers":{"Location":["{http.request.orig_uri.path}/"]},"status_code":308}],"match":[{"file":{"try_files":["{http.request.uri.path}/frankenphp-worker.php"]},"not":[{"path":["*/"]}]}]},{"handle":[{"handler":"rewrite","uri":"{http.matchers.file.relative}"}],"match":[{"file":{"split_path":[".php"],"try_files":["{http.request.uri.path}","{http.request.uri.path}/frankenphp-worker.php","frankenphp-worker.php"]}}]},{"handle":[{"handler":"php","resolve_root_symlink":true,"split_path":[".php"]}],"match":[{"path":["*.php"]}]},{"handle":[{"handler":"file_server"}]}]}]}]}],"match":[{"host":["localhost"]}],"terminal":true}]}}}},"logging":{"logs":{"default":{"exclude":["http.log.access.log0"]},"log0":{"encoder":{"fields":{"uri":{"actions":[{"parameter":"authorization","type":"replace","value":"REDACTED"}],"filter":"query"}},"format":"filter","wrap":{"format":"json"}},"include":["http.log.access.log0"],"level":"INFO"}}}}

View File

@ -12,13 +12,10 @@ use Laravel\Octane\Events\WorkerErrorOccurred;
use Laravel\Octane\Events\WorkerStarting; use Laravel\Octane\Events\WorkerStarting;
use Laravel\Octane\Events\WorkerStopping; use Laravel\Octane\Events\WorkerStopping;
use Laravel\Octane\Listeners\CloseMonologHandlers; use Laravel\Octane\Listeners\CloseMonologHandlers;
use Laravel\Octane\Listeners\CollectGarbage;
use Laravel\Octane\Listeners\DisconnectFromDatabases;
use Laravel\Octane\Listeners\EnsureUploadedFilesAreValid; use Laravel\Octane\Listeners\EnsureUploadedFilesAreValid;
use Laravel\Octane\Listeners\EnsureUploadedFilesCanBeMoved; use Laravel\Octane\Listeners\EnsureUploadedFilesCanBeMoved;
use Laravel\Octane\Listeners\FlushOnce; use Laravel\Octane\Listeners\FlushOnce;
use Laravel\Octane\Listeners\FlushTemporaryContainerInstances; use Laravel\Octane\Listeners\FlushTemporaryContainerInstances;
use Laravel\Octane\Listeners\FlushUploadedFiles;
use Laravel\Octane\Listeners\ReportException; use Laravel\Octane\Listeners\ReportException;
use Laravel\Octane\Listeners\StopWorkerIfNecessary; use Laravel\Octane\Listeners\StopWorkerIfNecessary;
use Laravel\Octane\Octane; use Laravel\Octane\Octane;
@ -38,7 +35,7 @@ return [
| |
*/ */
'server' => env('OCTANE_SERVER', 'swoole'), 'server' => env('OCTANE_SERVER', 'frankenphp'),
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------

View File

@ -19,7 +19,9 @@ services:
XDEBUG_MODE: '${SAIL_XDEBUG_MODE:-off}' XDEBUG_MODE: '${SAIL_XDEBUG_MODE:-off}'
XDEBUG_CONFIG: '${SAIL_XDEBUG_CONFIG:-client_host=host.docker.internal}' XDEBUG_CONFIG: '${SAIL_XDEBUG_CONFIG:-client_host=host.docker.internal}'
IGNITION_LOCAL_SITES_PATH: '${PWD}' IGNITION_LOCAL_SITES_PATH: '${PWD}'
SUPERVISOR_PHP_COMMAND: "/usr/bin/php -d variables_order=EGPCS /var/www/html/artisan octane:start --server=swoole --host=0.0.0.0 --port=80 --watch" SUPERVISOR_PHP_COMMAND: "/usr/bin/php -d variables_order=EGPCS /var/www/html/artisan octane:start --host=localhost --port=80 --admin-port=2019 --watch"
XDG_CONFIG_HOME: /var/www/html/config
XDG_DATA_HOME: /var/www/html/data
volumes: volumes:
- '.:/var/www/html' - '.:/var/www/html'
networks: networks: