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
- •Request the package and license
- •Create a server on AWS or a local VM
- •Install the package
- •Finish the setup wizard
- •Run an app built on supero.dev
- •After launch: keep apps running, HTTPS, backups, updates
ℹ️ Availability
⚠️ What this package does not include
1. Request the package and license
- •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.
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.| Term | Meaning |
|---|---|
| Organization | The top level of your data. Some settings call it the domain. One server has one organization. |
| Project | One app and its data. Setup creates it for you. The automatic default-project does not count against your limit. |
| Tenant | One customer or workspace inside a project. |
2. Create a server
| Resource | Requirement |
|---|---|
| Operating system | Ubuntu Server 22.04 LTS. Other versions and distributions are not tested. |
| Architecture | x86_64 only. ARM, including AWS Graviton and VMs on Apple Silicon Macs, will not work. |
| CPU and memory | 2 vCPU and 8 GB RAM. This is the size we run it on. |
| Disk | 30 GB |
| Access | A user with sudo |
Ports
| Port | Open to | Used for |
|---|---|---|
| 22 | Your own IP only | SSH |
| 80 | Only your own IP and the server's own public IP until setup finishes, then your users | Admin console and API |
| 5648, 5649, ... | Your users | One port per app. Not needed if you give the app a hostname. |
🚨 Do not open these ports
Internet access
| From | Needs to reach | When |
|---|---|---|
| Server | Ubuntu package mirrors, repo.mongodb.org, www.mongodb.org | Install |
| Server | pypi.org, files.pythonhosted.org | Each app's setup |
| Users' browsers | Public CDNs for scripts, styles and fonts, such as unpkg.com, cdn.tailwindcss.com, fonts.googleapis.com | Using an app |
On AWS
- 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
Choose the size
Choose
m7i-flex.large(2 vCPU, 8 GiB). If your region does not offer it, usem6i.largeort3.large. - 3
Create a key pair
Create or select a key pair and download the
.pemfile. - 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
Set the disk
The default is 8 GiB. Under Configure storage, change it to 30 GiB. Then click **Launch instance**.
- 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
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
Connect
From the folder holding the key, run
chmod 400 your-key.pem(Mac or Linux), thenssh -i your-key.pem ubuntu@<elastic-ip>.
💡 If the connection times out
On a local VM
- 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
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
Check the CPU exposes AVX
MongoDB 7 needs AVX. Run
grep -c avx /proc/cpuinfoin 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
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 updateSUPERO_URLin each app. - 5
Open the firewall if it is on
If
sudo ufw statusshows active, runsudo ufw allow 22,80/tcp, and later allow each app port withsudo ufw allow 5648/tcp. Port 80 is then open to your whole network, so finish the setup wizard right after installing. - 6
Connect
Run
ssh <your-username>@<address>. On a VM, leave out-i your-key.pembelow and use your username wherever this page saysubuntu.
3. Install the package
<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:scp -i your-key.pem supero_<version>_amd64.deb ubuntu@<server>:/tmp/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 statusSetup: required. Until a license is installed, tenant-service restarting and showing ✗ in sudo supero health is normal.4. Finish the setup wizard
http://<server>/setup in your browser. If it does not load, check port 80 in your security group or firewall.- 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
Database
Click **Local MongoDB**, then **Test Connection**. The wizard moves on when the test passes.
- 3
AI Service
Click **Skip for Now**.
- 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
Complete
Click **Launch Supero**. You are redirected to the login page.
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 limitshttp://<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
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
Download the bundle
In App Studio, click **Download .tar.gz** on the app card.
- 3
Copy it to the server
On your own computer, run
scp -i your-key.pem <your-app>.tar.gz ubuntu@<server>:~/. - 4
Unpack it
On the server, run
mkdir -p ~/apps/my-app, thentar -xzf ~/<your-app>.tar.gz -C ~/apps/my-app --strip-components=1. - 5
Point it at your server
Run
nano ~/apps/my-app/.envand replace everything in the file with the block below. API keys and passwords from supero.dev do not work on your server.
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
127.0.0.1 or localhost: the app passes this address to users' browsers.cd ~/apps/my-app
chmod 600 .env
bash run.sh --no-interactiveServing 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
| Message | Meaning |
|---|---|
ready! | Setup succeeded. |
needs creds, MISSING CONFIG | A service such as email or Stripe has no provider keys yet. The app runs. Add them under Integrations. |
ready but DEGRADED, CRUD smoke tests FAILED | Some sample records or a test were rejected. The app runs anyway. Check the rest of the output. |
NOT ready | Setup 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
SUPERO_PROJECT and PORT. Two projects can share the same schemas. Each project counts against your license limit.After launch
Keep an app running
sudo nano /etc/systemd/system/supero-app-my-app.service and paste:[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.targetsudo 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 # logsGive an app a hostname on port 80
sudo nano /etc/nginx/sites-available/supero-app-my-app, and paste: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;
}
}sudo ln -s /etc/nginx/sites-available/supero-app-my-app /etc/nginx/sites-enabled/
sudo nginx -t && sudo systemctl reload nginxUse HTTPS before real users
⚠️ The package serves plain HTTP
SUPERO_URL="https://<your-hostname>" in each app and restart it. HTTPS must be on port 443.ℹ️ Apps check the certificate
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 this | Open in the console at http://<server>/ |
|---|---|
| See or create projects | Projects |
| View and edit records | Data Explorer |
| Manage users and tenants | User Accounts, Tenants |
| Issue API keys | API Keys |
| Add email, payment or other provider keys | Integrations (shown only if your license includes it) |
Update an app
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
--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
sudo supero license install /path/to/new.lic # verifies it and restarts services
sudo supero license statusBack up and restore
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
.env holds a password.Upgrade or remove the platform
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
secrets.env. MongoDB data stays, but credentials stored in it become unreadable after a reinstall.Troubleshooting
| What you see | Cause and fix |
|---|---|
| Browser or SSH times out | Security group or firewall. Open the port, including each app's own port. |
Could not get lock /var/lib/dpkg/lock-frontend | Ubuntu is updating itself after first boot. Wait a few minutes and run the command again. |
run.sh hangs or cannot connect | The server cannot reach its own SUPERO_URL. On AWS, add the Elastic IP to the HTTP rule. |
./run.sh: Permission denied | Use 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 setup | The 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 setup | Run 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 VM | The VM's CPU does not expose AVX. See On a local VM. |
| The app came up on another port | Something 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 else | Run sudo journalctl -u 'supero-*' --no-pager -n 300 and send the output to [email protected]. |
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
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).On this page