Comments (8)
could you find more details?
use xdebug?
Or set 'tinker' => true,
in fly.conf.php and add eval(tinker()) ?
from laravelfly.
I already have the xdebug enabled, otherwise PHP won't print the stack trace :)
@scil Where should I add eval(tinker()) ?
Thanks.
from laravelfly.
eval(tinker()) can be placed everywhere almost.
open https://github.com/scil/LaravelFly and click "tinker use examples.(🎃 click me!)",
there are some examples.
from laravelfly.
OK thanks, I figured it out and tried, but it would take me some time to use it properly. The error seems to be associated with a middleware. I will try to use xdebug to see the problem.
from laravelfly.
Ok I got a bit closer to the issue. I have a named middleware that I registered in App/Http/Kernel.php. The trouble is when it gets to the Line 152 of Illuminate\Pipeline\Pipeline it for some reason is not able to obtain its class thus causing the error.
My current application is perfectly working fine with default PHP-FPM setup.
$response = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
from laravelfly.
Can I read your middleware code?
or have you changed ``class Kernel extends HttpKernel ` in app/Http/Kernel.php like https://github.com/scil/LaravelFly/blob/master/doc/config.md ?
from laravelfly.
OK this code fixed the issue in App\Http\Kernel.php:
if (defined('LARAVELFLY_MODE')) {
if (LARAVELFLY_MODE == 'Map') {
class WhichKernel extends \LaravelFly\Map\Kernel { }
}elseif (LARAVELFLY_MODE == 'Simple') {
class WhichKernel extends \LaravelFly\Simple\Kernel { }
} elseif (LARAVELFLY_MODE == 'FpmLike') {
class WhichKernel extends HttpKernel{}
} else {
class WhichKernel extends \LaravelFly\Greedy\Kernel { }
}
} else {
class WhichKernel extends HttpKernel { }
}
Thanks
from laravelfly.
nice!
You can also define an new Kernel file only for LaravelFly and replace \App\Http\Kernel::class
with its name in fly.conf.php
from laravelfly.
Related Issues (20)
- preload error: the name is already in use HOT 4
- laravel 5.6, [ERROR] bootstrap: Error: 服务器无法启动 HOT 1
- laravel 5.6 无法正常运行 HOT 4
- Composer Dependency Error HOT 1
- Can't find fly executable HOT 5
- XDebug HOT 1
- LaravelFly containes blocking code? HOT 2
- how to support Octobercms ? HOT 57
- LaravelFly\Kernel path HOT 4
- Database refactor & Postgresql support HOT 5
- support laravel5.6 5.7 HOT 3
- 修改建议 HOT 17
- 启动报错,#21 {main}[FLY ERROR] bootstrap: Class xxxx does not exist HOT 6
- Docker example? HOT 3
- Version compatibility issue with laravel 5.7.27 HOT 5
- class Psy\Input\ShellInput not found HOT 2
- docker fpm fallback 502 bad gateway HOT 1
- Wont Install Laravel v6.6.0 HOT 1
- How do you solve the cached resolved instances for facade, it is supposed to be shared by multiple coroutines. HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravelfly.