Spanish Total.js
English
Documentation For AI agents
Contents

Run Tables in production

Keep Tables running on a server, protect it, and back up its data.

.md Website
On this page

Tables is a Node.js application. On a server, keep it running with a process manager and put it behind a web server with HTTPS.

Keep it running

Run the app with a process manager such as systemd or PM2, so it starts with the server and restarts after an error. The command is the same as by hand, run in the folder of the app:

node index.js 8000

To start the app in release mode, add --release:

node index.js 8000 --release

Protect access

  • Change the generated account at the first sign-in.
  • Serve Tables over HTTPS, for example with nginx in front of it, and set url in the config file to the public address.
  • Do not open the PostgreSQL port to the internet.
  • Give each application its own API token, and remove the tokens you do not use.

Back up

All your data is in PostgreSQL: the records, the settings of the tables, the views, the versions and the API tokens. Back up the database with your usual tool, for example:

pg_dump --format=custom --file=tables.backup tables

Also keep a copy of the config file and of the folder databases in the app folder, which holds the account.

Made in Europe