To restart the Automate-IT server, simply login as ait user and type the following command:

$ sudo systemctl restart factory.target


This will restart the nginx server as well as the gunicorn and rabbitMQ servers.