Search code examples
laravelamazon-web-servicesloggingamazon-elastic-beanstalkdatabase-migration

Where to find logs about migrations errors


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 !


Solution

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

    /var/logs/cfn-init.log