Deploy Django Docker Image to Heroku

  Рет қаралды 17,355

Very Academy

Very Academy

Күн бұрын

Пікірлер: 59
@TheRealOllio
@TheRealOllio 4 жыл бұрын
Wow this is exactly what I was searching for. Thank you!
@veryacademy
@veryacademy 4 жыл бұрын
Great! Good luck with it - honestly there is a few things that might cause issues - just start small and grow (if your not to familiar with it). I was going to do a more complicated build but this way you get it working first before applying to a bigger project. 👍
@majorkai4960
@majorkai4960 3 жыл бұрын
a tip: you can watch series at InstaFlixxer. I've been using them for watching a lot of movies lately.
@troycallan4776
@troycallan4776 3 жыл бұрын
@Major Kai yea, been watching on instaflixxer for since november myself =)
@MrGeomTech
@MrGeomTech 3 жыл бұрын
It is was what I look for : config environment variables, great job!
@veryacademy
@veryacademy 3 жыл бұрын
Glad it helped!
@mrmuranga
@mrmuranga 3 жыл бұрын
Great work.... meticulous, easy speed and well thought out.. Thanks
@veryacademy
@veryacademy 3 жыл бұрын
Glad you liked it!
@Hobson-c4u
@Hobson-c4u Жыл бұрын
Thanks so much man, helped fill in some holes from some other sources.
@TK-zn5fb
@TK-zn5fb 3 жыл бұрын
Could you do a tutorial on deploying django app on a server like vpsdime or ssdnodes with database and docker? I know it seems too much to ask for, but I can learn much easily from your tutorials and they're really helpful.
@StudyStreamPlus
@StudyStreamPlus 10 ай бұрын
Thanks for this. I love the detail. Helped me a lot.
@simajacob7416
@simajacob7416 3 жыл бұрын
Can you please do almost the same thing but with docker-compose file with postgres and volume. then deploy to heroku
@aabbassp
@aabbassp 2 жыл бұрын
Your video is simply amazing. Thank you very much for sharing, I am subscribing
@ikennaumeh5040
@ikennaumeh5040 3 жыл бұрын
Wonderful content. I have been following your guide but you are deploying just a Django image to Heroku, but initially you Dockerized Celery, Redis, and Django, how do we deploy that to Heroku. If you can assist with that, thank you.
@veryacademy
@veryacademy 3 жыл бұрын
Hi Ikenna, it will be a similar process. You have everything inside the containers. With Heroku and many other providers you have many options. Do you for example use Heroku Redis and DB service instead of dockerizing it. So I guess that is the question I propose to you - would you like to deploy it all in a container or consider in the case of Heroku using their other services - Please avoid returning with (what do you think is best 😁) I cant answer that for your project and setup
@ikennaumeh5040
@ikennaumeh5040 3 жыл бұрын
@@veryacademy Lol, I have used the Heroku Redis and DB service it's working okay, However, Celery and beat aren't working, wondering if there is a different config for the Dockerfile in deploying to Heroku.
@stefanAH97
@stefanAH97 3 жыл бұрын
amazing demo, thnx a lot
@veryacademy
@veryacademy 3 жыл бұрын
You are welcome!
@rangabharath4253
@rangabharath4253 4 жыл бұрын
Awesome as always 🙂👍
@veryacademy
@veryacademy 4 жыл бұрын
Hey Ranga, thank you, hope you are well 👍
@rangabharath4253
@rangabharath4253 4 жыл бұрын
@@veryacademy 👍😀
@txcing9296
@txcing9296 2 жыл бұрын
I have watched deploying django and react to Heroku and this video. Could you possible to teach me how to deploy django , react , docker to heroku?
@veryacademy
@veryacademy 2 жыл бұрын
dev.to/mdrhmn/deploying-react-django-app-using-heroku-2gfa
@Oda3908
@Oda3908 4 жыл бұрын
Such great tutorials and thank you so so so much!!! couldn't stop and watched all videos, any place to make a donation? The project with Django, pgdb, celery, and Redis is really a nice combination, just wondering if this serial has been over or there are more videos on deploying that previous project? Or even with gunicorn + Nginx? Sorry to ask for more, your tutorials are really anticipated
@veryacademy
@veryacademy 4 жыл бұрын
Thank you Ichii, everything around here is just starting! There will be plenty more tutorials on everything, including this series. I think I am doing another Django Heroku with docker compose next. But happy to take suggestions. No need to donate, it’s all free, we do have a members option on the KZbin channel if you would like to join for a small cost 👍
@BrianKerrBK
@BrianKerrBK 3 жыл бұрын
Great video! Question - just wondering... Before watching this docker series I would "obviously" (LOL) start my django project with pipenv and skip the requirements.text. Do you have any thoughts about pipenv? It's use with django and docker?
@veryacademy
@veryacademy 3 жыл бұрын
medium.com/telnyx-engineering/rip-pipenv-tried-too-hard-do-what-you-need-with-pip-tools-d500edc161d4#:~:text=Pipenv%20is%20dead.,and%20a%20complicated%20release%20process%E2%80%9D.
@BrianKerrBK
@BrianKerrBK 3 жыл бұрын
@@veryacademy Very cool. Thanks.
@bluejimmy168
@bluejimmy168 3 жыл бұрын
At 49:59 you said that the dockerfile is done, I thought we need to add in a volume so that the database will save data permanently? There is no volume in this dockerfile, right? I have another question. How do you update code in Heroku? If you fixed a bug, do you rebuild the image with updated code then push to heroku the same way you did in this video? Thanks.
@veryacademy
@veryacademy 3 жыл бұрын
Lots of question there. I don't think I went that extra step here to include a database - Think I did go on in another to show you? Update code in Heroku, presume you mean if you are using Docker. Well you might be best off updating your image and redeploy it. With Heroku you could setup a pipeline in GitHub actions for example to rebuild image and deploy directly to Heroku every time you push to your repository. In short - develop on your machine - push you GitHub - having GitHub action create image and deploy to Heroku. Use a separate instance for your database.
@bluejimmy168
@bluejimmy168 3 жыл бұрын
@@veryacademy Thank you.
@sayanchakraborty1503
@sayanchakraborty1503 4 жыл бұрын
Could you make a video on integrating with circle ci using docker, it would be very helpful. Thanks.
@veryacademy
@veryacademy 4 жыл бұрын
Great suggestion! Thank you - I have noted it down on the list - cant promise when
@sayanchakraborty1503
@sayanchakraborty1503 4 жыл бұрын
@@veryacademy okay would be looking forward to it. Love your vids
@vrppaul
@vrppaul 4 жыл бұрын
Thank you for the tutorial! Is there any chance, that you would make a video about the dhango-react deployment to Heroku using containers?
@veryacademy
@veryacademy 4 жыл бұрын
That is a great suggestion. I will be adding some more to these tutorials. We need to also add a DB and Redis etc. Yeah ok - am on it. Thank you!
@vrppaul
@vrppaul 4 жыл бұрын
@@veryacademy Thanks for the reply :) I've already managed to do it by myself, but looking forward to watch the video anyways btw do you have any experience with integrating websockets into existing DRF application (e.g. using channels if that's even possible)? would be super cool to see such a tutorial on your channel :)
@KevinTempelx
@KevinTempelx 4 жыл бұрын
Thank you!
@veryacademy
@veryacademy 4 жыл бұрын
Hi Kevin, thank you - hopefully some value.
@KevinTempelx
@KevinTempelx 4 жыл бұрын
@@veryacademy Yeah of course man every single time! Thanks again and hope you're feeling better.
@alihusham1560
@alihusham1560 3 жыл бұрын
the environment variable don't work with me at all, I have .bash_profile fie and I made .env file, can os.getenv() find the environment variable files anywhere, or should I specify their directories
@veryacademy
@veryacademy 3 жыл бұрын
Hi Ali, there seems to be a few issues with this reported to me - I will get on a create an update for this. Will try and get it done today or tomorrow.
@sasageyo9571
@sasageyo9571 2 жыл бұрын
Actually setting env variable as DEBUG=False doesnt work, as they are parsed as string. And by default the value of any non empty string is true. Thus we need to perform string matching to make debug=false work, if we set is as env variable.
@kolawoleabdulrahman1540
@kolawoleabdulrahman1540 2 жыл бұрын
Is it possible to deploy Django Docker Image to Heroku using Postgresql database without docker-compose? if yes, how do i do that please? and if its not possible, how do i inject environmental variables to heroku for docker-compose file? thanks
@AuthenticPakistaniReviews
@AuthenticPakistaniReviews 4 жыл бұрын
Why you didn't use docker-compose ?
@veryacademy
@veryacademy 4 жыл бұрын
Hi Tousif, thank you for the suggestion. I didnt need to use it just to create a simple docker image without other dependencies. 👍
@maxvinella941
@maxvinella941 3 жыл бұрын
Can this be applied to a django+react app?
@veryacademy
@veryacademy 3 жыл бұрын
its a little different with React
@liveinpeaceplease
@liveinpeaceplease 4 жыл бұрын
Nice Tutorials 👍🏼 can u make one on Fastapi too?
@veryacademy
@veryacademy 4 жыл бұрын
Hey vg - there is a plan to for sure. I have Graphene-Django lined up next then could do Fastapi. 👍
@tluanga-ruatpuii-pa
@tluanga-ruatpuii-pa 3 жыл бұрын
please make a video on serverless django in cloud run
@veryacademy
@veryacademy 3 жыл бұрын
Noted. if there is no server where are you going to host it? (Just joking of course) Why we couldnt come up with a better name for it.
@adityaav6135
@adityaav6135 3 жыл бұрын
sudo docker run -p 8000:8000 django-final_year:v1 returns docker: Error response from daemon: OCI runtime create failed: container_linux.go:380: starting container process caused: exec: "gunicorn": executable file not found in $PATH: unknown. ERRO[0008] error waiting for container: context canceled please help
@latabakaa2911
@latabakaa2911 2 жыл бұрын
te quiero con toda mi alma y todo mi corazón
@Jakub1989YTb
@Jakub1989YTb 3 жыл бұрын
"gunnyhorn"
@veryacademy
@veryacademy 3 жыл бұрын
😂👍
@ravindrakumara.
@ravindrakumara. 3 жыл бұрын
I got error ERROR [3/5] RUN set-ex && pip install --upgrade pip && pip install --no-c 1.1s executor failed running [/bin/sh -c set-ex && pip install --upgrade pip && pip install --no-cache-dir -r /2021-02-18/requirements.txt]: exit code: 127 Guy anyone please help me how to rectify?
@veryacademy
@veryacademy 3 жыл бұрын
Do you run python or py at the start of your commands - try py - you might have multiple versions of Python installed which could be the problem here
@ravindrakumara.
@ravindrakumara. 3 жыл бұрын
@@veryacademy As per you instruction i do same as python/python3/py. however could not rectify; here drop error message please find => ERROR [3/5] RUN set-ex && python3 pip install --upgrade pip && python3 pip install --no-cache-dir -r /2021-02-18/requirements.txt 0.4s ------ > [3/5] RUN set-ex && python3 pip install --upgrade pip && python3 pip install --no-cache-dir -r /2021-02-18_Redcarbet/requirements.txt: #7 0.372 /bin/sh: set-ex: not found ------ executor failed running [/bin/sh -c set-ex && python3 pip install --upgrade pip && python3 pip install --no-cache-dir -r /2021-02-18/requirements.txt]: exit code: 127
Django Python Import Style Conventions
10:55
Very Academy
Рет қаралды 1,6 М.
What is Docker? Docker and Container Concepts Explained
21:19
Very Academy
Рет қаралды 4,9 М.
ЗНАЛИ? ТОЛЬКО ОАЭ 🤫
00:13
Сам себе сушист
Рет қаралды 4 МЛН
Wait for the last one 🤣🤣 #shorts #minecraft
00:28
Cosmo Guy
Рет қаралды 24 МЛН
I Turned My Mom into Anxiety Mode! 😆💥 #prank #familyfun #funny
00:32
Try Not To Laugh 😅 the Best of BoxtoxTv 👌
00:18
boxtoxtv
Рет қаралды 7 МЛН
Using Docker - Install, Images and Container Management
25:54
Very Academy
Рет қаралды 8 М.
Docker | Towards serving React (Nginx) with Django API (gunicorn)
48:35
How to create a volume in Docker-Compose for a PostgreSQL database
21:42
Deploying Django with Docker Compose, Gunicorn and Nginx
15:59
Django road
Рет қаралды 98 М.
What is a Docker Container, Image and Layer?
15:28
Very Academy
Рет қаралды 16 М.
ЗНАЛИ? ТОЛЬКО ОАЭ 🤫
00:13
Сам себе сушист
Рет қаралды 4 МЛН