No video

How to Deploy a Flask App to a Linux Server with a Domain Name

  Рет қаралды 23,788

Pretty Printed

Pretty Printed

Күн бұрын

In this video, I'll go over the steps you need to take for a bare minimum linux server deploy with your own custom domain name. For the web server I'll use Caddy, and for the app server I'll use gunicorn.
Need one-on-one help with your project? I can help through my coaching program. Learn more here: prettyprinted....
Here are the install commands I used in the video:
sudo apt update
sudo apt install -y debian-keyring debian-archive-keyring apt-transport-https
curl -1sLf 'dl.cloudsmith.... | sudo gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg
curl -1sLf 'dl.cloudsmith.... | sudo tee /etc/apt/sources.list.d/caddy-stable.list
sudo apt update
sudo apt install caddy
sudo apt install python3-pip python3-dev build-essential libssl-dev libffi-dev python3-setuptools
sudo apt install python3-venv
Get the code here: prettyprinted....
Twitter: / pretty_printed
Github: github.com/pre...

Пікірлер: 36
@songokussj4cz
@songokussj4cz Жыл бұрын
Very big thumbs up for using gunicorn and not default flask server as others. Nice!
@prettyprinted
@prettyprinted Жыл бұрын
Definitely the more appropriate option. Thanks for watching!
@sinancetinkaya
@sinancetinkaya Жыл бұрын
thumbs up for centering a text in CSS :)
@prettyprinted
@prettyprinted Жыл бұрын
haha yeah I figured I shouldn't be so lazy to center my basic header text.
@tadashi-kun4820
@tadashi-kun4820 4 ай бұрын
It worked like a charm. Runs perfectly fine. Thank you very much!
@dmbrv
@dmbrv Жыл бұрын
Awesome video. I didn't know that Caddy will automatically get a sign certificate from Let's Encrypt
@prettyprinted
@prettyprinted Жыл бұрын
Yeah Caddy makes things really simple. Thanks for watching.
@mahboob82
@mahboob82 6 ай бұрын
Well organised contents! Thanks for making it easy for us.
@benjohnson5897
@benjohnson5897 2 ай бұрын
Thanks! Very useful, but it reminded me why i simply code and deploy on Replit. I dont have enough patience for all this stuff! 😂
@EddiKh
@EddiKh 2 ай бұрын
Is there a tutorial on security configurations and firewall? and great video! exactly what I was looking for
@jazz8932
@jazz8932 5 ай бұрын
after installing caddy and going to the IP address I see no response?
@eboyd53
@eboyd53 Жыл бұрын
Can you please add the notes to your github repository for the video? Unfortunately KZbin shortened the URL in your two lines making it difficult to copy and paste. I had to click on the two URL to determine what it should have been to continue.
@prettyprinted
@prettyprinted Жыл бұрын
Here you go: github.com/PrettyPrinted/youtube_video_code/tree/master/2023/07/17/How%20to%20Deploy%20a%20Flask%20App%20to%20a%20Linux%20Server%20with%20a%20Domain%20Name
@honzabe
@honzabe 4 ай бұрын
@@prettyprinted I might be missing something but I do not see the notes the OP requested in the document you linked. I also think they could be useful - KZbin shortened URLs in your notes here so the commands copied from KZbin do not work unless you reconstruct how they looked like before the shortening. Some people might get confused by it (ehm, "some people", like me).
@eboyd53
@eboyd53 Жыл бұрын
Thanks for the video and instructions. BTW, you could use ``pkill gunicorn`` to kill the application if the pkill command exists.
@prettyprinted
@prettyprinted Жыл бұрын
Thanks, I should have checked if pkill was there. Thanks for watching!
@jakobseitz1176
@jakobseitz1176 6 ай бұрын
note: the curl commands didnt work for me, but caddy still worked fine. But I also used a v-server from netcup
@iconjack
@iconjack 2 ай бұрын
the curl commands in the description got mangled by youtube-you'll have to type them in from the terminal on the screen
@VictorsTravelvLog
@VictorsTravelvLog 9 ай бұрын
exactly what i needed!
@houseofsharks
@houseofsharks Ай бұрын
Hello, i have an oracle free tier instance running ubuntu with some websites (php) hosted (with their own domains) by cloudpanel. If i do exactly like you did. My other websites will stop working?
@infossil
@infossil 3 ай бұрын
thank you, worked perfect
@marcosoliveira8731
@marcosoliveira8731 5 ай бұрын
Huuuuge thanks man!
@TaylorNelson1
@TaylorNelson1 7 ай бұрын
Wow so easy. Is gunicorn good enough, by itself, that I do not need to use other hacks via apache and wsgi?
@asmasaduf6257
@asmasaduf6257 4 ай бұрын
when i did gunicorn app:app Iget this error "from gunicorn import util File "E:\sid\TF-Image-Classifier-API\venv\Lib\site-packages\gunicorn\util.py", line 8, in import fcntl ModuleNotFoundError: No module named 'fcntl'"
@dgoek
@dgoek 7 ай бұрын
Thank you so much this is very useful; I working on my website this contain a payment with paypal and this is working on visual studio code, however when I upload to lightsail server this is not working, I receive an error regarding authetication, however I thinks this is related with networking, maybe I am missing some configuration, any idea ?
@rish9422
@rish9422 7 ай бұрын
would be this possible on Azure?
@WaldoTheWombat
@WaldoTheWombat 7 ай бұрын
How Anthony, will this work with a Flask app that uses web sockets?
@curtking70
@curtking70 Жыл бұрын
Thanks!
@prettyprinted
@prettyprinted Жыл бұрын
You're welcome! Thanks for the super thanks!
@shaunsharon6849
@shaunsharon6849 3 ай бұрын
What about in Windows?
@HamzahAl-Hamadani
@HamzahAl-Hamadani 3 ай бұрын
i love you
@tasmaniandaemon
@tasmaniandaemon 5 ай бұрын
why not nginx
@Kennethlumor
@Kennethlumor Жыл бұрын
Sir thank you for this tutorial. Please I request from you to make a video on how to connect Google auth to flask app. Because as am talking to you right now Google has taken or remove allow third party integration. That is very hard for me to do now. So please and please I'm begging you in the name of God to make a video on that.
@prettyprinted
@prettyprinted Жыл бұрын
I'll look into Google auth. Thanks for watching!
@anony88
@anony88 Жыл бұрын
Why does my comments keep getting removed on youtube.. 😑
@redsword7192
@redsword7192 7 ай бұрын
hehe
Creating a Flask Web Server in EC2 on the AWS Free Tier from scratch!
17:28
Deploy your Flask app on Google Cloud Platform
17:51
Leslie Wubbel
Рет қаралды 15 М.
Алексей Щербаков разнес ВДВшников
00:47
Little brothers couldn't stay calm when they noticed a bin lorry #shorts
00:32
Fabiosa Best Lifehacks
Рет қаралды 19 МЛН
WHO CAN RUN FASTER?
00:23
Zhong
Рет қаралды 43 МЛН
КАКУЮ ДВЕРЬ ВЫБРАТЬ? 😂 #Shorts
00:45
НУБАСТЕР
Рет қаралды 3,3 МЛН
How to Deploy Flask with Gunicorn and Nginx (on Ubuntu)
13:50
Tony Teaches Tech
Рет қаралды 69 М.
How to Deploy a Flask App and Postgres Database to Render
16:39
Pretty Printed
Рет қаралды 46 М.
Deploy Flask Application on Ubuntu VPS using Nginx
16:19
DevGuyAhnaf
Рет қаралды 46 М.
How to Deploy a Flask App to Linux (Apache and WSGI)
11:21
Luke Peters
Рет қаралды 58 М.
How To Deploy A React App - Using NGINX & Linux
23:09
Tech With Tim
Рет қаралды 82 М.
Quick Flask Deployment: From Localhost to a Domain!
13:01
TheCodex
Рет қаралды 84 М.
Flask Load Balancing Using Nginx and Docker
18:39
DevGuyAhnaf
Рет қаралды 33 М.
Deploying a Simple Python Web Server
14:23
Akamai Developer
Рет қаралды 43 М.
Алексей Щербаков разнес ВДВшников
00:47