Let’s suppose we’re deploying a Laravel application on AWS Elastic Beanstalk.
Let’s suppose an error occur while migrating the database. By the way, the migrate command is put in .config file in .ebextensions folder like this :
container_commands:
01migrations:
command: "php artisan migrate"
My question is where to find the logs related to the error ? I downloaded all the logs but I don’t find anything talking about any error while migrating !
2
Answers
Well I found it. It's on the EC2 instance. The log file is :
You can get a stack trace of errors by using the
vvv
flag:You can also use
migrate:status
: