DEV Community

loading...

How to make Spatie Ray work with Laravel Sail

stuartcreed profile image StuartCreed ・1 min read

1) sail composer require spatie/laravel-ray --dev
2) php artisan ray:publish-config --docker
3) Set the values in ray.php to:

'host' => 'host.docker.internal',
'port' => 23517,
'remote_path' => '/var/www/html',
'local_path' => '/Users/me/projects/project'

OR

Add this to your .env file:
RAY_HOST=host.docker.internal
RAY_PORT=23517
RAY_REMOTE_PATH=/var/www/html
RAY_LOCAL_PATH=/Users/me/projects/project

4) Add '127.0.0.1 host.docker.internal' to /etc/hosts

Discussion (0)

Forem Open with the Forem app