Step-by-step guide to deploying a MentraOS app on Ubuntu using Bun, systemd, Nginx, DNS, and Let’s Encrypt for HTTPS.
1.0.0
or similar.
myapp
with the name of your app)
Option A: Using Git (Recommended)
If your code is in a Git repository:
.env
file:
Ctrl+C
to stop the test server.
User
and ExecStart
paths based on your setup. The Bun path shown is the default installation location.
@
(for root domain) or myapp
(for subdomain)A
myapp.example.org
with your actual domain):
https://myapp.example.org
https://myapp.example.org/webview
ls -la /opt/myapp
.env
file contains correct values