skip to Main Content

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


  1. Chosen as BEST ANSWER

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

    /var/logs/cfn-init.log
    

  2. 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
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search