The process is the same as create-tachybase-app Installation.
pnpm install --production>>> For more details, see the complete "Environment Variables" list <<<
Tachybase has built-in PM2 for managing application processes. In production, you can simply run pnpm start. To run it in the background, add the -d parameter, for example:
More PM2 commands
In production, you can consider having Nginx serve static files. Tachybase provides the create-nginx-conf command to generate Nginx configuration files.
The file is located at ./storage/tachybase.conf. Adjust it according to your actual situation, and then add it to /etc/nginx/sites-enabled, for example:
Notes
APP_PUBLIC_PATH environment variable. After configuration, re-run the create-nginx-conf command;tachybase.conf according to your actual situation, such as configuring the domain name;/app/tachybase/ is the example application directory, adjust it according to your actual situation;/etc/nginx/sites-enabled is the default Nginx configuration path, which may vary in practice. You can check with nginx -V;