Setting Up a Production Server

SETUP Production Server

USE SUDO

To set up your production server, follow these steps:

bench config dns_multitenant on

sudo bench setup production erpnext
sudo bench setup redis
sudo bench setup socketio
sudo bench setup supervisor
sudo supervisorctl reload
sudo service supervisor stop all
sudo service supervisor start all
sudo service supervisor restart

sudo service nginx restart

Checking Supervisor Process

Run the following commands to check and manage the Supervisor process:

> sudo systemctl status supervisor

> sudo systemctl start supervisor
> sudo systemctl start nginx

> sudo systemctl enable supervisor
> sudo systemctl enable nginx

> sudo supervisorctl start all


Common Commands

Here are some common commands for managing Supervisor:

  • View the status of all managed processes:

    supervisorctl status
    
  • Start a specific process:

    supervisorctl start <program>
    
  • Stop a specific process:

    supervisorctl stop <program>
    
  • Restart a specific process:

    supervisorctl restart <program>
    
  • Reload the configuration file:

    supervisorctl reread
    
  • Apply changes after rereading the configuration:

    supervisorctl update
    

Notes

  • Ensure that you have sudo privileges before running these commands.
  • Always verify the status of your nginx and supervisor services after making changes.
Discard
Save

On this page

Review Changes ← Back to Content
رسالة الحالة Space Raised By Last update on