@atieh-mokhtary check the log for any errors
Getting Error 500 after composer update from ssh
Hi every one,
I used to use forge for deploying my laravel application to production. I recently deregisted forge and I wanted to deploy via ssh to ubuntu server on my own.
I did composer update and I pull changes to my server via ssh; but after these my application started to give error 500. I did every thing I searched may be useful such as commands below but nothing worked. does any one know why am I facing is this error? in local environment every thing works properly and my laravel project worked properly before ssh and composer update.
these are the steps I have go through but nothing worked:
-
deleting vendor folder and reinstalling composer
-
changing permisions for bootstrap and also for the whole project :
sudo chgrp -R ww- data storage bootstrap / cache sudo chmod -R ug+rwx storage bootstrap / cache
-
run composer dump-autoload
-
php artisan config:cache
-
composer update and sudo composer update
-
I also tried these commands but none of them worked:
php artisan route:clear php artisan view:clear php artisan config:cache php artisan cache:clear php artisan config:clear
I am using laravel 8 my .env file also exists and every thing are set there
when I turn on debug mode the error of the page is like this: Target class [hash] does not exist.
please helpme if any one has any experience on this problem.
Please or to participate in this conversation.