How to deploy Python Flask application on AWS EC2 Instance

Поділитися
Вставка
  • Опубліковано 12 лис 2024

КОМЕНТАРІ • 40

  • @practicesession-dn7vv
    @practicesession-dn7vv 3 місяці тому +2

    1. Thanks for the fantastic tutorial on deploying Flask to AWS EC2!
    2. I followed the step-by-step guide, and it was clear and easy to follow.
    3. The detailed coverage on setting up the EC2 instance and running the Flask app with Gunicorn was spot on.
    4. Your troubleshooting tips and best practices were incredibly helpful.
    5. I successfully deployed the app and accessed it as shown in the video. Haha, it worked great!
    6. Thanks a lot, man! Your guide was a lifesaver.

    • @PreciousPalesa-fs6fe
      @PreciousPalesa-fs6fe Місяць тому

      Hi can you help with this i did evry step however on the browser it says can't reach this side

  • @sahilamin219
    @sahilamin219 9 місяців тому +2

    HELPED ME GET MY FIRST APP RUNNING :) THANKS

  • @maheshkumarsg3436
    @maheshkumarsg3436 Рік тому +1

    Thank you very much I was able to deploy my app using this

  • @roshan83564
    @roshan83564 Рік тому +1

    Awesome. Thank you for the tutorial

  • @laxmikantparate8115
    @laxmikantparate8115 10 місяців тому +1

    Thank you so much sir

  • @dhanasekare6384
    @dhanasekare6384 3 місяці тому +1

    I deployed the application but i can't able to access the api in outside of server

  • @chrisvinod5937
    @chrisvinod5937 4 дні тому +1

    how to do the deployment of a python-flask app which is on github?

    • @rajkkapadia
      @rajkkapadia  4 дні тому

      Set the SSH key generated from the EC2 in GitHub, pull the desired branch, run the application...

  • @KavinduDharmasiri
    @KavinduDharmasiri 2 місяці тому +1

    tnx man

  • @weebandkeeb1834
    @weebandkeeb1834 6 місяців тому +1

    Thanks dude, you saved my life!

  • @willp8681
    @willp8681 9 місяців тому +1

    How did you navigate to the ec2 user directory in the terminal (at 9:20)? I am on mac and can't figure out how to navigate there to run those commands.

    • @rajkkapadia
      @rajkkapadia  9 місяців тому

      Use the cd command to change the directory...

  • @teamkuware3647
    @teamkuware3647 9 місяців тому +1

    Awesome . Thank you for the tutorial . Facing a Problem . "/" endpoint is working but other endpoints from app.py are now working. What Could be the issue ?

    • @rajkkapadia
      @rajkkapadia  9 місяців тому

      I am not sure about the issue, if you can describe the issue in the GitHub repository, I will look into that...

  • @LuisRodriguez-j5n
    @LuisRodriguez-j5n 9 місяців тому +1

    I followed the steps. Can connect via ssh and filezilla. Cant launch the hello world app though. Says the site cant be reached. Ive verified that I am using the correct Public IP adress and have the correct security rule group setup. Anything else I can check?

    • @rajkkapadia
      @rajkkapadia  9 місяців тому

      Check ✔️ of you have exposed the port on which the application is running...

    • @sysadmin9396
      @sysadmin9396 8 місяців тому +1

      I ended up just starting from scratch and using a Ubuntu instance. Also used gunicorn and nginx. It works with a simple hello world application , but for a llm AI chatbot application it does not. Do you have any videos on how to build a more complex Python flask AWS application?

    • @sysadmin9396
      @sysadmin9396 8 місяців тому +1

      Hey! Do you know how to setup multiple users to access one llm via flask sessions?

  • @PreciousPalesa-fs6fe
    @PreciousPalesa-fs6fe Місяць тому +1

    Good day sir i need help. I followed every step and it shows that the app is running, however when i go to the browser it says this site can't be reached

    • @rajkkapadia
      @rajkkapadia  Місяць тому

      Expose the port on which the application is running, from the security group...

    • @PreciousPalesa-fs6fe
      @PreciousPalesa-fs6fe Місяць тому

      @@rajkkapadia i did that sir i followed ur every step. On the terminal its running but wen i go to the browser it says can't reach this side. Please hlp how can i get in contact. I can share my screen for ur assistance

  • @Nature-mh2rh
    @Nature-mh2rh Рік тому +1

    Hi, how to do this in production env? Like if a user visits the url, then he sees the app? (Without us running the app manually)

    • @rajkkapadia
      @rajkkapadia  Рік тому

      You can deploy the application on a server... like Render, there is a video on my UA-cam channel as well...

  • @thenameisnigel
    @thenameisnigel 11 місяців тому +1

    How do you run the app in daemon mode? What command do you use?

    • @rajkkapadia
      @rajkkapadia  11 місяців тому

      Either you create a Dockerfile or you can run it using -d for daemon mode...

  • @DanyMaorMico
    @DanyMaorMico Рік тому +1

    Awesome, do you have a guide on how to connect my domain to the site I uploaded?

    • @rajkkapadia
      @rajkkapadia  Рік тому

      I think there is documentation about this on AWS, that will help...

  • @Maurice-W
    @Maurice-W Рік тому +1

    bien

  • @moamenmohameed1346
    @moamenmohameed1346 8 місяців тому +1

    What terminal you are using? Is it Linux or Ubuntu based ? Does any one knows ?

  • @iwillbeback101
    @iwillbeback101 Рік тому +1

    How to run it without a port number?

    • @rajkkapadia
      @rajkkapadia  Рік тому

      I am not sure you can run a server without a port...

  • @rameshlanke5735
    @rameshlanke5735 Рік тому +1

    I did all and unable to access my app using the link
    It is running in the terminal well but not in the url
    Can you please help me

    • @rajkkapadia
      @rajkkapadia  Рік тому

      This is a tricky part, you need two things, one public ip address, and two expose the port...

    • @rameshlanke5735
      @rameshlanke5735 Рік тому

      Thanks for your reply. I will try and let you know.

    • @djohnworthy1040
      @djohnworthy1040 Рік тому

      @@rameshlanke5735 Did you do it?

    • @biswajitdash910
      @biswajitdash910 5 місяців тому +1

      @@rajkkapadia Sir, i did that only to no avail.