Setting up Orbit in your server
You require basic knowledge in usage of terminal as well as NextJS.
Planetary is not responsible for any user errors caused during the setup process or usage.
Prerequisites
- A machine that is capable of running Command/Console tasks (e.g. Ubuntu)
- Root access
- PostgreSQL Database
- Package manager (e.g. npm)
- Domain and SSL Encryption
Installing Orbit
Once you’re connected to your server, follow the command guide below in your terminal/console session.
- Update your Server
sudo apt update
sudo apt upgrade
- Install Required packages
sudo apt install git curl build-essential -y
- Install Node.js (v20+) and your package manager
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
sudo apt install -y nodejs
- Install PostgresSQL
sudo apt install postgresql postgresql-contrib -y
sudo systemctl enable --now postgresql
- Create PostgreSQL User and Database
CREATE USER orbituser WITH PASSWORD 'strongpassword';
CREATE DATABASE orbitdb OWNER orbituser;
\q
Ensure you replace “strongpassword” with your own unique password.
- Clone Orbit Repository
git clone https://github.com/PlanetaryOrbit/orbit && cd orbit
- Install Orbit Dependencies
- Create
.env configuration file
Paste the following:
DATABASE_URL="postgresql://orbituser:strongpassword@localhost:5432/orbitdb"
SESSION_SECRET="your_32_character_generated_key"
Remember to replace “strongpassword” with your chosen secure password from earlier.Generate a 32-character session key here: 1Password Generator
Save and close (Ctrl + X -> Y -> Enter)
- Build Orbit
- Initialize Database
- Start Orbit
- Run Orbit in Background with PM2 (RECOMMENDED)
pm2 start npm --name="Orbit" -- start
Remember to build your database otherwise you won’t be able to access your workspace.
-
Complete setup via Web Interface
-
Go to https://your.server.com - Must be SSL
-
Enter your Roblox Group ID
-
Enter your Roblox username and a password
-
🎉 You’re all set!
Looking to make your syncing automatic?
View our Automation Setup guide here.