Spanish Total.js
English
Documentation For AI agents
Contents

Folders and files

Where SuperAdmin keeps itself, your apps, the Nginx files, certificates, logs and backups.

.md GitHub
On this page

SuperAdmin keeps everything in the folder /www/ on the server.

PathWhat it holds
/www/superadmin/SuperAdmin and its scripts run.sh, reconfigure.sh and ssl.sh.
/www/superadmin/.src/databases/The data of SuperAdmin: apps, users, alarms, settings and notifications.
/www/superadmin/logs/debug.logThe output of SuperAdmin.
/www/superadmin/user.guidThe Linux user that runs the apps, as name:uid:gid.
/www/www/One folder per app.
/www/nginx/One Nginx file per app, plus superadmin.conf for SuperAdmin itself.
/www/ssl/Certificates. superadmin.key and superadmin.csr are the built-in self-signed certificate.
/www/logs/Earlier logs of apps in release mode, earlier logs of SuperAdmin, and access logs.
/www/node_modules/The total4 and total.js packages that the apps use.
/www/*.tar.gzBackups. See Backups.

Files in an app folder

FileWhat it is
index.jsThe start script that SuperAdmin generates for Total.js apps. SuperAdmin writes it again on every start.
logs/debug.logThe output and errors of the app.
superadmin.pidThe process id of the app. Do not remove it.
superadmin.socketThe Unix socket between Nginx and the app, when the app uses one. Do not remove or open it.
restartCreate this file to make SuperAdmin restart the app. See Restart an app from its own code.

Restart SuperAdmin

As root on the server:

bash /www/superadmin/run.sh

The script stops the running SuperAdmin and starts it again. Your apps keep running.

Made in Europe