Deploying a Laravel App via Elastic Beanstalk | Amazon Web Services BASICS

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ต.ค. 2024
  • Elastic Beanstalk is a great service to get your web application into the web. This video shows how you can easily use it to deploy a Laravel application which even uses a database!
    Want to learn AWS Serverless apps? Dive into my complete introduction: acad.link/aws-...
    The sample project: github.com/aca...
    Get Composer (for installing dependencies): getcomposer.org/
    More on .ebextensions: docs.aws.amazon...
    Dive into the EB CLI: docs.aws.amazon...
    Elastic Beanstalk Pricing: aws.amazon.com...
    Other useful AWS Articles:
    Getting Started: aws.amazon.com...
    Infrastructure: aws.amazon.com...
    Pricing: aws.amazon.com...
    Want to become a frontend developer? Consider diving into some of my courses:
    Angular vs React vs Vue - Quickstart and Comparison: acad.link/ng-v...
    Ionic + Angular - The Practical Guide: acad.link/ionic
    Angular - The Complete Guide: acad.link/angular
    Vue.js - The Complete Guide: acad.link/angular
    You can follow me on Twitter (@maxedapps), Facebook ( / academindchannel ) or visit our Website (www.academind.com).
    See you in the videos!

ความคิดเห็น • 275

  • @mervinmottian2889
    @mervinmottian2889 2 ปีที่แล้ว

    Great tutorial Max. After watching so many videos on deploying to Beanstalk, your video was the only one that helped me successfully deploy to my Laravel -Vue app to EB.

  • @Crisgonzalez94
    @Crisgonzalez94 ปีที่แล้ว

    Thank you! my english is very basic but i has been can understood your video very well

  • @burak00
    @burak00 7 ปีที่แล้ว +2

    I think there is one thing that should have been considered. Let's say I wanted to run the same code on my local machine and didn't want to change 'config/database.php' everytime I upload. I think to check if the $_SERVER array has 'RDS_*' indices and if not taking the value from .env would be a better practice.

  • @Zentamusic
    @Zentamusic 3 ปีที่แล้ว

    This is the best ever!! still relevant!!

  • @atulpatel2045
    @atulpatel2045 3 ปีที่แล้ว

    One of the best instructor on udemy and youtube as well i have learned a lot from your node and react course on udemy which help me alot in my IT carrier thanks MAX..

  • @timfranklin4724
    @timfranklin4724 3 ปีที่แล้ว +1

    This tutorial has helped a lot! One issue I am having is I get a 404 on the /login page. It looks like on load I'm being redirected to the login page, but it's not detecting that view. Has anyone seen this?

    • @МаксимСлободянюк-н9о
      @МаксимСлободянюк-н9о 2 ปีที่แล้ว

      - It works for me with these changes.
      1 AWS - Platform: PHP 7.4 running on 64bit Amazon Linux 2/3.3.7
      Configure more options->
      Proxy Server
      Apache
      Document root
      /public
      2 Update PHP version -> php 7.4, composer.json:
      "require": {
      "php": ">=7.4",
      +
      composer install
      3 In .env:
      APP_ENV=production
      4
      In config\database.php:
      'strict' => false,
      5
      Add in app/User.php:
      protected $table= "users";
      6
      In .ebextensions/init.config use the "--force" flag.
      container_commands:
      01initdb:
      command: "php artisan migrate --force"

  • @alexchromets
    @alexchromets 5 ปีที่แล้ว

    Great explanation. As always. Thank you, Max!

  • @hackroot7363
    @hackroot7363 5 ปีที่แล้ว +6

    I'm using Windows. I have the same error as 26:21 but I don't have MAC OS folder hidden somewhere

    • @nickkrian6566
      @nickkrian6566 4 ปีที่แล้ว +1

      you are having any .git .idea? Dont include them

  • @LoganMcLain
    @LoganMcLain 3 ปีที่แล้ว

    Great explanation, helped me a lot

  • @datla1906
    @datla1906 ปีที่แล้ว

    Thats a great video. Could you please make a video on how to use ebextension to enable sticky sessions. Thanks

  • @kamal_9753
    @kamal_9753 2 ปีที่แล้ว

    Awesome! nice and clear, great thanks

  • @luigiarmandoriina5673
    @luigiarmandoriina5673 3 ปีที่แล้ว +1

    for those who have problem on compose install due to php ver 8+.
    -open compose file with a text editor
    -with search command look for ""php":
    -you should have somethings like ""php": ""[version]"
    -change that line with "php": "^7.3|^8.0"
    -repeat for every ""php": ""[version]" you find in that file, they always are under a ""require":{//statement}
    don't forget comma if necessary

  • @Micropulso
    @Micropulso 5 ปีที่แล้ว +6

    Thank you Max!! I spended almost all day trying to figure out this topic... finally you have the solution, simple and clear!!
    I follow your Udemy courses, and let me say that you put an a awesome vibe in your work :D

    • @academind
      @academind  5 ปีที่แล้ว +1

      That's so amazing to hear, thank you very much! :-)

  • @unrising3853
    @unrising3853 4 ปีที่แล้ว

    This was awesome! Thank you so much!

  • @FabioLima-ot5lv
    @FabioLima-ot5lv 4 ปีที่แล้ว +2

    Salvou minha vida XD, thank you!!!

  • @karthikeyanjayabalan8949
    @karthikeyanjayabalan8949 6 ปีที่แล้ว +4

    Hi all, give correct tab space while creating init.config file. Then it will work.
    container_commands:
    01initdb:
    command: "php artisan migrate"

  • @nibelungueros
    @nibelungueros 6 ปีที่แล้ว +3

    If i'm on Windows, what's the equivalent to the __MACOSX/\* command to zip (or how do i do it with the winrar exe)
    Help welcome.

    • @NimitBhargava
      @NimitBhargava 5 ปีที่แล้ว +1

      If you are on Windows, then this issue won't come.
      If you still have this folder in your directory, just delete it and create a zip (from Windows default software or winrar)

  • @devyanimehta2289
    @devyanimehta2289 4 ปีที่แล้ว +1

    zip warning: name not matched: __MACOSX/*

  • @clementchooi1771
    @clementchooi1771 6 ปีที่แล้ว +2

    I getting this error, SQLSTATE[42S02]: Base table or view not found: 1146 Table 'ebdb.users' doesn't exist (SQL: select * from `users` where `email`. Any idea? Thanks!

    • @NimitBhargava
      @NimitBhargava 5 ปีที่แล้ว +1

      Looks like php artisan migrate command is not run.. you might want to watch from 22:10

    • @tylerchretien5770
      @tylerchretien5770 5 ปีที่แล้ว +2

      did you ever fix this i have the same problem

    • @МаксимСлободянюк-н9о
      @МаксимСлободянюк-н9о 2 ปีที่แล้ว

      - It works for me with these changes.
      1 AWS - Platform: PHP 7.4 running on 64bit Amazon Linux 2/3.3.7
      Configure more options->
      Proxy Server
      Apache
      Document root
      /public
      2 Update PHP version -> php 7.4, composer.json:
      "require": {
      "php": ">=7.4",
      +
      composer install
      3 In .env:
      APP_ENV=production
      4
      In config/database.php:
      'strict' => false,
      5
      Add in app/User.php:
      protected $table= "users";
      6
      In .ebextensions/init.config use the "--force" flag.
      container_commands:
      01initdb:
      command: "php artisan migrate --force"

  • @MrMarkusbotha
    @MrMarkusbotha 4 ปีที่แล้ว +1

    Doing your vue.js course on Udemy. Very good course. Thank you

  • @calixtesimeon5111
    @calixtesimeon5111 5 ปีที่แล้ว +1

    Im guessing, I am the only one with a view issue.... If anyone can help, my views are not being found on aws sever.. it is driving me nuts because it works on localhost. I used all the common artisan commands config:clear view:clear
    route:clear cache:clear

  • @angelarucci149
    @angelarucci149 7 ปีที่แล้ว

    This was great, thanks!

    • @academind
      @academind  7 ปีที่แล้ว

      Thanks so much Angela!

  • @anonymous___8613
    @anonymous___8613 6 ปีที่แล้ว

    save my time, thanks Man! keep it up!

    • @academind
      @academind  6 ปีที่แล้ว

      So happy to read that, thanks a lot for your awesome feedback! I'll try my best to keep it up :)

    • @anonymous___8613
      @anonymous___8613 6 ปีที่แล้ว

      @@academind it would be awesome if u Will also do it with Pipeline

  • @gjangale6003
    @gjangale6003 4 ปีที่แล้ว +1

    i am getting health status as degraded.not able to add project successfully

    • @МаксимСлободянюк-н9о
      @МаксимСлободянюк-н9о 2 ปีที่แล้ว

      - It works for me with these changes.
      1 AWS - Platform: PHP 7.4 running on 64bit Amazon Linux 2/3.3.7
      Configure more options->
      Proxy Server
      Apache
      Document root
      /public
      2 Update PHP version -> php 7.4, composer.json:
      "require": {
      "php": ">=7.4",
      +
      composer install
      3 In .env:
      APP_ENV=production
      4
      In config/database.php:
      'strict' => false,
      5
      Add in app/User.php:
      protected $table= "users";
      6
      In .ebextensions/init.config use the "--force" flag.
      container_commands:
      01initdb:
      command: "php artisan migrate --force"

  • @jingguojiang4069
    @jingguojiang4069 7 ปีที่แล้ว +1

    I got 500 error? How to solve this. My app works fine on my local machine (MAMP).

  • @MrSydadder
    @MrSydadder 5 ปีที่แล้ว

    Great work...

  • @adrianhunterdes
    @adrianhunterdes 2 ปีที่แล้ว +1

    Thank you Max, its a great video which is really helpful. Recently, when i try to deploy Laravel to AWS, i always have "ELB processes are not healthy on all instances.
    ELB health is failing or not available for all instances." errors. Not sure whether does that happen to you as well.

    • @МаксимСлободянюк-н9о
      @МаксимСлободянюк-н9о 2 ปีที่แล้ว

      - It works for me with these changes.
      1 AWS - Platform: PHP 7.4 running on 64bit Amazon Linux 2/3.3.7
      Configure more options->
      Proxy Server
      Apache
      Document root
      /public
      2 Update PHP version -> php 7.4, composer.json:
      "require": {
      "php": ">=7.4",
      +
      composer install
      3 In .env:
      APP_ENV=production
      4
      In config\database.php:
      'strict' => false,
      5
      Add in app/User.php:
      protected $table= "users";
      6
      In .ebextensions/init.config use the "--force" flag.
      container_commands:
      01initdb:
      command: "php artisan migrate --force"

  • @asishb
    @asishb 3 ปีที่แล้ว

    I didn't have any idea that you (Max) have courses on Laravel !!
    Btw, are there free hosting servers to host my hobby projects?

  • @ultravidz
    @ultravidz 6 ปีที่แล้ว +1

    Excellent very helpful

    • @academind
      @academind  6 ปีที่แล้ว +1

      Thanks so much for your comment!

  • @alexnezhynsky9707
    @alexnezhynsky9707 6 ปีที่แล้ว +1

    I think it should be "production" not "prod", and also I'd set debug to false so it doesn't report error stack traces in prod.

  • @LalatenduSwain
    @LalatenduSwain 3 ปีที่แล้ว +1

    Hi ,
    I'm getting 500
    SERVER ERROR , Please any suggestion ?

    • @МаксимСлободянюк-н9о
      @МаксимСлободянюк-н9о 2 ปีที่แล้ว

      - It works for me with these changes.
      1 AWS - Platform: PHP 7.4 running on 64bit Amazon Linux 2/3.3.7
      Configure more options->
      Proxy Server
      Apache
      Document root
      /public
      2 Update PHP version -> php 7.4, composer.json:
      "require": {
      "php": ">=7.4",
      +
      composer install
      3 In .env:
      APP_ENV=production
      4
      In config/database.php:
      'strict' => false,
      5
      Add in app/User.php:
      protected $table= "users";
      6
      In .ebextensions/init.config use the "--force" flag.
      container_commands:
      01initdb:
      command: "php artisan migrate --force"

  • @rachnab4557
    @rachnab4557 6 ปีที่แล้ว +1

    if anyone got an error of the sort: " Fatal error: require(): Failed opening required '/Users/Study/Downloads/laravel-simple-blog-master/bootstrap/../vendor/autoload.php' (include_path='.:') in /Users/Study/Downloads/laravel-simple-blog-master/bootstrap/autoload.php on line 17 " --> this is what worked for me : run "composer install" and then run "composer auto-load" . I already had composer, PHP and brew in my system so skipping those steps and directly running the php artisan key:generate command gave me error. For those who are working on a Mac and need all the instructions for installing PHP and Composer (and brew) , go to this link --> gist.github.com/rachnabalani/e80eb8a81f6c92a1e692f3b0136b0234

  • @JuanMulford
    @JuanMulford 5 ปีที่แล้ว +1

    Dude, I really like your videos (even Udemy) but there is always a point where I lost you. Ex. I want to know about AWS (the intention of this series), so lets' suppose I don't know anything about Laravel, and let's suppose I want to learn. You keep using MAC I have no idea how to install/unzip composer in Windows. I just got stuck from minute 5:00.

  • @sheraz8504
    @sheraz8504 4 ปีที่แล้ว +2

    i am getting the follow error can anyone help me
    "commands" in configuration file .ebextensions/init.config in application version mathstutorhelp-source-1 must be a map. Update "commands" in the configuration file.

  • @dropmygift
    @dropmygift 7 ปีที่แล้ว +1

    Hi there, i tried the method of using .ebextensions to run `php artisan migrate`, but it didn't seem to work, but the application was deployed. i followed your instructions exactly.

    • @dropmygift
      @dropmygift 7 ปีที่แล้ว +1

      [Instance: i-0f6725db3360149a9] Command failed on instance. Return code: 1 Output: [Illuminate\Database\QueryException] SQLSTATE[HY000] [2002] No such file or directory (SQL: select * from inform ation_schema.tables where table_schema = ebdb and table_name = migrations) [PDOException] SQLSTATE[HY000] [2002] No such file or directory. container_command 01initdb in .ebextensions/init.config failed. For more detail, check /var/log/eb-activity.log using console or EB CLI.

    • @hassanmahmood2704
      @hassanmahmood2704 6 ปีที่แล้ว +1

      I'm having the same problem, does anyone know how to fix this?

    • @МаксимСлободянюк-н9о
      @МаксимСлободянюк-н9о 2 ปีที่แล้ว

      - It works for me with these changes.
      1 AWS - Platform: PHP 7.4 running on 64bit Amazon Linux 2/3.3.7
      Configure more options->
      Proxy Server
      Apache
      Document root
      /public
      2 Update PHP version -> php 7.4, composer.json:
      "require": {
      "php": ">=7.4",
      +
      composer install
      3 In .env:
      APP_ENV=production
      4
      In config/database.php:
      'strict' => false,
      5
      Add in app/User.php:
      protected $table= "users";
      6
      In .ebextensions/init.config use the "--force" flag.
      container_commands:
      01initdb:
      command: "php artisan migrate --force"

  • @sandraseifelmasseh9160
    @sandraseifelmasseh9160 3 ปีที่แล้ว +1

    it addes edb to table names so i got error edb.users table doesn't exist how can i fix this?

    • @МаксимСлободянюк-н9о
      @МаксимСлободянюк-н9о 2 ปีที่แล้ว

      - It works for me with these changes.
      1 AWS - Platform: PHP 7.4 running on 64bit Amazon Linux 2/3.3.7
      Configure more options->
      Proxy Server
      Apache
      Document root
      /public
      2 Update PHP version -> php 7.4, composer.json:
      "require": {
      "php": ">=7.4",
      +
      composer install
      3 In .env:
      APP_ENV=production
      4
      In config/database.php:
      'strict' => false,
      5
      Add in app/User.php:
      protected $table= "users";
      6
      In .ebextensions/init.config use the "--force" flag.
      container_commands:
      01initdb:
      command: "php artisan migrate --force"

  • @josegonzalez-jg1kj
    @josegonzalez-jg1kj 4 ปีที่แล้ว +2

    minute 10:16 i configured /public and still 403 forbbiden.

    • @finitebites
      @finitebites 4 ปีที่แล้ว

      Same situation here...
      Haven't found any solution yet. I'll share as soon as I find something.

    • @josegonzalez-jg1kj
      @josegonzalez-jg1kj 4 ปีที่แล้ว +1

      I fix this problem in the configuration in amazon aws, this is because you have a laravel Api and not model view controllet like the example

    • @josegonzalez-jg1kj
      @josegonzalez-jg1kj 4 ปีที่แล้ว +1

      Write to me josegonzalez19891989@gmail.com

    • @finitebites
      @finitebites 4 ปีที่แล้ว

      @@josegonzalez-jg1kj Oh, awesome... let me take a look then... I will email u as soon as possible hehe... Thanks a lot!

    • @josegonzalez-jg1kj
      @josegonzalez-jg1kj 4 ปีที่แล้ว

      @@finitebites Configure Health Check, ping protocol TCP, ping port 80, late but secure

  • @karentutor5470
    @karentutor5470 3 ปีที่แล้ว +1

    Not able to get it to work to see the main page :( Reloaded twice, changed permissions to 777, /public, and even tested a server change server to Apache from Nginx... maybe a PHP 7 - 8 conflict? I am not going to dive in further. ps - my OS is a linux distro ... so maybe that is interfearing? Video is 2017 ... so maybe so underlying breaking changes?
    I used git clone from the repo indicated above. Thank you

    • @МаксимСлободянюк-н9о
      @МаксимСлободянюк-н9о 2 ปีที่แล้ว

      - It works for me with these changes.
      1 AWS - Platform: PHP 7.4 running on 64bit Amazon Linux 2/3.3.7
      Configure more options->
      Proxy Server
      Apache
      Document root
      /public
      2 Update PHP version -> php 7.4, composer.json:
      "require": {
      "php": ">=7.4",
      +
      composer install
      3 In .env:
      APP_ENV=production
      4
      In config/database.php:
      'strict' => false,
      5
      Add in app/User.php:
      protected $table= "users";
      6
      In .ebextensions/init.config use the "--force" flag.
      container_commands:
      01initdb:
      command: "php artisan migrate --force"

  • @mruduladdipalli5417
    @mruduladdipalli5417 4 ปีที่แล้ว +1

    i changed root to /public but showing server error , what should i do?

    • @МаксимСлободянюк-н9о
      @МаксимСлободянюк-н9о 2 ปีที่แล้ว +1

      - It works for me with these changes.
      1 AWS - Platform: PHP 7.4 running on 64bit Amazon Linux 2/3.3.7
      Configure more options->
      Proxy Server
      Apache
      Document root
      /public
      2 Update PHP version -> php 7.4, composer.json:
      "require": {
      "php": ">=7.4",
      +
      composer install
      3 In .env:
      APP_ENV=production
      4
      In config/database.php:
      'strict' => false,
      5
      Add in app/User.php:
      protected $table= "users";
      6
      In .ebextensions/init.config use the "--force" flag.
      container_commands:
      01initdb:
      command: "php artisan migrate --force"

  • @elkinfajardo3187
    @elkinfajardo3187 7 ปีที่แล้ว +2

    Why when i upload and deploy my app is very slowly? We need to change something at configuration?

  • @sebastianromerolaguna7408
    @sebastianromerolaguna7408 3 ปีที่แล้ว

    Is important to upload the vendor folder?

  • @MarjoForcado
    @MarjoForcado 4 ปีที่แล้ว +1

    Why am I getting a 500 after setting the root directory to public?

    • @МаксимСлободянюк-н9о
      @МаксимСлободянюк-н9о 2 ปีที่แล้ว

      - It works for me with these changes.
      1 AWS - Platform: PHP 7.4 running on 64bit Amazon Linux 2/3.3.7
      Configure more options->
      Proxy Server
      Apache
      Document root
      /public
      2 Update PHP version -> php 7.4, composer.json:
      "require": {
      "php": ">=7.4",
      +
      composer install
      3 In .env:
      APP_ENV=production
      4
      In config/database.php:
      'strict' => false,
      5
      Add in app/User.php:
      protected $table= "users";
      6
      In .ebextensions/init.config use the "--force" flag.
      container_commands:
      01initdb:
      command: "php artisan migrate --force"

  • @tiborkovacs7586
    @tiborkovacs7586 6 ปีที่แล้ว +1

    Hi Max!
    Thanks for your tutorial.
    Could you talk about how to set up a Laravel app for AWS with scheduler?
    Thank you!

  • @shahzaibanwar8860
    @shahzaibanwar8860 6 ปีที่แล้ว +1

    very helpful.can u please make a video on modify laravel project (files) on aws server without modify local and than deploy on aws

  • @harshita5364
    @harshita5364 3 ปีที่แล้ว

    Hi! I am trying to deploy a Yii2 application on AWS Elastic Beanstalk. The Application is deployed succesfully but the onclicking any other url, it gives 404 (Not found) error. What could be the issue? I have mentioned the url rules in main.php file under /config. Do i need to anything other than this?

  • @punkuzshah9324
    @punkuzshah9324 6 ปีที่แล้ว +1

    the site refused to connect. why I am getting this?? i made the root as /public. health status OK. but still can't load the web app. says refused to connect

    • @droft1312
      @droft1312 5 ปีที่แล้ว

      Hi! Did you figure it out?

    • @МаксимСлободянюк-н9о
      @МаксимСлободянюк-н9о 2 ปีที่แล้ว

      - It works for me with these changes.
      1 AWS - Platform: PHP 7.4 running on 64bit Amazon Linux 2/3.3.7
      Configure more options->
      Proxy Server
      Apache
      Document root
      /public
      2 Update PHP version -> php 7.4, composer.json:
      "require": {
      "php": ">=7.4",
      +
      composer install
      3 In .env:
      APP_ENV=production
      4
      In config/database.php:
      'strict' => false,
      5
      Add in app/User.php:
      protected $table= "users";
      6
      In .ebextensions/init.config use the "--force" flag.
      container_commands:
      01initdb:
      command: "php artisan migrate --force"

  • @Strike999HD
    @Strike999HD 4 ปีที่แล้ว +1

    Hey, great tutorial, but I'm having a problem. When I deploy the app and configure Document root, I get error 404 on the site. How could i fix this?

    • @sanchitmonga4942
      @sanchitmonga4942 4 ปีที่แล้ว

      I am getting the same error! Can someone please help us out

    • @jesusarevalo9817
      @jesusarevalo9817 4 ปีที่แล้ว

      @@sanchitmonga4942 Could u resolve it?

    • @МаксимСлободянюк-н9о
      @МаксимСлободянюк-н9о 2 ปีที่แล้ว

      - It works for me with these changes.
      1 AWS - Platform: PHP 7.4 running on 64bit Amazon Linux 2/3.3.7
      Configure more options->
      Proxy Server
      Apache
      Document root
      /public
      2 Update PHP version -> php 7.4, composer.json:
      "require": {
      "php": ">=7.4",
      +
      composer install
      3 In .env:
      APP_ENV=production
      4
      In config\database.php:
      'strict' => false,
      5
      Add in app/User.php:
      protected $table= "users";
      6
      In .ebextensions/init.config use the "--force" flag.
      container_commands:
      01initdb:
      command: "php artisan migrate --force"

  • @khurmahmed8078
    @khurmahmed8078 5 หลายเดือนก่อน

    Can't understand, followed the instructions here and over the last 2 weeks I'm being charged for RDS. Have followed the same way with free tier on all ends but am getting charged daily. Any ideas?

  • @agarg1500
    @agarg1500 6 ปีที่แล้ว +1

    Hi, i am getting this error please help me this this
    The configuration file .ebextensions/init.config in application version BloveV2New contains invalid YAML or JSON. YAML exception: Invalid Yaml: while scanning for the next token found character '\t' that cannot start any token in "", line 2, column 1: 01initdb: ^ , JSON exception: Invalid JSON: Unexpected character (c) at position 0.. Update the configuration file.

    • @arthurv9100
      @arthurv9100 6 ปีที่แล้ว +1

      I think its because you have a tab in the file, and it may not contain tabs

    • @rj_1337_
      @rj_1337_ 6 ปีที่แล้ว

      still getting same error. Did you find a solution?

  • @antonetrinh8662
    @antonetrinh8662 6 ปีที่แล้ว +1

    wow great i am sold on AWS. No wonder why AMZN is over 1100/share. hahahaha.

  • @Unclaimed3172
    @Unclaimed3172 5 ปีที่แล้ว

    Followed this tutorial but I am having a problem of my server not showing the page when using AWS Pipeline instead of uploading the code through the zip file. It works if I used the zip file method but doesn't work when using the pipeline .

  • @rckstrbhushan
    @rckstrbhushan 4 ปีที่แล้ว

    Why you didn’t continue this series ?? @max

  • @danielhat4440
    @danielhat4440 3 ปีที่แล้ว

    tks, but In free version could I choose another domain name, cause your url looks a bit long and hard to follow ?

  • @naumce.ivanovski
    @naumce.ivanovski 6 ปีที่แล้ว +1

    Great Video!! Can you please make tutorial for Symfony Framework?

  • @furkhanshaikh116
    @furkhanshaikh116 5 ปีที่แล้ว

    Sir I have Copied the same steps you have mentioned in Video. Sir Everything is Fine But As You have faced the problem at the end of video i.e. Failed To Deploy application and you solved it using MAC TERMINAL. I am Working on Windows So I am Getting same issue sir what command will help me to solve this problem

  • @MikePageDev
    @MikePageDev 4 ปีที่แล้ว

    Hello. First I would like to say I love your videos.
    I have followed your instructions but seem to have a problem. My table are not being created. I only get the migrations table. When checking the logs I get this response: Dropped all tables successfully.
    Migration table created successfully.
    Nothing to migrate.
    I currently have 10 migration files witch include the default files. When I run `php artisan migration:fresh` on my local WAMP it works fine. Any riders where I have gone wrong?

  • @himanshubisht4214
    @himanshubisht4214 5 ปีที่แล้ว

    I got this error, Command failed on instance. Return code: 1 Output: (TRUNCATED)...m -rf /var/app/ondeck + /usr/bin/unzip -d /var/app/ondeck /opt/elasticbeanstalk/deploy/appsource/source_bundle Archive: /opt/elasticbeanstalk/deploy/appsource/source_bundle warning [/opt/elasticbeanstalk/deploy/appsource/source_bundle]: zipfile is empty. Hook /opt/elasticbeanstalk/hooks/appdeploy/pre/01_unzip.sh failed. May you please help me with this.

  • @akshaykhule1906
    @akshaykhule1906 6 ปีที่แล้ว +1

    AWS came up with many new future, we will be glad if you can provide new aws series.

    • @academind
      @academind  6 ปีที่แล้ว

      I got no concrete plans for that at the moment, but we'll see what the future brings :)

  • @fahadshaikh427
    @fahadshaikh427 3 ปีที่แล้ว

    does anybody has idea how to upload laravel app on light sail with Apache?

  • @wvanye
    @wvanye 4 ปีที่แล้ว +1

    I deployed my app on EBS all routes except (/) returns error 404

    • @FlorenceOkosun
      @FlorenceOkosun 3 ปีที่แล้ว

      same here, have you been able to resolve this?

  • @SaladoElFede
    @SaladoElFede 6 ปีที่แล้ว

    Can we see something like this but with Docker containers instead?

  • @MrRiot1992
    @MrRiot1992 6 ปีที่แล้ว +1

    I got this error in the init.config: The configuration file .ebextensions/init.config in application version 1 contains invalid YAML or JSON. YAML exception: Invalid Yaml: while scanning for the next token found character '\t' that cannot start any token in "", line 2, column 1: 01initdb: ^ , JSON exception: Invalid JSON: Unexpected character (c) at position 0.. Update the configuration file., I know that is my tab but in the video clearly said that we have to put a tab, what about that?
    Más información
    RESPONDER

    • @rj_1337_
      @rj_1337_ 6 ปีที่แล้ว +2

      I got the same error did you ever find a solution to this? I did the Mac thing at the end of the video and still getting that error

    • @zykyanastrik1886
      @zykyanastrik1886 4 ปีที่แล้ว

      use 4 spaces instead of tab it will work.

  • @pavanchindala7610
    @pavanchindala7610 3 ปีที่แล้ว

    routes are not working after deploying in the server

  • @AbhishekGupta-yg9hk
    @AbhishekGupta-yg9hk 5 ปีที่แล้ว

    How can we connect the RDS with PhpMyAdmin - Remotely or on the Public Address?

  • @Coloriageinfo1
    @Coloriageinfo1 5 ปีที่แล้ว

    Fucking love you bro. I liked the video before I even started

    • @academind
      @academind  5 ปีที่แล้ว +1

      Thanks a lot for your support Tony, I hope that you also liked the video after watching it!

  • @MrGazzooks
    @MrGazzooks 7 ปีที่แล้ว +1

    I have been waiting for this type of tutorial for a long time. I tried this a while back and it was... let's say... Confusing. Thank you for making it so much more clearer.

    • @academind
      @academind  7 ปีที่แล้ว

      Happy to hear that - and many thanks for your amazing feedback!

  • @atlasapp5877
    @atlasapp5877 7 ปีที่แล้ว +2

    Hi Max! This is by far the greatest tutorial I've seen.
    One question though - After changing the folder to /public in "Configuration" (In AWS), it turned into "Severe" and the link doesn't work (Changed from forbidden to unavailable).
    Do you know what could be the reason to it?
    Thanks, David

    • @scottylego
      @scottylego 6 ปีที่แล้ว

      Compress all the files instead of just the project folder

    • @meenu2511
      @meenu2511 6 ปีที่แล้ว

      I had the same thing, please check if the zipped folder have other folders underneath it and then the laravel files, hope it helps

    • @МаксимСлободянюк-н9о
      @МаксимСлободянюк-н9о 2 ปีที่แล้ว

      - It works for me with these changes.
      1 AWS - Platform: PHP 7.4 running on 64bit Amazon Linux 2/3.3.7
      Configure more options->
      Proxy Server
      Apache
      Document root
      /public
      2 Update PHP version -> php 7.4, composer.json:
      "require": {
      "php": ">=7.4",
      +
      composer install
      3 In .env:
      APP_ENV=production
      4
      In config\database.php:
      'strict' => false,
      5
      Add in app/User.php:
      protected $table= "users";
      6
      In .ebextensions/init.config use the "--force" flag.
      container_commands:
      01initdb:
      command: "php artisan migrate --force"

  • @banzeirao
    @banzeirao 3 ปีที่แล้ว +1

    Ok, i cant deploy any version after first deploy

    • @МаксимСлободянюк-н9о
      @МаксимСлободянюк-н9о 2 ปีที่แล้ว

      - It works for me with these changes.
      1 AWS - Platform: PHP 7.4 running on 64bit Amazon Linux 2/3.3.7
      Configure more options->
      Proxy Server
      Apache
      Document root
      /public
      2 Update PHP version -> php 7.4, composer.json:
      "require": {
      "php": ">=7.4",
      +
      composer install
      3 In .env:
      APP_ENV=production
      4
      In config/database.php:
      'strict' => false,
      5
      Add in app/User.php:
      protected $table= "users";
      6
      In .ebextensions/init.config use the "--force" flag.
      container_commands:
      01initdb:
      command: "php artisan migrate --force"

    • @banzeirao
      @banzeirao 2 ปีที่แล้ว +1

      @@МаксимСлободянюк-н9о i made aws solutions arcthect course, now i have an GO lang site runing with Nginx in EC2, much better than beanstalk, sorry fot the bad english

    • @МаксимСлободянюк-н9о
      @МаксимСлободянюк-н9о 2 ปีที่แล้ว

      ​@@banzeirao - I did this to get to know AWS. I am sure that you know best how best. ;)

  • @LavishAggarwal436
    @LavishAggarwal436 2 ปีที่แล้ว

    my routes gives me 404 error. as i have deployed

  • @everestgjonaj
    @everestgjonaj 7 ปีที่แล้ว +2

    How about the data which are in my database tables in my local machine?Lets say i want them to be uploaded as well.

    • @academind
      @academind  7 ปีที่แล้ว +1

      You'll need to connect to the RDS database via mysql and pass the data via SQL commands for example

    • @everestgjonaj
      @everestgjonaj 7 ปีที่แล้ว

      Academind Ok i will try that! You replied just in time thanks a lot!

  • @danielpullara5888
    @danielpullara5888 7 ปีที่แล้ว +1

    Hey There! on Minute 26:00 you show how to remove a hidden file within your init.config file in the terminal using: zip -d (zip file name) __MACOSX/\* I am working on a Windows Machine and can't get the command to work on the Prompt. Is there another way to delete the hidden file? Any Suggestion would be great!

    • @LajosLengyel1
      @LajosLengyel1 7 ปีที่แล้ว +3

      Hey. I got same problem. Use spaces instead of tabs, this will solve your problem.

    • @hemantkumar-km4zt
      @hemantkumar-km4zt 6 ปีที่แล้ว

      Its not working

    • @seafood7559
      @seafood7559 5 ปีที่แล้ว

      @@LajosLengyel1 Thank u!!!

  • @МаксимСлободянюк-н9о
    @МаксимСлободянюк-н9о 2 ปีที่แล้ว

    Thank you SO MUCH!!!

  • @subbuvenkat9229
    @subbuvenkat9229 6 ปีที่แล้ว

    Sir,
    How to use Aws Dynamodb instead of RDS database in Laravel project?

  • @agungcahyakurniawan1460
    @agungcahyakurniawan1460 4 ปีที่แล้ว

    I'm using Windows. I have the same error as 26:21 but I don't have MACOS

  • @nelsonsaake3974
    @nelsonsaake3974 3 ปีที่แล้ว

    thanks max
    great work

  • @GokulakrishnanChennai
    @GokulakrishnanChennai 6 ปีที่แล้ว

    Can you tell me how to config wordpress to aws. I already have a wordpress site, now want to move. I uploaded the files but how to move the database.?

  • @JassielHernandez
    @JassielHernandez 5 ปีที่แล้ว

    Hi, I have a question about the database, there's a way to use an already existing RDS Database that I have in my account?
    And how can I connect the database that Elastic Beanstalk created for my aplication to softwares like MysqlWorkBench, cause I tried to follow the same steps that I normally do when I connect to my database created manually in the RDS Service, with the endpoint as host, and using the user and master password, but can't connect. There's something that I doing wrong?

  • @RaghavJajodia
    @RaghavJajodia 7 ปีที่แล้ว +1

    The best AWS Beanstalk for Laravel tutorial ever!
    Thanks :)

    • @academind
      @academind  7 ปีที่แล้ว

      Thanks so much Raghav, awesome to hear that!

  • @shahzaibanwar8860
    @shahzaibanwar8860 6 ปีที่แล้ว

    i want to add old mysql database in AWS.what should i do?

  • @naciyekarademir6431
    @naciyekarademir6431 6 ปีที่แล้ว

    I have a question. Is there a way to make 2 groups of users? I want to allow free users to post at most twice a day. And, allow paid users to post as many as they want.

  • @tarmac5482
    @tarmac5482 3 ปีที่แล้ว

    This is probably the most *relevant* explanation of Elastic Beanstalk for developers especially for covering database and EB config. No one has covered it better on YT. Saying thank you feels pretty lame in comparison to your effort!

  • @chunito
    @chunito 4 ปีที่แล้ว

    Any Tut for Laravel CI/CD Using Docker Image in Gitlab?

  • @rohitjain4930
    @rohitjain4930 4 ปีที่แล้ว

    Thank Max. Awesome Video. Hope you could cover more use cases of errors which might come up while uploading a larger application with more dependencies. Thanks a lot for doing this.

  • @jeanazar9584
    @jeanazar9584 6 ปีที่แล้ว

    I managed to upload my project following the steps n this video, but i can't get where the local mysql database is migrated with the project, and how what are the steps to import local mysql database to Amazon RDS. Any help is much appreciated.

  • @iampaulvee
    @iampaulvee 6 ปีที่แล้ว

    Getting 'Unsuccessful command execution on instance id(s)' when i deploy. Problem with init.config?

  • @ElomenaIdise
    @ElomenaIdise 6 ปีที่แล้ว

    Being a newbie to cloud computing and web development, I was wondering how I would be able to deploy a laravel app on aws and voila! I got this perfect tutorial from you. I'm however able to hit my app but there is an error when creating the RDS and this happens because the RDS database security group creation fails. I tried creating a security group manually with HTTP inbound open traffic but I get same error. Can you help me on how to resolve it or what the problem is?

  • @thomas-sinkala
    @thomas-sinkala 4 ปีที่แล้ว

    Hi Max, how do I implement DevOp with ElasticBean?
    We intend to public features daily. Any advice here?

  • @vnkpurohit
    @vnkpurohit 6 ปีที่แล้ว

    thanks dude for great video can you please help me i am using mongodb database for my laravel application how can i setup laravel and mongodb on aws beanstalk or ec2

  • @davidmontdajonc6332
    @davidmontdajonc6332 5 ปีที่แล้ว

    Same video but: Deploying Wordpress App vía Elastic Beanstalk?

  • @ProgramandoConNico
    @ProgramandoConNico 6 ปีที่แล้ว +1

    The configuration file .ebextensions/init.config in application version 0.0 contains invalid YAML or JSON. YAML exception: Invalid Yaml: while scanning for the next token found character '\t' that cannot start any token in "", line 2, column 1: 01initdb: ^ , JSON exception: Invalid JSON: Unexpected character (c) at position 0.. Update the configuration file.
    I have this problem, van anyone help me?

    • @guitaro
      @guitaro 5 ปีที่แล้ว +3

      I solved this by using 4 spaces instead of a tab to indent config/database.php

    • @ProgramandoConNico
      @ProgramandoConNico 5 ปีที่แล้ว

      GoTime thanks, i will try that

  • @DilipKumar-rq7ur
    @DilipKumar-rq7ur 3 ปีที่แล้ว

    Amazing video, i loved your brief explanation

  • @rj_1337_
    @rj_1337_ 6 ปีที่แล้ว

    I followed your instructions to remove the MACOSX folders in terminal but when I go to reupload the zip I am still getting the same error

  • @Zaloganon
    @Zaloganon 6 ปีที่แล้ว

    Great Vid as always! But I don't like one thing here. Its about Laravel's configuration files, specifically database.php. I see it is a bit Amazon's dependent. Is there any way to keep it as default and use only the .env file? I would like to only config a .env file for each environment. If I have to do this manually (ssh) is ok for me. Thx!

    • @tblancog
      @tblancog 6 ปีที่แล้ว

      I got the same issue and i'd like to know if there is a way to make that dependent to .env file

  • @Bykv78
    @Bykv78 3 ปีที่แล้ว

    Very clean and straightforward. Thanks a million.

  • @LuisCarlos-jc4hk
    @LuisCarlos-jc4hk 5 ปีที่แล้ว

    Hello Max. Nice tutorial, thank you!! I have a doubt, do you recommend to use codecommit to deploy laravel proyects ?? Thanks!!

  • @alexnezhynsky9707
    @alexnezhynsky9707 6 ปีที่แล้ว

    Also why not exclude vendors from the zip and instead install them through a config script when deploying?

  • @mohamedhelal6186
    @mohamedhelal6186 7 ปีที่แล้ว

    great.. i want get data items from amazon website can you help me ??

  • @gesantop
    @gesantop 3 ปีที่แล้ว

    Thank you man! Your video helped me.

  • @_saurabhshah
    @_saurabhshah 7 ปีที่แล้ว

    Awesome, was waiting for this one since a long time.
    It would be nice if you could show how to add a custom domain and also install phpmyadmin to this

  • @VadimBesedin
    @VadimBesedin 4 ปีที่แล้ว

    Great and very detailed explanation! Huge thank you! You are one of the best coding instructors out there!