Spanish Total.js
English
Documentation For AI agents
Contents

Upload source code

Put the code of an app on the server from a ZIP file, with an optional backup and NPM install.

.md GitHub
On this page

You give SuperAdmin the code of an app as a ZIP file. SuperAdmin unpacks it into the app folder and starts the app again.

The ZIP file must hold the files of the app at its top level, for example:

controllers/default.js
config
package.json

A ZIP file whose top level is a single folder, such as app/controllers/..., does not work, because SuperAdmin unpacks it as it is.

Upload a ZIP file

  1. In the list, open the menu (three dots) of the app and select Upload source-code. After you add an app, this dialog opens by itself.
  2. In Source-code, choose Upload ZIP file.
  3. Choose the options you need (see The options).
  4. Select SUBMIT, then Continue.
  5. Choose the ZIP file on your computer.

The Upload source-code dialog

When SuperAdmin shows Source-code has been applied successfully, the app runs with the new code.

The options

  • Performs NPM install: runs npm install in the app folder when the ZIP has a package.json.
  • Creates a backup: saves the current files of the app first, so that you can restore them. See Backups.
  • Removes all files in the root of application: deletes the old files before it unpacks the new ones. It is selected by default.

The dialog says that a ZIP file can have up to 10 MB.

Restore a backup

When you uploaded with Creates a backup, Restore a backup in Source-code puts those files back. See Backups.

Change a single file

To change one file without a new ZIP, use the File browser.

Made in Europe