How to Deploy a Flask App to Linux (Apache and WSGI)

Luke Peters
Luke Peters
56.9 هزار بار بازدید - 3 سال پیش - FULL STACK COURSE (React, Flask,
FULL STACK COURSE (React, Flask, & PostgreSQL): https://lukepeters.me/build-a-full-st...

So you built a sweet Flask app and you're wondering how to push it to production? In this video I walk through deploying a Flask application to a Linux (Ubuntu) and Apache2 web server using the mod_wsgi Apache module.

0:00 - Intro
0:12 - The Flask app we'll be deploying
00:58 - Upload the app files to your server
1:54 - SSH into the server, install virtual environment
3:22 - Create the WSGI config file
5:49 - Create a VirtualHost config file
8:16 - Enable the new VirtualHost config
8:53 - Install the WSGI Apache module
9:54 - How to debug errors if the Flask app won't run
10:39 - Test the app again - success!
10:58 - Final comments, peace out ✌🏻

---------------------------------------------------------------
WEB HOSTING - VIRTUAL PRIVATE SERVER (VPS)

I swear by Linode. I've been using them for years. Here's my signup link if you want to help me out :) https://lukepeters.tech/linode

---------------------------------------------------------------
INSTALL APACHE2

https://www.digitalocean.com/communit...

---------------------------------------------------------------
MY DESK SETUP GEAR

⌨️  Keyboard – https://amzn.to/3sR3WEK

🖱  Mouse – https://amzn.to/3aEBvnc

🖥  Monitor – https://amzn.to/30pmuzd

🦾  Monitor Mount/Arm – https://amzn.to/3sLd3Xu

🎤  Microphone – https://amzn.to/3sRfxUb

🦾  Microphone Arm – https://amzn.to/3xrxImT

🎛  Microphone Processor – https://amzn.to/3gConme

⚡️  Thunderbolt Dock – https://amzn.to/3aE8aJC

🔊  Speakers – https://amzn.to/3nip0D0

🎧  Headphones – https://amzn.to/3xoCVfm

🪑  Chair – https://amzn.to/3eBIw9I

---------------------------------------------------------------
Intro music produced by Connor Curley
3 سال پیش در تاریخ 1400/02/28 منتشر شده است.
56,993 بـار بازدید شده
... بیشتر