Closed FrontEndCoffee closed 3 years ago
I have manually completed the octane installation, however, I can see that there is more that doesn't work with lumen. Both StartRoadRunnerCommand
and StartSwooleCommand
use the Laravel\Octane\Commands\Concerns\InteractsWithEnvironmentVariables
trait that has the same problem as the piece of code in the InstallCommand
.
And thus, running php artisan octane:start
results in:
In InteractsWithEnvironmentVariables.php line 23:
Call to undefined method Laravel\Lumen\Application::environmentPath()
Since Lumen is a totally separate framework from Laravel, it does not intentionally offer compatibility with any additional Laravel libraries like Cashier, Octane, Passport, Scout, etc. If your application requires the functionality provided by these libraries, please use the Laravel framework.
Description:
In order to update the .env file when setting up Octane, the install command tries to resolve the path of the .env file. This is done through the
app()->environmentFile()
function. Only, this function is not defined in the LumenApplication
class.The error message is really clear, but I'm including it anyway:
The line of code in the install command (in latest 1.x commit): https://github.com/laravel/octane/blob/3ab6e1c221659a2ad0ead019ccbcc151a0e6ae06/src/Commands/InstallCommand.php#L63
Steps To Reproduce:
php artisan octane:install