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.
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.
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.
Click on the cog icon on the left sidebar.
Click on the
Database
from project settings sidebar.Select
Session Mode
instead ofConnection Pool
and SelectNode.js
as the URL format.Copy the
DATABASE_URL
and replace[YOUR-PASSWORD]
with the password you provided to the project.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.