Applications
Common questions about running apps in SuperAdmin.
On this page
My app answers "502 Bad Gateway"
Nginx cannot reach the app. The app is stopped, is still starting, or stopped with an error. Select Show logs to read the log, then Restart. See Logs and analyzator.
A Custom app must listen on the port SuperAdmin gives it. See Run a plain Node.js app.
My change to a file does not show
In release mode, an app reads its files only when it starts. Select Restart, or use debug mode while you work on the app.
I changed a setting and nothing happened
Some settings take effect at the next start. See Change application settings.
Why are there files named superadmin.pid and superadmin.socket in my app?
SuperAdmin stores the process id of the app in superadmin.pid. superadmin.socket is the Unix socket between Nginx and the app. Do not remove or open them. See Folders and files.
Can I edit index.js of my app?
- SuperAdmin writes
index.jsagain on every start of a Total.js app. Put your code in the usual Total.js folders, such ascontrollers/anddefinitions/.
How do I see the requests to my app?
Select Enable access logging in the settings of the app. Nginx then writes each request to /www/logs/<folder name>--access.log.