avec call
This commit is contained in:
parent
5280829d60
commit
856768a470
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user