Restarting Vidjil
Jump to navigation
Jump to search
Sometimes a Vidjil instance needs to be restarted, such as when the application went down for unforeseen reasons or when you need to reload it. Another important aspect of performing a restart is whether or not the Vidjil instance in question is the production server. Therefore, we present below two sets of instructions on how to perform this task, one for the production server and one for test servers in general.
Restarting the Vidjil production instance
- send an email to the users to let them know Vidjil will be undergoing a brief maintenance. User emails can be obtained by going to the users tab in the web application (https://vidjil.boldrini.org.br/).
- access the Vidjil production server (
vidjil.boldrini.org.br
) viassh
. - go to the Vidjil Docker directory:
cd ~vidjil/code/2020-vidjil/docker
- check the status of the Docker containers. Vidjil is composed by 5 containers, and when the application is down, usually at least one of the containers will also be down.
docker-compose ps
- shut down the 5 containers:
docker-compose -f docker-compose-wrapper.yml down
- after the shut down is finished, restart the containers:
docker-compose -f docker-compose-wrapper.yml up -d
- after the containers finish restarting, check if the service is indeed back online both by running
docker-compose ps
(all containers must be up) and by accessing the web application. - send another email to the users, letting them know that the maintenance is finished and that Vidjil is back online.
Restarting a generic Vidjil instance
- access your Vidjil server.
- go to the Vidjil Docker directory.
cd <path/to/vidjil>/docker
- check the status of the Docker containers. Vidjil is composed by 5 containers, and when the application is down, usually at least one of the containers will also be down.
docker-compose ps
- shut down the 5 containers:
docker-compose -f docker-compose-wrapper.yml down
- after the shut down is finished, restart the containers:
docker-compose -f docker-compose-wrapper.yml up -d
- after the containers finish restarting, check if the service is indeed back online both by running
docker-compose ps
(all containers must be up) and by accessing the web application.