S
supero.docs
Documentation/Deployment/On-Premise Deployment

On-Premise Deployment

Install the Supero platform on an Ubuntu server you control, on AWS or a local VM, then run apps you built on supero.dev against it.

Overview

You install the Supero platform (API, admin console, data) once on a server you control, then run each app on that server. Logins, data and schemas stay on your server. You still build apps on supero.dev.

ℹ️ Availability

On-prem is a pilot, available on request. The package is not publicly downloadable.

⚠️ What this package does not include

App generation and other AI features are not included, so build apps on supero.dev. Connectors and the AI Data Agent are not included either; see On-Prem Add-Ons. Billing appears in the console menu but does not apply on this server. Fully air-gapped installs are not covered here: the install needs internet access.

1. Request the package and license

Send the on-prem request form, or email [email protected], with:
  • •Organization name for this server: lowercase letters, numbers and hyphens, such as acme-corp. It is written into the license and cannot be changed on the server.
  • •How many projects you need, and how many tenants per project.
  • •Whether you need integrations such as email and payments.
We reply with the package (supero_<version>_amd64.deb), its SHA-256 checksum, and a signed license file (.lic). The license sets your organization name, expiry, add-ons and limits.
TermMeaning
OrganizationThe top level of your data. Some settings call it the domain. One server has one organization.
ProjectOne app and its data. Setup creates it for you. The automatic default-project does not count against your limit.
TenantOne customer or workspace inside a project.

2. Create a server

ResourceRequirement
Operating systemUbuntu Server 22.04 LTS. Other versions and distributions are not tested.
Architecturex86_64 only. ARM, including AWS Graviton and VMs on Apple Silicon Macs, will not work.
CPU and memory2 vCPU and 8 GB RAM. This is the size we run it on.
Disk30 GB
AccessA user with sudo

Ports

PortOpen toUsed for
22Your own IP onlySSH
80Only your own IP and the server's own public IP until setup finishes, then your usersAdmin console and API
5648, 5649, ...Your usersOne port per app. Not needed if you give the app a hostname.

🚨 Do not open these ports

Never open 27017 (MongoDB), 6379 (Redis), 8082, 8083 or 8092 (internal services). They listen on localhost only, and MongoDB and Redis have no password by default.

Internet access

FromNeeds to reachWhen
ServerUbuntu package mirrors, repo.mongodb.org, www.mongodb.orgInstall
Serverpypi.org, files.pythonhosted.orgEach app's setup
Users' browsersPublic CDNs for scripts, styles and fonts, such as unpkg.com, cdn.tailwindcss.com, fonts.googleapis.comUsing an app

On AWS

  1. 1

    Choose the image

    In the EC2 console, click **Launch instance**. Under Quick Start click **Ubuntu**. It defaults to a newer release, so open the AMI list and choose **Ubuntu Server 22.04 LTS (HVM), SSD Volume Type**, then **64-bit (x86)**.

  2. 2

    Choose the size

    Choose m7i-flex.large (2 vCPU, 8 GiB). If your region does not offer it, use m6i.large or t3.large.

  3. 3

    Create a key pair

    Create or select a key pair and download the .pem file.

  4. 4

    Set the security group

    Under Network settings click **Edit**. Set the SSH rule's source to **My IP**. Click **Add security group rule**, choose type **HTTP**, source **My IP**. Open HTTP wider only after you finish the setup wizard, because the setup steps have no login: until you finish, anyone who can reach the server can reset your progress, and once your license is uploaded they can set the admin password themselves.

  5. 5

    Set the disk

    The default is 8 GiB. Under Configure storage, change it to 30 GiB. Then click **Launch instance**.

  6. 6

    Attach an Elastic IP

    In the left menu open **Network & Security > Elastic IPs**, click **Allocate Elastic IP address**, then **Actions > Associate Elastic IP address** and pick your instance. Without one, the public IP changes when you stop and start the instance, and your apps are configured with that address. AWS bills for Elastic IPs, so release it if you delete the server.

  7. 7

    Let the server reach itself

    In the security group, add one more HTTP rule with source <elastic-ip>/32. Apps on the server reach the platform through its public address, and setup hangs without this rule unless HTTP is open to Anywhere.

  8. 8

    Connect

    From the folder holding the key, run chmod 400 your-key.pem (Mac or Linux), then ssh -i your-key.pem ubuntu@<elastic-ip>.

