How to Deploy a Flask App to Heroku | Flask Heroku Deployment

  Рет қаралды 52,374

Arpan Neupane

Arpan Neupane

Күн бұрын

Hey guys! Welcome back, in this video, I will be showing you how to deploy a Flask website to Heroku. If you don't know what Heroku is, Heroku is a cloud-based platform that enables developers to build, run, and operate applications entirely in the cloud. Heroku provides an easy-to-use interface for deploying web applications written in Ruby, Java, Python, or Node.js.
We will be using the following:
- Python
- Heroku CLI
- Flask
- Git
Heroku CLI Installation: devcenter.hero...
Flask + Heroku Docs: devcenter.hero...
My Website: arpanneupane.com
My GitHub: github.com/arp...
My Programming Gear :
Keyboard: amzn.to/42vXkxh
Laptop: amzn.to/3CkAP3W
Laptop Stand: amzn.to/3X116Oi
Desk: amzn.to/43wmIEt
Monitor: amzn.to/42BAaFH
Monitor Arm: amzn.to/3NR0APS
Chair: amzn.to/42vvKAn
Desk Mat/Mousepad: amzn.to/43AhKqj
Microphone: amzn.to/45RuQ43
Headphones: amzn.to/445sf4R
#Coding // #Flask // #Heroku // #LearnToCode

