Heroku Alternative | Learn to deploy Python application on Render | Step by step deployment guide

Поделиться
HTML-код
  • Опубликовано: 10 сен 2024
  • Learn to deploy your Python Flask application on Render, a Heroku alternative.
    Hi everyone, you want to deploy your Python application on a server, a few days ago the way to go was Heroku, since Heroku has stopped free services, Render has emerged as a easy solution.
    Important links:
    Render - render.com/
    Github - github.com/
    Git download - git-scm.com/do...
    Python doanload - www.python.org...
    Get the Demo code -
    *Give a start*
    github.com/Raj...
    You can contact me to build Chatbot and AI/ML/DL work.
    My Fiverr profile - www.fiverr.com...
    My Upwork profile - www.upwork.com...
    My LinkedIn profile - / rajkkapadia
    You can share your views on this video in the comment section.
    If you like my work, subscribe to my channel for more new videos.
    Enjoy the life, Feel the music.
    Peace.

Комментарии • 100

  • @LuKeBf
    @LuKeBf Год назад +5

    i watched your other video about chatgpt whatsapp bot and then this one to deploy it on render! it works great, thank you so much for this!!

  • @manish-mk
    @manish-mk Год назад +2

    Thank you so much Sir!
    This world needs more service from persons like you.
    Again, big thank you 😊

  • @mohammedfaraazahmed2234
    @mohammedfaraazahmed2234 Год назад +3

    You literally saved me from loosing my mind today!! thanks a lot dude!
    💙

  • @viacheslavgurov4371
    @viacheslavgurov4371 Год назад +3

    Thanks for sharing. Good job. I did a first-ever deploy in my life)

  • @reima3
    @reima3 Год назад +2

    dude, thanks for do the video, nobody in spanish (my native language) was do this video, so i search it in english and i saw just i was need it and in python.
    It will good that, you make a video about how to upload, the project, correctly in github
    and thanks so much again for this video

  • @roddy_21_25
    @roddy_21_25 10 месяцев назад +1

    Thanks for all!!! :)

  • @codevanie-misery
    @codevanie-misery Год назад +1

    WHY EVERYONE USING FLASK IS NOT ON WINDOWS? I CAN'T FIND ANY FIXES ON WINDOWS PROBLEMS

  • @Fuzzify
    @Fuzzify Год назад +3

    For anyone wondering gunicorn is not supported for windows and you will have to use an alternative wsgi

    • @rajkkapadia
      @rajkkapadia  Год назад +1

      Thank you for the help...

    • @Fuzzify
      @Fuzzify Год назад

      @@rajkkapadia no problem. Great tutorial!

    • @Eng-py5yh
      @Eng-py5yh Год назад +2

      Please explain how can I use it instead of gunicorn

  • @mdctw8361
    @mdctw8361 Год назад +2

    Need Your comments: When deploy got an error :
    Mar 25 11:02:06 PM ==> Starting service with 'gunicorn app:app'
    Mar 25 11:02:06 PM bash: gunicorn: command not found

    • @rajkkapadia
      @rajkkapadia  Год назад

      Make sure the gunicorn package is there in the requirements file...

    • @mdctw8361
      @mdctw8361 Год назад +1

      right now it is ok

  • @grahampaul3663
    @grahampaul3663 6 месяцев назад +2

    i tried rendering a python web app without the app.py and render keeps asking for it

    • @rajkkapadia
      @rajkkapadia  6 месяцев назад

      gunicorn yourfilename:app --host 0.0.0.0:5000

  • @shrutichaturvedi9256
    @shrutichaturvedi9256 Год назад +3

    Sir, I am getting error: Module Named " fcntl " not found whenever I try to run "gunicorn app:app" and gunicorn library is already included in my requirements.txt . What should I do now?
    Please help.

    • @rajkkapadia
      @rajkkapadia  Год назад +1

      Make sure your file that you want to run is app.py also double check all the dependencies are there in the requirements file...

    • @PavanKumar-uw7si
      @PavanKumar-uw7si Год назад +2

      Even i am getting the same error, did you got this error sorted?

    • @rajkkapadia
      @rajkkapadia  Год назад +1

      @@PavanKumar-uw7simake sure you understand the command gunicorn app:app, here the first app is the file that you want to run, so if the file you want to run is main.py the your command will be gunicorn main:app

    • @PavanKumar-uw7si
      @PavanKumar-uw7si Год назад +1

      @@rajkkapadia Yeah yeah , i understood sir , i followed the same naming practice, the issue is with the OS i guess, its troubling in windows, do let us know if you know to tackle this in windows, It would be helpful for many

    • @rajkkapadia
      @rajkkapadia  Год назад +1

      @@PavanKumar-uw7si Windows is always tough for development...

  • @NitishKumar-xt6hc
    @NitishKumar-xt6hc Год назад +1

    all thing is good but the main problem is with requirements.txt file :( when you create your own project

  • @smritiagarwal56
    @smritiagarwal56 Год назад +2

    it shows ftcl error in guicorn app:app

    • @rajkkapadia
      @rajkkapadia  Год назад +1

      Make sure your python file name is app.py

  • @kaushikjoshi8191
    @kaushikjoshi8191 Год назад +2

    Sir, i have one error "ModuleNotFoundError: No module named 'fcntl'" i have seen many solution of this error but this Module 'fcntl' didn't support Windows OS as i seen your video u are running the app on windows so please provide solution on this error. How you have solve this error
    I have seen comments below but not satisfied with the comments plzzz give the solution on this error 'fcntl'

    • @rajkkapadia
      @rajkkapadia  Год назад

      Yes, many people are facing this issue fcntl, let me see what I can do in this matter...

    • @thessaurabh
      @thessaurabh Год назад

      I was encountering the same issue, but later I found out that Gunicorn is for Linux. So, I ran the application using 'flask run' on my machine. Then, on the page of rendering, I followed the steps to use Gunicorn: 'gunicorn app:app', as shown in the video. As a result, I have successfully deployed my Flask site.

    • @biancamaxino
      @biancamaxino 4 месяца назад

      @@thessaurabh what did you do to make the gunicorn app:app worked?
      I have the same issue.
      "no module named fcntl"...

  • @nehaverma3550
    @nehaverma3550 Год назад +3

    Sir! could you please make the video how to deploy django project on render.

    • @rajkkapadia
      @rajkkapadia  Год назад

      You can follow my Python tutorial and in the start command you write python manage.py runserver

  • @user-rk9ei2ki8t
    @user-rk9ei2ki8t Год назад +1

    Exited with status 127 while running your code. i am getting this error how can i fix this ?

    • @rajkkapadia
      @rajkkapadia  Год назад

      Make sure the python version is correct, all env files are there, and the start command is correct as well...

    • @rajkkapadia
      @rajkkapadia  Год назад

      For future help book a call here topmate.io/raj_kapadia/511160

  • @mdctw8361
    @mdctw8361 Год назад +1

    Dear Sir,
    I have a question , When I modify my program in local then upload to Git Hub, how to Upgrade change to RENDER

    • @rajkkapadia
      @rajkkapadia  Год назад +1

      Render will automatically detect changes from GitHub and redeploy the application...

    • @mdctw8361
      @mdctw8361 Год назад +1

      @@rajkkapadia In github need to create a new version, or direct update?

    • @rajkkapadia
      @rajkkapadia  Год назад

      @@mdctw8361 You need to push the code to GitHub repository...

  • @syedmujahid9860
    @syedmujahid9860 7 месяцев назад +1

    Which linux edition should i install for deployement

    • @rajkkapadia
      @rajkkapadia  7 месяцев назад

      I think Ubuntu LTS will be good...

  • @mdctw8361
    @mdctw8361 Год назад +1

    My Dear ,
    want to know, do you have experience to deploy python project to Render, the python import openai api,
    1. my python import openai api, hard code api key in program in local environment test ok
    2. I got some problem when deploy the program , Render show API key error , msg as :
    Mar 27 09:14:54 AM File "/opt/render/project/src/.venv/lib/python3.7/site-packages/openai/api_requestor.py", line 683, in _interpret_response_line
    Mar 27 09:14:54 AM rbody, rcode, resp.data, rheaders, stream_error=stream_error
    Mar 27 09:14:54 AM openai.error.AuthenticationError: Incorrect API key provided: sk-GAl2r***************************************7Z71.
    do you have any comments?

    • @rajkkapadia
      @rajkkapadia  Год назад

      It says the API key is incorrect, check that in the environment variables section...

    • @mdctw8361
      @mdctw8361 Год назад +1

      @@rajkkapadia I need put api key in environment?
      how to do that

    • @mdctw8361
      @mdctw8361 Год назад

      @@rajkkapadia the key show in error messgae : sk-GAl2r***************************************7Z7 is correct

    • @rajkkapadia
      @rajkkapadia  Год назад

      @@mdctw8361 I request you to watch the video one more time carefully...

    • @mdctw8361
      @mdctw8361 Год назад +1

      @@rajkkapadia OK I will watch it Thanks.

  • @fawazbashiru6165
    @fawazbashiru6165 10 месяцев назад +1

    Thank you so much ❤

  • @MythicalMysteryQuest
    @MythicalMysteryQuest Год назад +1

    Does render support Chrome we driver for selenium testing using python?

    • @rajkkapadia
      @rajkkapadia  Год назад +1

      I think no, you need more control over the instance for that like EC2...

  • @somvitmaity5421
    @somvitmaity5421 Год назад +2

    can you make a video about migrating a django project from heroku to render. I mean how to migrate the postgres database to render which is used in heroku . Its already have a documentation but I need a tutorial.

    • @rajkkapadia
      @rajkkapadia  Год назад +1

      Hi, I appreciate your suggestion, I will keep this in mind...

  • @smritiagarwal56
    @smritiagarwal56 Год назад +1

    my python file name is app.py only still it shows ftcl error please tell

    • @rajkkapadia
      @rajkkapadia  Год назад +1

      You can use Ubuntu WSL on your windows, that will solve the problem...

    • @smritiagarwal56
      @smritiagarwal56 Год назад

      @@rajkkapadia please upload vedio on that

  • @sonal008
    @sonal008 Год назад +1

    while doing gunicorn app:app, it shows no module name 'fcntl'

    • @rajkkapadia
      @rajkkapadia  Год назад +1

      I am not sure in Windows people are facing this issue, but in the command gunicorn app:app, the first app is your python file name that you want to run...

    • @sonal008
      @sonal008 Год назад +1

      @@rajkkapadia Sir but we mention this in Procfile too. Right?

    • @rajkkapadia
      @rajkkapadia  Год назад

      @@sonal008 yes

    • @biancamaxino
      @biancamaxino 4 месяца назад +1

      @@rajkkapadia how to fix?
      ModuleNotFoundError: No module named 'fcntl'
      after i wrote gunicorn app:app
      My python file is app.py
      It is correct.

    • @rajkkapadia
      @rajkkapadia  4 месяца назад

      @@biancamaxino Gunicorn throws this error on windows, use python app.py command to run the file...

  • @user-iq1er3ni8z
    @user-iq1er3ni8z Год назад +1

    Hi your tutorial is great but I would say the terminal of VS code is too small to watch. It would be great if you magnify or make it large in order to see what you have typed. Now it is too small and please remember that not all your audiences have English background.

    • @rajkkapadia
      @rajkkapadia  Год назад +1

      Thank you, I highly appreciate your feedback, I will implement these things in all the upcoming videos...

  • @mdctw8361
    @mdctw8361 Год назад +2

    Hi it's a greate video for me, I have a question how to link Github URL & Render,

    • @rajkkapadia
      @rajkkapadia  Год назад

      When you create a new app in render, it will ask you to connect your github or gitlab account...

    • @mdctw8361
      @mdctw8361 Год назад +1

      @@rajkkapadia thanks

  • @KyanCox
    @KyanCox 7 месяцев назад +1

    amazing video

  • @vishnumuralidhar5659
    @vishnumuralidhar5659 Год назад +1

    very heipful info thank you

  • @vansh9899
    @vansh9899 Год назад +1

    gunicorn.errors.AppImportError: Failed to find attribute 'app' in 'app'.
    how can I resolve this?

    • @rajkkapadia
      @rajkkapadia  Год назад

      make sure you understand gunicorn... gunicorn YOURFILENAMEWITHOUTEXTENTION:app, the last app word is compulsory...
      SO you file name is main.py that you want to run with gunicorn, then the command will be gunicorn main:app

  • @nehaverma3550
    @nehaverma3550 Год назад +1

    Thankyou sir !

  • @shoooooooooorts8002
    @shoooooooooorts8002 Год назад +1

    How many ml models can be deployed on render for free???

    • @rajkkapadia
      @rajkkapadia  Год назад

      I am not sure, I have not tested any models on it...

  • @nextisnowmain
    @nextisnowmain Год назад +1

    It's informative

  • @greenstreet704
    @greenstreet704 Год назад +1

    thanks a lot!

  • @pemadendup3192
    @pemadendup3192 Год назад +1

    where should I put my html file and model file

    • @rajkkapadia
      @rajkkapadia  Год назад

      For html content use templates folder... You can read more about it on Flask website...

    • @pemadendup3192
      @pemadendup3192 Год назад +1

      @@rajkkapadia thank you sir but when i upload my .h5 file it says "Yowza, that’s a big file. Try again with a file smaller than 25MB."

    • @pemadendup3192
      @pemadendup3192 Год назад

      @@rajkkapadia sir any solution for this

  • @jafariarshadbarg6945
    @jafariarshadbarg6945 Год назад +1

    have repo url uploader bot fore telegram in render ?

    • @rajkkapadia
      @rajkkapadia  Год назад

      I did not understand you clearly...

  • @zadkiel_z
    @zadkiel_z Год назад +2

    Sir! Please can u make how to deploy bot on this alternative?

    • @rajkkapadia
      @rajkkapadia  Год назад +1

      Thank you for the suggestion...

    • @aperture0
      @aperture0 Год назад +1

      did you find how to deply a bot?

    • @rajkkapadia
      @rajkkapadia  Год назад

      @@aperture0 ruclips.net/video/0BeYenl5BqQ/видео.html

  • @amandeepthakur7847
    @amandeepthakur7847 Год назад +1

    how to upload more than 100mb file on github?

    • @rajkkapadia
      @rajkkapadia  Год назад

      Don't upload large files in Github, instead download them when you run the program...

    • @amandeepthakur7847
      @amandeepthakur7847 Год назад

      @@rajkkapadia i want to deploy my project on free hosting platform like render so need to upload it on GitHub

  • @polarbeargc7491
    @polarbeargc7491 Год назад +1

    This is way simpler to set up than aws. I hate Linux system

    • @rajkkapadia
      @rajkkapadia  Год назад

      Linux is appreciated everywhere...

  • @fadilarfat4974
    @fadilarfat4974 Год назад +1

    too bad render is not free no more

    • @rajkkapadia
      @rajkkapadia  Год назад

      I am not sure about your resources on this, but I can confirm that Render is free at the time I am writing this...

    • @fadilarfat4974
      @fadilarfat4974 Год назад

      @@rajkkapadia i guess it is free but you still have to put your cc information in order to use it