This guide explains the steps for deploying a Streamlit application on an Ubuntu-based Hostinger VPS using Systemd for persistence, Poetry for dependency management, and Nginx for secure web access (HTTPS).

🚀 Phase 1: Server Setup and Application Preparation

This phase establishes the foundational environment and prepares your code.

Step 1: Install Core Tools and Poetry

Step 2: Clone Repository and Install Dependencies

Step 3: Configure Supabase Credentials (.env)

⚙️ Phase 2: Systemd Service Configuration (The Persistence)

This phase ensures the app runs 24/7 in the background and restarts automatically if it fails.

Step 4: Create the Systemd Service File

Step 5: Enable and Start the Service