Hi all!
I'm building a new project for my workplace which uses a little bit of reverb. I've been building it on a local/dev server which is working great, and I'm now trying to nail down and document the setup process for a production server. My hope is to have a process documented, effectively (but obviously not exhaustively..):
- Clone the repo
- Configure the web server to serve the new site
- Copy the .env.example to .env
- Run
composer install
- Win....
Where I'm getting stuck currently is with how the production server will get its config for reverb.
So obviously the git repo won't have an active .env file so none of the REVERB_APP_ID, REVERB_APP_KEY, etc values will be set, and neither will it have the reverb.pem certificate file. I haven't been able to figure out how to get these generated fresh for a new production server.
I've tried running php artisan install:broadcasting --reverb (on my example "prod" instance), but from what I can see it doesn't seem to be generating a new certificate or filling out the .env values. (possibly because the broadcast.php config file already exists, and/or the composer dependency already exists)?
Am I going about this the wrong way? What would be the correct way to have Reverb configured on a (let's assume "fresh") production server?
Thanks!