Wow this is exactly what I was searching for. Thank you!
@veryacademy4 жыл бұрын
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. 👍
@majorkai49603 жыл бұрын
a tip: you can watch series at InstaFlixxer. I've been using them for watching a lot of movies lately.
@troycallan47763 жыл бұрын
@Major Kai yea, been watching on instaflixxer for since november myself =)
@MrGeomTech3 жыл бұрын
It is was what I look for : config environment variables, great job!
@veryacademy3 жыл бұрын
Glad it helped!
@mrmuranga3 жыл бұрын
Great work.... meticulous, easy speed and well thought out.. Thanks
@veryacademy3 жыл бұрын
Glad you liked it!
@Hobson-c4u Жыл бұрын
Thanks so much man, helped fill in some holes from some other sources.
@TK-zn5fb3 жыл бұрын
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.
@StudyStreamPlus10 ай бұрын
Thanks for this. I love the detail. Helped me a lot.
@simajacob74163 жыл бұрын
Can you please do almost the same thing but with docker-compose file with postgres and volume. then deploy to heroku
@aabbassp2 жыл бұрын
Your video is simply amazing. Thank you very much for sharing, I am subscribing
@ikennaumeh50403 жыл бұрын
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.
@veryacademy3 жыл бұрын
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
@ikennaumeh50403 жыл бұрын
@@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.
@stefanAH973 жыл бұрын
amazing demo, thnx a lot
@veryacademy3 жыл бұрын
You are welcome!
@rangabharath42534 жыл бұрын
Awesome as always 🙂👍
@veryacademy4 жыл бұрын
Hey Ranga, thank you, hope you are well 👍
@rangabharath42534 жыл бұрын
@@veryacademy 👍😀
@txcing92962 жыл бұрын
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?
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
@veryacademy4 жыл бұрын
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 👍
@BrianKerrBK3 жыл бұрын
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?
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.
@veryacademy3 жыл бұрын
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.
@bluejimmy1683 жыл бұрын
@@veryacademy Thank you.
@sayanchakraborty15034 жыл бұрын
Could you make a video on integrating with circle ci using docker, it would be very helpful. Thanks.
@veryacademy4 жыл бұрын
Great suggestion! Thank you - I have noted it down on the list - cant promise when
@sayanchakraborty15034 жыл бұрын
@@veryacademy okay would be looking forward to it. Love your vids
@vrppaul4 жыл бұрын
Thank you for the tutorial! Is there any chance, that you would make a video about the dhango-react deployment to Heroku using containers?
@veryacademy4 жыл бұрын
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!
@vrppaul4 жыл бұрын
@@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 :)
@KevinTempelx4 жыл бұрын
Thank you!
@veryacademy4 жыл бұрын
Hi Kevin, thank you - hopefully some value.
@KevinTempelx4 жыл бұрын
@@veryacademy Yeah of course man every single time! Thanks again and hope you're feeling better.
@alihusham15603 жыл бұрын
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
@veryacademy3 жыл бұрын
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.
@sasageyo95712 жыл бұрын
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.
@kolawoleabdulrahman15402 жыл бұрын
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
@AuthenticPakistaniReviews4 жыл бұрын
Why you didn't use docker-compose ?
@veryacademy4 жыл бұрын
Hi Tousif, thank you for the suggestion. I didnt need to use it just to create a simple docker image without other dependencies. 👍
@maxvinella9413 жыл бұрын
Can this be applied to a django+react app?
@veryacademy3 жыл бұрын
its a little different with React
@liveinpeaceplease4 жыл бұрын
Nice Tutorials 👍🏼 can u make one on Fastapi too?
@veryacademy4 жыл бұрын
Hey vg - there is a plan to for sure. I have Graphene-Django lined up next then could do Fastapi. 👍
@tluanga-ruatpuii-pa3 жыл бұрын
please make a video on serverless django in cloud run
@veryacademy3 жыл бұрын
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.
@adityaav61353 жыл бұрын
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
@latabakaa29112 жыл бұрын
te quiero con toda mi alma y todo mi corazón
@Jakub1989YTb3 жыл бұрын
"gunnyhorn"
@veryacademy3 жыл бұрын
😂👍
@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?
@veryacademy3 жыл бұрын
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.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