💡 If the connection times out

A timeout on SSH or in the browser usually means the security group. If your IP changed, update the My IP rules. A key problem shows "Permission denied" instead.

On a local VM

  1. 1

    Create the VM

    In VirtualBox, VMware or KVM, create a VM with the resources above and install the **Ubuntu Server 22.04 LTS amd64** ISO. Select **Install OpenSSH server** in the installer. Afterwards run sudo lvextend -r -l +100%FREE /dev/ubuntu-vg/ubuntu-lv, because the installer's default layout leaves part of the disk unused.

  2. 2

    Use bridged networking

    Set the network adapter to **Bridged** so your laptop and other machines can reach the VM. If your Wi-Fi blocks bridging, use a wired network.

  3. 3

    Check the CPU exposes AVX

    MongoDB 7 needs AVX. Run grep -c avx /proc/cpuinfo in the VM. If the result is 0: on KVM, set the CPU type to host-passthrough. On Windows with VirtualBox or VMware, turn off Hyper-V and Memory Integrity, then reboot. A CPU without AVX cannot run this package.

  4. 4

    Fix the address

    Run hostname -I, then reserve that address for the VM in your router. Your apps are configured with it, so if it changes you must update SUPERO_URL in each app.

  5. 5

    Open the firewall if it is on

    If sudo ufw status shows active, run sudo ufw allow 22,80/tcp, and later allow each app port with sudo ufw allow 5648/tcp. Port 80 is then open to your whole network, so finish the setup wizard right after installing.

  6. 6

    Connect

    Run ssh <your-username>@<address>. On a VM, leave out -i your-key.pem below and use your username wherever this page says ubuntu.

3. Install the package

Below, replace anything in <angle brackets>, including the brackets. <server> is your Elastic IP or VM address. In a terminal on your own computer, from the folder holding the package, run:
bash
scp -i your-key.pem supero_<version>_amd64.deb ubuntu@<server>:/tmp/
On the server, compare the checksum with the one we sent, then install:
bash
sha256sum /tmp/supero_<version>_amd64.deb

sudo apt-get update
sudo apt-get install -y /tmp/supero_<version>_amd64.deb
sudo supero install-deps     # installs MongoDB 7.0
sudo supero restart
sudo supero status
You should see Setup: required. Until a license is installed, tenant-service restarting and showing ✗ in sudo supero health is normal.

4. Finish the setup wizard

Open http://<server>/setup in your browser. If it does not load, check port 80 in your security group or firewall.
  1. 1

    License

    Tick **I have a license file (.lic)**. Enter your admin email, then upload or paste the license file. The organization name comes from the file.

  2. 2

    Database

    Click **Local MongoDB**, then **Test Connection**. The wizard moves on when the test passes.

  3. 3

    AI Service

    Click **Skip for Now**.

  4. 4

    Password

    Set the admin password: at least 8 characters, with upper and lower case letters and a number. Avoid $, ", ` ` and \, because this password goes into each app's .env` file.

  5. 5

    Complete

    Click **Launch Supero**. You are redirected to the login page.

Services restart by themselves over about 30 seconds. Then check:
bash
sudo supero status          # Setup: complete, Admin key: wired
sudo supero health          # every line shows ✓ (tenant-service shows ✗ if your license does not include integrations)
sudo supero license status  # your organization, expiry and limits
Sign in at http://<server>/ with your admin email and password. You do not need to enter an Organization, so leave Advanced options closed. Then widen the HTTP rule for your users if you limited it to your own IP.

5. Run an app built on supero.dev

  1. 1

    Build the app

    Sign up at app.supero.dev/register and build the app in App Studio or through MCP. This account is separate from your server's admin account, and its organization name does not need to match.

  2. 2

    Download the bundle

    In App Studio, click **Download .tar.gz** on the app card.

  3. 3

    Copy it to the server

    On your own computer, run scp -i your-key.pem <your-app>.tar.gz ubuntu@<server>:~/.

  4. 4

    Unpack it

    On the server, run mkdir -p ~/apps/my-app, then tar -xzf ~/<your-app>.tar.gz -C ~/apps/my-app --strip-components=1.

  5. 5

    Point it at your server

    Run nano ~/apps/my-app/.env and replace everything in the file with the block below. API keys and passwords from supero.dev do not work on your server.

bash
SUPERO_URL="http://<server>"
SUPERO_DOMAIN="<your organization>"
SUPERO_ADMIN_EMAIL="<your admin email>"
SUPERO_PASSWORD="<your admin password>"
SUPERO_PROJECT="my-app"
PORT="5648"

⚠️ SUPERO_URL is the address people use

Use the Elastic IP or the VM's address, with no port. Do not use 127.0.0.1 or localhost: the app passes this address to users' browsers.
Run setup and start the app:
bash
cd ~/apps/my-app
chmod 600 .env
bash run.sh --no-interactive
This creates the project, uploads the schemas, loads the app's sample data and starts it. When you see Serving on http://0.0.0.0:5648, open port 5648 (on AWS, a **Custom TCP** rule) and browse to http://<server>:5648. Press Ctrl-C to stop it. The next section keeps it running.

Messages during setup

MessageMeaning
ready!Setup succeeded.
needs creds, MISSING CONFIGA service such as email or Stripe has no provider keys yet. The app runs. Add them under Integrations.
ready but DEGRADED, CRUD smoke tests FAILEDSome sample records or a test were rejected. The app runs anyway. Check the rest of the output.
NOT readySetup stopped and the app does not start. Fix the error shown, usually in the app's setup.py sample data, and run again.

More than one app

Give each app its own folder, SUPERO_PROJECT and PORT. Two projects can share the same schemas. Each project counts against your license limit.

After launch

Keep an app running

Run it as a service so it survives logout and restarts after a crash. Run sudo nano /etc/systemd/system/supero-app-my-app.service and paste:
ini
[Unit]
Description=Supero app: my-app
After=network-online.target supero.target
StartLimitIntervalSec=0

[Service]
User=ubuntu
WorkingDirectory=/home/ubuntu/apps/my-app
EnvironmentFile=/home/ubuntu/apps/my-app/.env
ExecStart=/home/ubuntu/apps/my-app/.venv/bin/python ui/server.py
Restart=always
RestartSec=5

[Install]
WantedBy=multi-user.target
bash
sudo systemctl daemon-reload
sudo systemctl enable --now supero-app-my-app
sudo systemctl status supero-app-my-app
sudo journalctl -u supero-app-my-app -f     # logs

Give an app a hostname on port 80

With this you do not need to open the app's port. Point a DNS name at the server, run sudo nano /etc/nginx/sites-available/supero-app-my-app, and paste:
nginx
server {
    listen 80;
    server_name shop.example.com;
    client_max_body_size 100m;
    location / {
        proxy_pass http://127.0.0.1:5648;
        proxy_set_header Host $host;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
    }
}
bash
sudo ln -s /etc/nginx/sites-available/supero-app-my-app /etc/nginx/sites-enabled/
sudo nginx -t && sudo systemctl reload nginx

Use HTTPS before real users

⚠️ The package serves plain HTTP

Logins and data are unencrypted on the network until you add TLS. Put a TLS proxy or load balancer on port 443 in front of the console and each app. This setup is yours to configure and is outside what we have tested. Then set SUPERO_URL="https://<your-hostname>" in each app and restart it. HTTPS must be on port 443.

ℹ️ Apps check the certificate

Apps built with supero 3.7.14 or later verify the server's TLS certificate. If your proxy uses a certificate from your own CA, add SUPERO_CA_BUNDLE="/path/to/ca.pem" (a CA file or directory) to each app's .env and restart it. The bundle must contain your CA, because the SDK checks against certifi, not the operating system's store. SUPERO_VERIFY_SSL=false turns checking off and is logged; use it only as a last resort. An app built with an older SDK keeps its old behaviour until it is rebuilt or redeployed.

Work with your data and users

To do thisOpen in the console at http://<server>/
See or create projectsProjects
View and edit recordsData Explorer
Manage users and tenantsUser Accounts, Tenants
Issue API keysAPI Keys
Add email, payment or other provider keysIntegrations (shown only if your license includes it)
Select the project at the top of the console first. Integrations call the provider from your server, so the server needs outbound access to it.

