Skip to content
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

Any changes necessary for folks to be able to use/test Octane locally? #1044

Closed
mattstauffer opened this issue Mar 17, 2021 · 7 comments
Closed

Comments

@mattstauffer
Copy link
Collaborator

We'll see by the end of his talk. :)

@ju5t
Copy link

ju5t commented Apr 6, 2021

I did not have enough time to test this yet, but I think Valet needs some work to support Octane.

edit:

valet proxy octane.test http://127.0.0.1:8000

@connor11528
Copy link

connor11528 commented Apr 7, 2021

I added the above proxy. Got 502 bad gateway trying to visit my valet site in the browser but ran these commands and things got started up again. Might have had to do with us upgrading to PHP 8..

valet use php@8.0
brew services restart php
valet restart
composer global update
valet install

@uchm4n
Copy link

uchm4n commented Apr 10, 2021

php artisan octane:start has to be executed in order to proxy config work properly. Maybe we can create OctanValetDriver to run this automatically ?

@jethromayuk
Copy link

Have there been any further developments on this? I'm quite eager to run Octane with Valet.. unless this is now possible?

@mattstauffer
Copy link
Collaborator Author

@jethromayuk are you not able to make it work with the instructions above?

@deevus
Copy link

deevus commented Apr 4, 2023

If you google "laravel valet octane" this is the top result. The issue is marked as completed so it would be good to direct users to some documentation.

@amnah
Copy link

amnah commented Feb 11, 2024

this was actually very easy to set up on laravel valet

here are the steps i did:

cd ~/Sites/laravel
composer require laravel/octane
php artisan octane:install   # i chose frankenphp
valet unlink
valet proxy laravel.test http://127.0.0.1:8000 --secure
# add OCTANE_HTTPS=true into .env file
npm install --save-dev chokidar
php artisan octane:start --watch
# https://laravel.test should work now

unfortunately, i dont think xdebug is usable with this setup so ill be sticking with regular php-fpm

edit: confirmed that xdebug doesn't work with valet+octane+frankenphp. perhaps swoole or roadrunner works but i havent tried

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants