Where to find logs about migrations errors

Viewed 26

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

You can get a stack trace of errors by using the vvv flag:

php artisan migrate -vvv

You can also use migrate:status:

php artisan migrate:status

Well I found it. It's on the EC2 instance. The log file is :

/var/logs/cfn-init.log
Related