DEV Community

Discussion on: docker-compose up your entire Laravel + Apache + MySQL development environment.

Collapse
 
manishsharmait52 profile image
manishsharmait52

Hello Sir, I facing 500 server error issue , can you please give me some tips. what happens over there ?

Collapse
 
veevidify profile image
V

The fact that you get a response from the webserver means the docker environment works.

If you get require_once ... vendor/autoload error, then you'd probably missing composer dependencies.

docker exec -it laravel-app bash -c "sudo -u devuser /bin/bash"

gets you inside the container.

devuser@0e382dff6a23:/var/www/html$

then

composer install
php artisan key:generate
php artisan migrate
php artisan config:cache
Collapse
 
manishsharmait52 profile image
manishsharmait52

okay i will check again .

Thank you .