Update an app

Download the new bundle from supero.dev, copy it to the server as before, then run:
bash
cp ~/apps/my-app/.env ~/my-app.env.bak
tar -xzf ~/<your-app>.tar.gz -C ~/apps/my-app --strip-components=1
cp ~/my-app.env.bak ~/apps/my-app/.env
chmod 600 ~/apps/my-app/.env

cd ~/apps/my-app
bash run.sh --setup-only --no-interactive
sudo systemctl restart supero-app-my-app

⚠️ Setup loads sample data again

Sample records you deleted can come back. Add --no-seed to the run.sh line if the app's setup.py supports it, or remove the sample data from setup.py before a real launch.

Renew or change the license

Copy the new file to the server, then run:
bash
sudo supero license install /path/to/new.lic   # verifies it and restarts services
sudo supero license status
The new license must be for the same organization. An expired license keeps serving your organization and limits, but integrations stop once any grace period in your license ends. Renew before it expires.

Back up and restore

bash
cd ~
mongodump --db=supero --gzip --archive=supero-mongo.archive.gz
sudo tar -czf supero-files.tgz /etc/supero /etc/supero-system /var/lib/supero/storage
sudo chmod 600 supero-files.tgz; chmod 600 supero-mongo.archive.gz

# restore on the same server
sudo supero stop
sudo tar -xzf supero-files.tgz -C /
mongorestore --drop --gzip --archive=supero-mongo.archive.gz
sudo supero restart

🚨 Keep /etc/supero-system/secrets.env

Without it, stored credentials cannot be read, even with a good database backup. These backups contain secrets, so store them securely. Also back up each app's folder, since its .env holds a password.

Upgrade or remove the platform

bash
sudo apt-get install -y /tmp/supero_<new-version>_amd64.deb   # stops, upgrades and restarts

sudo apt-get remove supero    # removes the program, keeps configuration
sudo apt-get purge supero     # also deletes /etc/supero* and /var/lib/supero

🚨 Back up before purge

Purge deletes secrets.env. MongoDB data stays, but credentials stored in it become unreadable after a reinstall.

Troubleshooting

What you seeCause and fix
Browser or SSH times outSecurity group or firewall. Open the port, including each app's own port.
Could not get lock /var/lib/dpkg/lock-frontendUbuntu is updating itself after first boot. Wait a few minutes and run the command again.
run.sh hangs or cannot connectThe server cannot reach its own SUPERO_URL. On AWS, add the Elastic IP to the HTTP rule.
./run.sh: Permission deniedUse bash run.sh.
"This server is still starting up"Wait a minute. sudo supero status shows progress.
"Setup is not complete on this server"Finish the wizard at http://<server>/setup.
"This server does not have a valid license installed"Run sudo supero license status; reason says why. Install a valid file with sudo supero license install FILE.lic.
"This organization is not licensed on this server"The Organization typed under Advanced options is wrong. Leave it empty.
Schema namespace collision during setupThe schema belongs to another project in your organization, and a project cannot upload over it. Link the existing schema, or give the new schema its own namespace.
"License limit reached"You have used all the projects or tenants in your license. Ask [email protected] for a new license.
tenant-service keeps restarting after setupRun sudo supero license status and check features, status and machine_ok. The license may not include integrations, may be past its grace period, or may be locked to another machine.
mongod fails to start on a local VMThe VM's CPU does not expose AVX. See On a local VM.
The app came up on another portSomething held the port when you ran run.sh, so it took the next free port and updated .env. Stop the other process and set PORT back.
Anything elseRun sudo journalctl -u 'supero-*' --no-pager -n 300 and send the output to [email protected].
bash
sudo supero status                    # services and setup state
sudo supero health                    # health check for each service
sudo supero logs [api|core|tenant]    # follow logs
sudo supero restart                   # restart all services
sudo supero config                    # config files and non-secret settings
sudo supero license status            # the license in force

⚠️ Two programs are called supero

The supero command above comes with this package and needs sudo. The supero you install with pip runs a single app and has different commands. See CLI (App Runner).