docs/docs/en/quickstart/production/index.md
If your NocoBase can already run normally on the server, you usually need to add two more capabilities before it is officially launched:
Corresponding to the NocoBase CLI, it mainly consists of the following two sets of commands:
nb app autostartnb proxyThis set of documents is mainly divided into two parts:
You can first see which piece you need more currently, and then enter the corresponding page.
That is to say:
nb app autostart solves the problem of "how to resume operation of applications after system startup"nb proxy solves the problem of "how to provide stable access to the outside world":::tip Why don’t you directly use Docker, PM2 or Supervisor’s own self-starting configuration here?
nb app autostart does not bypass these process management methods, but uniformly adapts different process management methods, and then converges them into a stable set of self-starting management entrances. In this way, you don't need to remember a different set of self-starting configurations because the underlying layer is Docker, PM2, or Supervisor that may be supported in the future.
When the system starts this layer, it will continue to be processed by systemd, launchd or the host startup script. They are responsible for executing once when the machine starts:
nb app autostart run
This command will then pull up all applications that have auto-start enabled.
Here are two layers of things that should not be mixed together:
systemd, launchd, and host startup scripts are closer to "what command to execute when the system starts"If you happen to be stuck here "Why do you need nb app autostart", just continue to read Application auto-start and nb app design intent.
:::
| I want... | Where to look |
|---|---|
| Let the server restart first and then the application can automatically resume running | Application auto-start |
| First understand the entry relationship of Nginx / Caddy in this CLI | Reverse proxy |
| Continue to use Nginx to manage the site entrance | Nginx |
| Connect HTTPS as soon as possible and maintain less TLS details | Caddy |
| View the startup, stop, logs and upgrades of the application itself | Manage Application |
appPort has been saved in envIf you have not completed the CLI installation or env initialization, go back to Installation using CLI (recommended).
If the command prompts that env is missing appPort, first execute nb env update to fill it in.