Пікірлер: 56
@manomancan
@manomancan Жыл бұрын
Phenomenal, phenomenal, phenomenal... After 3 days of nonsense with other tutorials, finally got my project online. Thank you, Arpan!
@juliah8071
@juliah8071 10 ай бұрын
This is the best tutorial I've ever watched when it comes to flask... literally the only thing that worked for me - thank you so much!
@dajith1317
@dajith1317 2 жыл бұрын
Thank a lot ❤before I saw this video. I wasted one day.... But now I got ❤❤❤
@ArpanNeupaneProductions
@ArpanNeupaneProductions 2 жыл бұрын
Glad I could help
@Jakku_Azzo
@Jakku_Azzo 3 ай бұрын
"Heroku is a platform we can use to host WA-" loved the video tho
@ArpanNeupaneProductions
@ArpanNeupaneProductions 3 ай бұрын
lmao yeah the audio cut off 😂😂😂
@Stranger-uj4ck
@Stranger-uj4ck 3 ай бұрын
Great job!! This was very helpful. Thanks for making it
@lucasolarreaga2570
@lucasolarreaga2570 20 күн бұрын
I love you !!!!! I was so done...
@ghazalmasri7400
@ghazalmasri7400 7 ай бұрын
idk what to say but just ! UUUUUUU SAVEDDDD MY LIFFFFFFFFFFFFEEEEE ALL LOVE AND RESPECT
@saidalkharusi7824
@saidalkharusi7824 Жыл бұрын
Wish all tutorials were like this, we wouldn't need 2x button if they were.
@yagnakarthikvaka1461
@yagnakarthikvaka1461 Ай бұрын
Super! by creating private git repo no tutorial shown this.
@hussainahmadwaien7226
@hussainahmadwaien7226 Жыл бұрын
Can I edit the code after deploy or I have to deploy again?
@elsymakena3034
@elsymakena3034 2 жыл бұрын
This is such a helpful video. Though I'm getting a buildpack error, what can I do?
@ArpanNeupaneProductions
@ArpanNeupaneProductions 2 жыл бұрын
What was the error?
@SamuelBrand-u8t
@SamuelBrand-u8t 8 ай бұрын
Thanks so much! Everything went super smoothly except from the very last command. With 'git push heroku main', it says 'heroku' does not appear to be a repository, I am on windows. Have I set something up badly?
@LouisaMacchiato
@LouisaMacchiato Ай бұрын
Thank you very very much! ❤
@AmielT
@AmielT Ай бұрын
Immeeeeeeeeediate subscribe and like. “ The best clear concise and straight to the point tutorial I have ever seen. Kudos bro. Earned a sub from me. 👍🏾
@oscargalvez7
@oscargalvez7 Жыл бұрын
Thanks for the tutorial, it was amazing! The only thing is that I wanted a free plan to start testing my app and it seems Heroku removed their free tier on November 2022, so I got an error to set up a payment method 😅
@ArpanNeupaneProductions
@ArpanNeupaneProductions Жыл бұрын
Yeah lol, I use Vercel/Netlify instead for hosting now
@oscargalvez7
@oscargalvez7 Жыл бұрын
@@ArpanNeupaneProductions lol good to know, I'll try Vercel then, thanks for the response!
@Kc_bin
@Kc_bin 3 жыл бұрын
New Video YAY
@canklc5772
@canklc5772 2 жыл бұрын
Thank you very mcuh for the details about how to create Procfile. I looked for this info for hours. file name + app. Thanks mate
@ArpanNeupaneProductions
@ArpanNeupaneProductions 2 жыл бұрын
Of course!
@jaimeviloriogreen
@jaimeviloriogreen 2 жыл бұрын
Thank's a lot due!
@ArpanNeupaneProductions
@ArpanNeupaneProductions 2 жыл бұрын
You’re welcome!
@hashamyounas3864
@hashamyounas3864 7 ай бұрын
'git push heroku main' says 'heroku' does not appear to be a repository...
@satishgaire
@satishgaire 3 жыл бұрын
great video
@ArpanNeupaneProductions
@ArpanNeupaneProductions 3 жыл бұрын
Thank you so much !!
@paulq0246
@paulq0246 23 күн бұрын
Thanks for this ! Can someone tell me why the official documentation is complete garbage?
@shivamsharma-zv7zl
@shivamsharma-zv7zl 3 жыл бұрын
is deploying venv on github is also imp??
@ArpanNeupaneProductions
@ArpanNeupaneProductions 2 жыл бұрын
Not necessarily, but I recommend that you do because if someone else wants to download your code and run it, they can just activate the virtual environment which has all the packages.
@codehunterhari
@codehunterhari 3 ай бұрын
Bestttt
@lokranjanp3520
@lokranjanp3520 2 ай бұрын
use ssh instead of http for adding remote origins.
@Kjeii
@Kjeii Жыл бұрын
hi thank you for sharing video!! have you ever deal with error about "address already in use" & "port 5000 is in use in another program "when beginning to deploy new project? that always happens to me, even though i do not deploy any program yet. I also changed another port like 8000, it still did not work.
@ssublexff3465
@ssublexff3465 4 ай бұрын
to late to reply for sure but in case someone might need it.... You can go to your task-manager and check if there is some active application that is running on X port you are looking for. Another solution would be to check the port via terminal (CMD) i user windows so here is the command netstat -aon | findstr :5000 (I've taken port 5000 just as an example) After that you can simply change the port of x app (always check if there migh be some other app running on this new port you are thinking of running your program)
@turing4991
@turing4991 2 жыл бұрын
Gunicorn is not starting.............. my deadline is today :)
@charles_goldwill
@charles_goldwill Жыл бұрын
god send!!!!!!!!!!!
@EJSV
@EJSV 2 жыл бұрын
Thanks
@ArpanNeupaneProductions
@ArpanNeupaneProductions 2 жыл бұрын
You're welcome!
@jatinoza3099
@jatinoza3099 2 жыл бұрын
what is the name of vs code theme you are using here? and do anyone know more good vs code themes
@ArpanNeupaneProductions
@ArpanNeupaneProductions 2 жыл бұрын
I believe in this video I was using the Panda Theme.
@viacheslavgurov4371
@viacheslavgurov4371 Жыл бұрын
Hello, thanks for your job. I got stumbled here. Help, please. ! [remote rejected] main -> main (pre-receive hook declined) error: failed to push some refs to "my-app"
@sudo-abhinav
@sudo-abhinav 2 жыл бұрын
can we add venv file in gitignore file????
@ArpanNeupaneProductions
@ArpanNeupaneProductions 2 жыл бұрын
Sure
@ankitchatterjee1615
@ankitchatterjee1615 Жыл бұрын
What if a venv is not created ?
@willuloveme7744
@willuloveme7744 Жыл бұрын
Create it by yourself. Open terminal and go to the project's directory, then run python3 -m venv venv_name
@ankitchatterjee1615
@ankitchatterjee1615 Жыл бұрын
@@willuloveme7744 Okay Thanks 🧀 But is it compulsory to make it ?
@willuloveme7744
@willuloveme7744 Жыл бұрын
@@ankitchatterjee1615 well, it depends. You see, when you use venv, all the packages are installed only within it, they do not affect the main python files on your computer. It is a good way to sort these packages and to keep your main python files clean.
@ankitchatterjee1615
@ankitchatterjee1615 Жыл бұрын
@@willuloveme7744 Alright Thank you very much 🧀🍫
@meoconhoccode
@meoconhoccode 5 ай бұрын
What does 550h free mean?
@artwork-studios
@artwork-studios 6 ай бұрын
Thanks but i dont have credit card
@Varun-hz2hb
@Varun-hz2hb 8 ай бұрын
this is asking for money now
@thedjangoway9052
@thedjangoway9052 2 жыл бұрын
how about with flask sqlachemy db?
@ArpanNeupaneProductions
@ArpanNeupaneProductions 2 жыл бұрын
You can connect a Heroku PostgreSQL DB to your Heroku app through the settings and set the URI of the database to the URI of the PostgreSQL DB in your Flask app.
@thedjangoway9052
@thedjangoway9052 2 жыл бұрын
@@ArpanNeupaneProductions wow that's a fast reply. i wish you will create discord channel for us.
@drashtithakkar9914
@drashtithakkar9914 2 жыл бұрын
HINT: This occurs when Heroku cannot detect the buildpack to use for this application automatically. i am getting this error, searched over stackoverflow too , couldnt find soln please help
Heroku Is Dead, Here's What I Recommend
11:59
Theo - t3․gg
Рет қаралды 261 М.
An Unknown Ending💪
00:49
ISSEI / いっせい
Рет қаралды 51 МЛН
小丑在游泳池做什么#short #angel #clown
00:13
Super Beauty team
Рет қаралды 42 МЛН
How to Deploy a Flask App to Render | Flask Render Deployment
11:04
Arpan Neupane
Рет қаралды 2,7 М.
Best Platforms to Host Python Apps (for free!!)
9:50
Patrick Loeber
Рет қаралды 123 М.
How to Deploy a Flask App to a Linux Server with a Domain Name
21:29
Pretty Printed
Рет қаралды 25 М.
Run your own AI (but private)
22:13
NetworkChuck
Рет қаралды 1,5 МЛН
The Big Headless CMS Lie (James Mikrut)
18:14
Vercel
Рет қаралды 59 М.
FastAPI, Flask or Django - Which Should You Use?
9:49
Tech With Tim
Рет қаралды 82 М.
Deploy Flask Web App on AWS Elastic Beanstalk|
10:31
Nachiketa Hebbar
Рет қаралды 40 М.
How to Deploy Flask with Gunicorn and Nginx (on Ubuntu)
13:50
Tony Teaches Tech
Рет қаралды 74 М.
How to Deploy a Flask App Using PythonAnywhere
5:21
Code And Course
Рет қаралды 13 М.
The cloud is over-engineered and overpriced (no music)
14:39
Tom Delalande
Рет қаралды 598 М.