Laravel Reverb Plugin
Introduction
VitoDeploy provides a first party plugin to setup Laravel Reverb on your server.
Supported Web Servers
- Nginx
- Caddy
Supported site types
- Laravel
Supported Methods
You can setup Laravel Reverb on your server in one of the following ways:
How it works
Vito will use your Laravel project to run a worker command to start the Laravel Reverb server. Then it will modify your site's virtual host configuration to reverse proxy requests to your Laravel Reverb instance.
/app and /apps to your Laravel Reverb instance.If your app already using those paths, You will need to use the Site Type method instead.
Installation
Admin -> Plugins and select Laravel Reverb plugins in the Official tab.Enable as a site feature
Features side menu item, and Enable the Laravel Reverb feature.When enabling, you will need to provide the following information:
Port: The port that your Laravel Reverb instance will run on. Make sure this port is not used by any other service on your server.
The port won't be exposed to internet, it will be used internally by the web server to proxy requests to your Laravel Reverb instance.
php artisan reverb:start --host=0.0.0.0 --port=REVERB_PORT. You can change it if you have a custom command to start your Laravel Reverb instance.The port on the command should match the port you provided above.
0.0.0.0Enable as a site type
After installing the plugin, There will be a new site type appearing when you're selecting a site type to create a new site.
Laravel Reverb site type, and provide the same information as the site feature method.REVERB_HOST in both sites (Laravel and Reverb) to point to the domain of the Reverb website.Example Project
This simple Laravel project demonstrates how to use Laravel Reverb with VitoDeploy.
Uninstall
Admin -> Plugins and you can find the Laravel Reverb plugins in the Installed tab and you can uninstall it.