Skip to content
On this page

Self Hosting (Railway)

Here are the steps to get a Railway instance of the dialoqbase server up and running.

WARNING

Dialoqbase use nice amount of memory. So, make sure you add credit limit to your Railway account.

In case any issue related to Railway, you can check out this thread on GitHub: #203

Prerequisites

Steps

Follow the steps below to get a Railway instance of the dialoqbase server up and running.

One Click Deploy

Just click on the button below to deploy the template on Railway.

Deploy on Railway

You need to provide the following environment variables:

  • DATABASE_URL

Setting up a Supabase Database

Login to your Supabase account and follow the steps below to setup the database.

1. Create a new project

Click on the New Project button to create a new project. and wait for the project to be created.

You need to remember the password you provide to the project 😁.

2. Copy the URL

WARNING

You must use Session Mode instead of Connection Pool otherwise the server will not work properly.

Once the project is created, next step is to get the database URL.

  1. Click on the cog icon on the left sidebar.

  2. Click on the Database from project settings sidebar.

  3. Select Session Mode instead of Connection Pool and Select Node.js as the URL format.

  4. Copy the DATABASE_URL and replace [YOUR-PASSWORD] with the password you provided to the project.

  5. Paste the DATABASE_URL in the railway environment variables.

That's it! You have successfully setup the database.

Launch the server

After setting up the database and the OpenAI API Key, you can now launch the server by clicking Deploy button. This may take a few minutes to deploy the server be patient.

MIT Licensed Open Source Project