mirror of
https://github.com/bitwarden/server.git
synced 2025-04-12 08:38:13 -05:00
rebuild instructions
This commit is contained in:
parent
310e6bcf61
commit
69605fab5b
@ -188,7 +188,9 @@ namespace Bit.Setup
|
||||
|
||||
public class Configuration
|
||||
{
|
||||
[Description("Full URL for accessing the installation from a browser. (Required)")]
|
||||
[Description("Note: After making changes to this file you need to run the `rebuild` or `update`\n" +
|
||||
"command for them to be applied.\n\n" +
|
||||
"Full URL for accessing the installation from a browser. (Required)")]
|
||||
public string Url { get; set; } = "https://localhost";
|
||||
|
||||
[Description("Auto-generate the `./docker/docker-compose.yml` config file.\n" +
|
||||
|
@ -71,7 +71,7 @@ namespace Bit.Setup
|
||||
|
||||
var certBuilder = new CertBuilder(_context);
|
||||
certBuilder.BuildForInstall();
|
||||
|
||||
|
||||
// Set the URL
|
||||
_context.Config.Url = string.Format("http{0}://{1}",
|
||||
_context.Config.Ssl ? "s" : string.Empty, _context.Install.Domain);
|
||||
@ -89,6 +89,13 @@ namespace Bit.Setup
|
||||
dockerComposeBuilder.BuildForInstaller();
|
||||
|
||||
_context.SaveConfiguration();
|
||||
|
||||
Console.WriteLine("\nInstallation complete.");
|
||||
Console.WriteLine("If you need to make additional configuration changes, you can modify\n" +
|
||||
"the settings in `{0}` and then run {1}",
|
||||
_context.HostOS == "win" ? ".\\bwdata\\config.yml" : "./bwdata/config.yml",
|
||||
_context.HostOS == "win" ? "`.\\bitwarden.ps1 -rebuild` or `.\\bitwarden.ps1 -update`" :
|
||||
"`./bitwarden.sh rebuild` or `./bitwarden.sh update`");
|
||||
}
|
||||
|
||||
private static void Update()
|
||||
@ -112,11 +119,11 @@ namespace Bit.Setup
|
||||
Console.Write("to update, run ");
|
||||
if(_context.HostOS == "win")
|
||||
{
|
||||
Console.Write("'.\\bitwarden.ps1 -updateself' and then '.\\bitwarden.ps1 -update'");
|
||||
Console.Write("`.\\bitwarden.ps1 -updateself` and then `.\\bitwarden.ps1 -update`");
|
||||
}
|
||||
else
|
||||
{
|
||||
Console.Write("'./bitwarden.sh updateself' and then './bitwarden.sh update'");
|
||||
Console.Write("`./bitwarden.sh updateself` and then `./bitwarden.sh update`");
|
||||
}
|
||||
Console.WriteLine("\n");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user