Skip to main content

Deploying Quivr Backend with Porter

Porter is a platform that allows you to easily deploy, manage, and scale your applications. This guide will walk you through deploying the Quivr backend using Porter.

Prerequisites

Before you begin, make sure you have the following:

Step 1: Create a Porter Project

  1. Log in to your Porter account.
  2. Click on the “New Project” button.
  3. Give your project a name (e.g., “quivr-backend”) and select a region.
  4. Click “Create Project”.

Step 2: Configure the Porter.yaml File

When asked to create a new project, you will be prompted to create a Porter.yaml file. This file defines the services, build settings, and environment variables for your application. You can give this file to help you deploy.

Step 3: Set Up Environment Variables

In Porter, you can set environment variables for your services using the environment groups. Add the environment variables required for your Quivr backend to the an environment group in the the web portal. These environment variables are the one you would normally set in your .env file when running the Quivr backend locally.

Step 4: Deploy the frontend

To deploy the Quivr frontend on Porter, use the following configuration in your Porter.yaml file:

Step 5: Setup the environment variables for the frontend

Add the environment variables required for your Quivr frontend to the an environment group in the the web portal. These environment variables are the one you would normally set in your .env file when running the Quivr frontend locally.

Step 6: Deploy the Application

  1. Click on the “Deploy” button in your Porter project.
  2. Select the branch you want to deploy (e.g., main).
  3. Click “Deploy”.
Porter will build and deploy your Quivr backend and frontend services based on the configuration in your Porter.yaml file.