Exemple #1
0
        private static void RebuildConfigs()
        {
            _context.LoadConfiguration();

            var environmentFileBuilder = new EnvironmentFileBuilder(_context);

            environmentFileBuilder.BuildForUpdater();

            var nginxBuilder = new NginxConfigBuilder(_context);

            nginxBuilder.BuildForUpdater();

            var appIdBuilder = new AppIdBuilder(_context);

            appIdBuilder.Build();

            var assetLinksBuilder = new AssetLinksBuilder(_context);

            assetLinksBuilder.Build();

            var dockerComposeBuilder = new DockerComposeBuilder(_context);

            dockerComposeBuilder.BuildForUpdater();

            _context.SaveConfiguration();
            Console.WriteLine(string.Empty);
        }
Exemple #2
0
        private static void RebuildConfigs()
        {
            var environmentFileBuilder = new EnvironmentFileBuilder();

            environmentFileBuilder.BuildForUpdater();

            var url = Helpers.GetValueFronEnvFile("global", "globalSettings__baseServiceUri__vault");

            if (!Uri.TryCreate(url, UriKind.Absolute, out Uri uri))
            {
                Console.WriteLine("Unable to determine existing installation url.");
                return;
            }

            var domain = uri.Host;

            var nginxBuilder = new NginxConfigBuilder(domain, url);

            nginxBuilder.BuildForUpdater();

            var appSettingsBuilder = new AppSettingsBuilder();

            appSettingsBuilder.Build();

            var appIdBuilder = new AppIdBuilder(url);

            appIdBuilder.Build();

            var dockerComposeBuilder = new DockerComposeBuilder(_hostOs, _webVersion, _coreVersion);

            dockerComposeBuilder.BuildForUpdater();
        }