Host a Laravel App on AWS Elastic Beanstalk with CI/CD Integration

Host a Laravel App on AWS Elastic Beanstalk with CI/CD Integration

Learn how to host your Laravel application on AWS Elastic Beanstalk with CI/CD integration for quick development. #AWS #ElasticBeanstalk #Laravel #PHP #CICD #CloudComputing

Intro: (0:00)
Setup: (0:17)
Steps: (1:12)
Installation Laravel App: (1:42)
Start Server: (3:47)
AWS CodeCommit Setup: (4:11)

I added a follow-up video to this one, to respond to all of your questions below!
Here is the video:

Thanks for your questions!

31 thoughts on “Host a Laravel App on AWS Elastic Beanstalk with CI/CD Integration

  1. Hi Bradley,
    Thank you for the tutorial. I went all the steps until I changed the configuration to point to /public folder. Right after that, instead of seeing the application home page, I get 404 not found! Any idea? Thanks.

  2. Thanks for awesome tutorial. One question I would like to ask.

    With Laravel I use React as frontend. How should I setup to install the npm packages?

    I followed the steps you have mentioned but it is giving error of "Uncaught SyntaxError: Unexpected token '<'"

  3. Great stuff!! Just realised I've been doing setup on hostgator shared hosting & bitbucket, except with myself as "manual-pipeline" …hehe 🙂

  4. Thanks for the great video. But I have some questions below..
    1. How I can get the env variable without pushing .env into the repository?
    2. How to run artisan command on the server? Sometime we need to run php artisan like migration, seeder, clear cache and so on.

    Thank you, I'll wait the next episode 🙂

  5. HI .. great video! But I have a question. i have a seeder.. how can I run it? and also how to check the database data? Im just new in using AWS..

  6. the repository with .env its ok but…
    i have a problem in the deploy process in Codepipeline, this fails with this error:
    Error en la ejecución de la acción

    Deployment completed, but with errors: During an aborted deployment, some instances may have deployed the new application version. To ensure all instances are running the same version, re-deploy the appropriate application version. Failed to deploy application. Unsuccessful command execution on instance id(s) 'i-09e8066a02d941470'. Aborting the operation. [Instance: i-09e8066a02d941470] Command failed on instance. Return code: 1 Output: (TRUNCATED)… SQLSTATE[HY000] [2002] No such file or directory Script @php artisan package:discover –ansi handling the post-autoload-dump event returned with error code 1. Hook /opt/elasticbeanstalk/hooks/appdeploy/pre/ failed. For more detail, check /var/log/eb-activity.log using console or EB CLI.

    and when i have this issue at the same time my enviroment in the Elastic Beanstalk change the status to
    degraded i try with php 7.2 and 7.3 but nothing.
    i dont know how solve it.

  7. I have been looking around for all this information all day, thank you for making this video it was SUPER helpful!!!

  8. Hey Bradley. Is deploying code through GitHub using codepipeline is same like codecommit?? Just like you git push code after making any changes in env file and it automatically updates on aws codepipeline. Is it same with GitHub?

  9. Great video!! So is there any way to see phpmyadmin on aws to check with the tables. Also, can you make a video on how to connect with SSH to make migration directly to the server.

  10. great video!!
    when i tey to do the codecommit it show's me this: "You are signed in using a root account. You cannot configure SSH connections for a root account, and HTTPS connections for a root account are not recommended. Consider signing in as an IAM user and then setting up your connection."
    i already sign in as IAM…

  11. Thanks for the great video, you took a concept that seemed complicated and made it simple to understand.

  12. Thank you! Great video. I did a full deploy on aws a week ago the same way, but my problem was with .env file: I didn't commit the file, I've put all my environment variables in beanstalk config but the env var are not read by the laravel, do you know a way to make it work without committing the env file?

  13. This video is so helpful, save a few hours of my time checking on other tutorials. I have been looking on how to implement DevOps strategy with elastic beanstalk for quite sometimes. Between, how should we configure laravel app on nginx? Is it better to configure on nginx than apache in elastic beanstalk?

  14. Great, but there is another very simple way to deploy directly from Elastic Beanstalk, it takes 4 min to config all settings 🙂

Leave a Reply

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