Run Laravel php artisan migrate command in AWS Server.

In this tutorial, i will explain how to run php artisan migrate command run without open command line.

You have to open your project which you file in your editor and create a folder name is .ebextensions and into this folder create a file name is deploy.config.


Open You file and put the below code:

container_commands:
  01initdb: 
    command: "php artisan migrate"

So you can directly run this command every time when you upload your project into your AWS server. if you don’t want to run this command manually.

I hope this will help you!

About Dhaval Shah

My name is Dhaval Shah. I'm a PHP developer, entrepreneur and CEO of DAG inventions PVT ltd. I live in India and I love to write tutorials and tips that can help other developers. I am a big fan of PHP, Java-script, JQuery, Laravel, WordPress and Bootstrap.
Follow me on Github / Linkedin

Leave a Reply

Your email address will not be published. Required fields are marked *

Subscribe To Our Newsletter
Enter your email to receive a weekly round-up of our best posts. Learn more!