Today marked the point where a Flask app that runs became one that runs correctly: replacing the development server with Gunicorn, introducing worker processes, and moving runtime decisions into environment variables. What stood out wasn’t the commands themselves, but how much clearer the boundaries became; what belongs in code, what belongs in configuration, and what belongs to the environment. I’ve realized that these transitions matter more than features at this stage. Understanding them makes everything else easier to reason about later. Next session: tightening up how runtime configuration is persisted. #SoftwareDevelopment #Python #Flask #AWS #Linux #Gunicorn
Flask App Deployment with Gunicorn and Environment Variables
More Relevant Posts
-
Today I gained an interesting insight into Docker image sizes. When I use python:3.12, the image size is around 1.82GB. But when I switch to python:3.12-alpine, it’s amazing to see that the size drops to just 293.42MB. This happens because python:3.12 is based on a Debian image, whereas Alpine is built on Alpine Linux, which uses a minimal operating system. Of course, there are some trade-offs, such as missing pre-installed packages. As a beginner learning Docker, I’ve realized that Docker is not just about containers, tools, or commands. It’s about understanding the core concepts of operating systems how cgroups and namespaces work in Linux, and why tools like Docker Desktop are needed. It’s truly about understanding the underlying system and its architecture. I’m grateful to be learning this through Habib vai’s tutorial. #Happy_Learning #Docker #DevOps
To view or add a comment, sign in
-
-
Docker containers are the new node_modules. We went from: > 500MB dependencies in package.json > To 2GB base images with Alpine Linux > To 8GB with "lightweight" Python ML stacks We're just moving the bloat around. Same shit, different abstraction layer.
To view or add a comment, sign in
-
💻 I Spent 2 Hours Debugging… for a 2-Minute Fix While practicing Python on Linux, I ran into a simple issue: My script just wouldn’t run. No output. No clear error. After trying multiple things, I finally found the problem 👇 👉 I was running the file incorrectly in the terminal 👉 And missed checking the Python version. Fix: ✔️ Used python3 file.py instead of python file.py ✔️ Verified with python3 --version Simple mistake. But it cost me 2 hours. What I learned: Small details matter a lot in tech Always check basics before overthinking Debugging is where real understanding happens Moments like these can feel frustrating, but they’re also the ones that stick the most. Curious—what’s a “simple mistake” that cost you hours? #Python #Linux #Debugging #DevOps #LearningJourney #TechLearning #Beginners
To view or add a comment, sign in
-
-
From Exabytes to Qubits: The Future of Computing Unveiled! 🚀 # | Ekascloud #datascience #redhat #Linux #python #BigData #Jenkins #questionbank #interviewquestions
To view or add a comment, sign in
-
From Exabytes to Qubits: The Future of Computing Unveiled! 🚀 # | Ekascloud #datascience #redhat #Linux #python #BigData #Jenkins #questionbank #interviewquestions
To view or add a comment, sign in
-
⚠️ Skipping virtual environments is one of the most common mistakes new Python developers make. Here is why it matters and how to do it right. A virtual environment keeps your project dependencies isolated. Without one, every package you install goes into your global Python installation and things break fast when projects need different versions of the same library. Here is how to set one up for your FastAPI project: 🔧 Step 1: Create the virtual environment python -m venv environmentfoldername ⚡ Step 2: Activate it On Windows PowerShell: .\environmentfoldername\Scripts\Activate.ps1 On Mac, Linux, or Git Bash: source environmentfoldername/Scripts/activate Once activated, your terminal will show the environment name. That is your green light to start installing packages safely. ✅ 🙅 One more thing: always add your environment folder to .gitignore. You do not want to push hundreds of dependency files to GitHub. Virtual environments are a small habit that save enormous headaches. Start doing this from day one. #Python #FastAPI #DeveloperTips #CleanCode #PythonDevelopment
To view or add a comment, sign in
-
🐍🐋 Python Docker Tutorials — Docker is a containerization tool used for spinning up isolated, reproducible application environments. This page lists all of our #Python Docker tutorials. https://lnkd.in/gY9nhPX
To view or add a comment, sign in
-
Built capsule, a container runtime (similar to Docker). A custom Alpine Linux image with Python installed boots in under 3µs. Also wrote a blog about it (https://lnkd.in/dxzT7AVE) :p GitHub Repo: https://lnkd.in/d4nmCTS8 #golang #LearnInPublic #BuildInPublic
To view or add a comment, sign in
-
-
💻 Four words. Zero fluff. "Talk is cheap. Show me the code." — Linus Torvalds In tech, your work speaks louder than your words. Anyone can say they know React, Python, or System Design. But your GitHub, your projects, your commits — those don't lie. -> Stop overthinking. Start shipping. -> Stop planning perfectly. Start building messily. -> Stop talking about what you'll build. Build it. The best portfolio is the one you actually push. #OpenSource #Linux #Developers #BuildInPublic #Code #SoftwareEngineering
To view or add a comment, sign in
-
-
The Backslash That Cost Me 25 Minutes "venv\Scripts\activate" vs "venv/Scripts\activate" Windows devs: ❌ Forward slash = instant fail ✅ Backslash = works Lesson: Environment setup = 50% of project time Windows devs - YOUR worst venv story? 👇** Tomorrow: API key disaster... Windows devs - YOUR worst venv activation story? Comment your answer below 👇 #Python #WindowsDev #Techstruggles
To view or add a comment, sign in
Explore content categories
- Career
- Productivity
- Finance
- Soft Skills & Emotional Intelligence
- Project Management
- Education
- Technology
- Leadership
- Ecommerce
- User Experience
- Recruitment & HR
- Customer Experience
- Real Estate
- Marketing
- Sales
- Retail & Merchandising
- Science
- Supply Chain Management
- Future Of Work
- Consulting
- Writing
- Economics
- Artificial Intelligence
- Employee Experience
- Workplace Trends
- Fundraising
- Networking
- Corporate Social Responsibility
- Negotiation
- Communication
- Engineering
- Hospitality & Tourism
- Business Strategy
- Change Management
- Organizational Culture
- Design
- Innovation
- Event Planning
- Training & Development