avec call

This commit is contained in:
eleonore12345 2024-07-29 18:02:49 +02:00
parent 5280829d60
commit 856768a470

View File

@ -10,12 +10,25 @@ On every server, there will be an instance of the Shl8s deployer. This C++ deplo
It then procedes to execute the right functions for the service.
The deployer will call bash scripts specific to the service, as well as functions from libraries specific to setting the nginx configuration, the vpn, ssl certification, etc.
# Call
./deployer
mini interaction ?
1 - if you want to deploy all services
2 - if you want to deploy one service
name of service :
3 - if you want to remove all services
4 - if you want to remove one service
name of service :
or just a call ./deployer deploy/remove all/service_name
# Description
deploy_service(service)
{
- determines if the service is on this server
if it is:
- checks the environment
- checks the environment (/data/mounted and new nginx conf exists)
- creates directories (secret, data, http) if necessary
- calls the bash scripts specific to the service if they exist (deploy_as)
- creates user and .env variables if necessary