Spanish Total.js
English
Documentation For AI agents
Contents

Add an application

Register a web app with its address so that SuperAdmin runs it and configures Nginx.

.md GitHub
On this page

An application in SuperAdmin is a web app with its own address. SuperAdmin creates a folder for it, writes its Nginx file and starts it. You add the code right after, in the next step.

Before you add an app, point the DNS A record of its domain to the server.

Add the app

1. Select Add > App.

The Add menu with App and Service

2. In URL address, type the full address with http:// or https://, for example http://shop.example.com.

3. In Internal name, type a name for the list, for example Demo shop.

4. Choose or type a Category. Apps with the same category are shown together.

5. Choose the mode. Enable debug mode is selected for a new app; clear it for an app in production. See Debug and release mode.

6. Under Type of application, choose Total.js v4, Total.js v3 or Custom. For other Node.js apps, see Run a plain Node.js app.

7. Select SUBMIT.

The Create application form

SuperAdmin saves the app and opens Upload source-code at once. Continue with Upload source code.

The other fields are described in Application settings. You can change them later with Settings in the menu of the app.

What SuperAdmin creates

  • A folder in /www/www/ named after the domain, for example /www/www/demo_test for demo.test and /www/www/example_com-shop for shop.example.com.
  • An Nginx file in /www/nginx/ that passes the domain to the app. For a domain such as example.com, it also redirects www.example.com to it.
  • A start script index.js in the app folder. Do not replace it: SuperAdmin writes it again on every start.
  • A port number. The first app gets 8000, the next one 8001, and so on. A Total.js v4 app with Use Unix socket talks to Nginx through a socket file instead.

Debug and release mode

  • In debug mode, the app starts again by itself a few seconds after you change one of its files. The list shows a purple debug badge.
  • In release mode, the app runs as it is. Each time it starts, SuperAdmin copies its previous log to /www/logs/.

Changing the mode restarts the app.

Made in Europe