Friday, December 31, 2021

[FIXED] How do i run 'composer' command via SSH?

Issue

I want to reload my project's custom classes in Laravel so they become accessible, but on a shared hosting enviroment. To my understanding, so far, locally, I've been achieving the desired by using this command:

composer dump-autoload

however, running that via putty's SSH gives me:

-bash: composer: command not found

Any idea?


Solution

You have to install composer on the remote machine that your are ssh'ing to. You can find installation instructions on the composer homepage.



Answered By - Jarlskov

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.