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.
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!!
Thank you so much Sir!
This world needs more service from persons like you.
Again, big thank you 😊
You literally saved me from loosing my mind today!! thanks a lot dude!
💙
Thanks for sharing. Good job. I did a first-ever deploy in my life)
Great... 👍
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
Thanks for all!!! :)
WHY EVERYONE USING FLASK IS NOT ON WINDOWS? I CAN'T FIND ANY FIXES ON WINDOWS PROBLEMS
For anyone wondering gunicorn is not supported for windows and you will have to use an alternative wsgi
Thank you for the help...
@@rajkkapadia no problem. Great tutorial!
Please explain how can I use it instead of gunicorn
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
Make sure the gunicorn package is there in the requirements file...
right now it is ok
i tried rendering a python web app without the app.py and render keeps asking for it
gunicorn yourfilename:app --host 0.0.0.0:5000
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.
Make sure your file that you want to run is app.py also double check all the dependencies are there in the requirements file...
Even i am getting the same error, did you got this error sorted?
@@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
@@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
@@PavanKumar-uw7si Windows is always tough for development...
all thing is good but the main problem is with requirements.txt file :( when you create your own project
it shows ftcl error in guicorn app:app
Make sure your python file name is app.py
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'
Yes, many people are facing this issue fcntl, let me see what I can do in this matter...
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.
@@thessaurabh what did you do to make the gunicorn app:app worked?
I have the same issue.
"no module named fcntl"...
Sir! could you please make the video how to deploy django project on render.
You can follow my Python tutorial and in the start command you write python manage.py runserver
Exited with status 127 while running your code. i am getting this error how can i fix this ?
Make sure the python version is correct, all env files are there, and the start command is correct as well...
For future help book a call here topmate.io/raj_kapadia/511160
Dear Sir,
I have a question , When I modify my program in local then upload to Git Hub, how to Upgrade change to RENDER
Render will automatically detect changes from GitHub and redeploy the application...
@@rajkkapadia In github need to create a new version, or direct update?
@@mdctw8361 You need to push the code to GitHub repository...
Which linux edition should i install for deployement
I think Ubuntu LTS will be good...
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?
It says the API key is incorrect, check that in the environment variables section...
@@rajkkapadia I need put api key in environment?
how to do that
@@rajkkapadia the key show in error messgae : sk-GAl2r***************************************7Z7 is correct
@@mdctw8361 I request you to watch the video one more time carefully...
@@rajkkapadia OK I will watch it Thanks.
Thank you so much ❤
Does render support Chrome we driver for selenium testing using python?
I think no, you need more control over the instance for that like EC2...
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.
Hi, I appreciate your suggestion, I will keep this in mind...
my python file name is app.py only still it shows ftcl error please tell
You can use Ubuntu WSL on your windows, that will solve the problem...
@@rajkkapadia please upload vedio on that
while doing gunicorn app:app, it shows no module name 'fcntl'
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...
@@rajkkapadia Sir but we mention this in Procfile too. Right?
@@sonal008 yes
@@rajkkapadia how to fix?
ModuleNotFoundError: No module named 'fcntl'
after i wrote gunicorn app:app
My python file is app.py
It is correct.
@@biancamaxino Gunicorn throws this error on windows, use python app.py command to run the file...
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.
Thank you, I highly appreciate your feedback, I will implement these things in all the upcoming videos...
Hi it's a greate video for me, I have a question how to link Github URL & Render,
When you create a new app in render, it will ask you to connect your github or gitlab account...
@@rajkkapadia thanks
amazing video
very heipful info thank you
gunicorn.errors.AppImportError: Failed to find attribute 'app' in 'app'.
how can I resolve this?
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
Thankyou sir !
How many ml models can be deployed on render for free???
I am not sure, I have not tested any models on it...
It's informative
thanks a lot!
where should I put my html file and model file
For html content use templates folder... You can read more about it on Flask website...
@@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."
@@rajkkapadia sir any solution for this
have repo url uploader bot fore telegram in render ?
I did not understand you clearly...
Sir! Please can u make how to deploy bot on this alternative?
Thank you for the suggestion...
did you find how to deply a bot?
@@aperture0 ruclips.net/video/0BeYenl5BqQ/видео.html
how to upload more than 100mb file on github?
Don't upload large files in Github, instead download them when you run the program...
@@rajkkapadia i want to deploy my project on free hosting platform like render so need to upload it on GitHub
This is way simpler to set up than aws. I hate Linux system
Linux is appreciated everywhere...
too bad render is not free no more
I am not sure about your resources on this, but I can confirm that Render is free at the time I am writing this...
@@rajkkapadia i guess it is free but you still have to put your cc information in order to use it