#laravel server responding with general "Server error" message to any request

9 messages · Page 1 of 1 (latest)

median urchin
#

I've downloaded a recent project i made in laravel from github,i ran composer install and everithing downloaded withno error, problem is that when i run php artisan serve to start the server every request i make from my front-end to my back end results in a 500 "server error" response

what can i do to solve this problem?

earnest crater
#

Probably a missing .env file. Look at the error log, it'll contain a stack trace of the error, 500 is just a generic message that there is an exception being thrown somewhere.

median urchin
#

looks that no stacktrace is provided

#

i was also thinking about a .env problem and i also noticed that when i run php artisan migrate it says APP IN PRODUCTION... and asks me if i really want to run the command

upbeat plank
leaden stream
#

Laravel's error logs gets stored in the following directory

path-to-laravel-project/storage/logs/

If you haven't changed the driver settings for laravel then the file would laravel.log

median urchin
#

i found a copy of the project and copy pasted the .env file inside the github download and everithing works now

#

my question now is: What should i change to make.app ready-to-use without including the .env file in the github repo?

earnest crater