PyAPplus64/examples/applus_configs.py

32 lines
1.3 KiB
Python
Raw Permalink Normal View History

2023-05-04 15:06:55 +02:00
# Copyright (c) 2023 Thomas Tuerk (kontakt@thomas-tuerk.de)
#
# This file is part of PyAPplus64 (see https://www.thomas-tuerk.de/de/pyapplus64).
#
# Use of this source code is governed by an MIT-style
# license that can be found in the LICENSE file or at
# https://opensource.org/licenses/MIT.
import pathlib
2023-11-13 12:36:21 +01:00
from PyAPplus64.applus import APplusServerConfigDescription
2023-05-04 15:06:55 +02:00
2023-11-13 12:36:21 +01:00
basedir = basedir = pathlib.Path(__file__) # Adapt to your needs
2023-05-04 15:06:55 +02:00
configdir = basedir.joinpath("config")
serverConfYamlDeploy = configdir.joinpath("applus-server-deploy.yaml")
serverConfYamlTest = configdir.joinpath("applus-server-test.yaml")
serverConfYamlProd = configdir.joinpath("applus-server-prod.yaml")
2023-11-13 12:36:21 +01:00
serverConfDescProdEnv1 = APplusServerConfigDescription("Prod/Env1", serverConfYamlProd, env="Env1")
serverConfDescProdEnv2 = APplusServerConfigDescription("Prod/Env2", serverConfYamlProd, env="Env2")
serverConfDescTestEnv1 = APplusServerConfigDescription("Test/Env1", serverConfYamlTest, env="Env1")
serverConfDescTestEnv2 = APplusServerConfigDescription("Test/Env2", serverConfYamlTest, env="Env2")
serverConfDescDeploy = APplusServerConfigDescription("Deploy", serverConfYamlDeploy)
serverConfDescs = [
serverConfDescProdEnv1,
serverConfDescProdEnv2,
serverConfDescTestEnv1,
serverConfDescTestEnv2,
serverConfDescDeploy
]