-
Notifications
You must be signed in to change notification settings - Fork 291
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug/Get Help: Octane:install and octane:start not working in Windows environment #282
Comments
Laravel Octane will not work on Windows. The pcntl extension is required and it is not available on windows. |
Use Sail https://github.com/laravel/sail |
Thank you for this info, it would be way better if documentation in https://laravel.com/docs/8.x/octane mention about this fact. |
I found a magic way to run roadrunner on windows. before do this, download roadrunner manually php artisan make:command StartOctane <?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
class StartOctane extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'app:start-octane {--host=127.0.0.1} {--port=8000} {--workers=1}';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Command description';
/**
* Execute the console command.
*/
public function handle()
{
$path = storage_path('logs/octane-server-state.json');
if (file_exists($path)) {
unlink($path);
}
$this->call('octane:start', [
'--host' => $this->option('host'),
'--port' => $this->option('port'),
'--workers' => $this->option('workers'),
]);
}
} then run php .\artisan app:start-octane You will see it works!!! |
@iVampireSP
and I got the file then copied your command, but got the following error: Although when I run the regular octane:start I get the usual error: Any ideas ? |
I encountered the same issue after runing the custom command suggested by @iVampireSP . The solution was to install Explanation: Octane checks for Roadrunner installation using the If you want to know where i got the roadrunner-http, you can check the function Oh and sorry for commenting on a closed issue. Cheers! |
Description 1:
Command of "artisan octane:install" not working properly and force me to download rr binary manually at https://github.com/spiral/roadrunner-binary/releases, this is the error messages:
Description 2:
Command of "artisan octane:start" also not working with this error messages:
Comparing to other package:
Since laravel/octane does not working on my laptop, I've tried other package, https://github.com/spiral/roadrunner-laravel with brand new installation of Laravel 8 and it is working, and also working on my existing Laravel 8 project without major problem.
Please help, how do I fix this problem?
Thank you.
The text was updated successfully, but these errors were encountered: