Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

evcohen's avatar

Pusher Production

Hi,

I’m developing a single page app using Laravel and AngularJS and I’ve fully implemented pusher into the application on my localhost (using homestead)...Using forge and digital ocean, though, on my live server it isn’t working. Not sure if it has to do with the nginx server or php and don’t know where to start with debugging :/

Sorry for being vague - just need some help!

Thanks!

UPDATE:

I’ve debugged a little and found that locally, App::make(‘Pusher’) is finding the class, but on production it’s producing the error 'Class 'Pusher' not found’

Is this is a problem with composer?

0 likes
2 replies
JeffreyWay's avatar

Did you remember to composer install on your production server?

1 like
evcohen's avatar
evcohen
OP
Best Answer
Level 1

Yes that is part of my deploy script - what I forgot was to composer update on my production server. It started working after that. Thanks!

Please or to participate in this conversation.