Hey guys,
I’m trying to configure Laravel websocket Reverb on the project, but all my attempts went wrong. Could someone tell me some step by step I should do to be able to configure in fly.io?
I am not able to leave php artisan reverb:start running.
Follow my fly.toml
PUSHER_APP_ID='xxxx'
PUSHER_APP_KEY='xxxx'
PUSHER_APP_SECRET='xxxx'
PUSHER_PORT=443
PUSHER_SCHEME='https'
PUSHER_APP_CLUSTER='mt1'
VITE_APP_NAME="${APP_NAME}"
VITE_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
VITE_PUSHER_HOST="${PUSHER_HOST}"
VITE_PUSHER_PORT="${PUSHER_PORT}"
VITE_PUSHER_SCHEME="${PUSHER_SCHEME}"
VITE_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
QUEUE_CONNECTION='sync'
CACHE_DRIVER='array'
BROADCAST_DRIVER='reverb'
BROADCAST_CONNECTION='reverb'
REVERB_SERVER='reverb'
REVERB_APP_ID=xxxx
REVERB_APP_KEY='xxxx'
REVERB_APP_SECRET='xxxx'
REVERB_HOST="my-project.fly.dev"
REVERB_PORT=443
REVERB_SERVER_PORT=8081
REVERB_SCHEME='https'
VITE_REVERB_APP_KEY="${REVERB_APP_KEY}"
VITE_REVERB_HOST="${REVERB_HOST}"
VITE_REVERB_PORT="${REVERB_PORT}"
VITE_REVERB_SCHEME="${REVERB_SCHEME}"