forked from toolshed/abra
		
	feat: support non-TLD resolving server domains
See coop-cloud/organising#566
This commit is contained in:
		@ -193,7 +193,7 @@ var NewAppServerFlag = &cli.StringFlag{
 | 
			
		||||
var NoDomainChecks bool
 | 
			
		||||
var NoDomainChecksFlag = &cli.BoolFlag{
 | 
			
		||||
	Name:        "no-domain-checks, D",
 | 
			
		||||
	Usage:       "Disable app domain sanity checks",
 | 
			
		||||
	Usage:       "Disable public DNS checks",
 | 
			
		||||
	Destination: &NoDomainChecks,
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -99,7 +99,7 @@ Abra uses the SSH command-line to discover connection details for your server.
 | 
			
		||||
It is advised to configure an entry per-host in your ~/.ssh/config for each
 | 
			
		||||
server. For example:
 | 
			
		||||
 | 
			
		||||
Host example.com
 | 
			
		||||
Host example.com example
 | 
			
		||||
  Hostname example.com
 | 
			
		||||
  User exampleUser
 | 
			
		||||
  Port 12345
 | 
			
		||||
@ -109,6 +109,10 @@ Abra can then load SSH connection details from this configuratiion with:
 | 
			
		||||
 | 
			
		||||
    abra server add example.com
 | 
			
		||||
 | 
			
		||||
Or using the name "example" which is not resolvable on the public Internet:
 | 
			
		||||
 | 
			
		||||
    abra server add -D example
 | 
			
		||||
 | 
			
		||||
If "--local" is passed, then Abra assumes that the current local server is
 | 
			
		||||
intended as the target server. This is useful when you want to have your entire
 | 
			
		||||
Co-op Cloud config located on the server itself, and not on your local
 | 
			
		||||
@ -117,6 +121,7 @@ developer machine.
 | 
			
		||||
	Flags: []cli.Flag{
 | 
			
		||||
		internal.DebugFlag,
 | 
			
		||||
		internal.NoInputFlag,
 | 
			
		||||
		internal.NoDomainChecksFlag,
 | 
			
		||||
		localFlag,
 | 
			
		||||
	},
 | 
			
		||||
	Before:    internal.SubCommandBefore,
 | 
			
		||||
@ -150,9 +155,11 @@ developer machine.
 | 
			
		||||
			return nil
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		if !internal.NoDomainChecks {
 | 
			
		||||
			if _, err := dns.EnsureIPv4(domainName); err != nil {
 | 
			
		||||
				logrus.Fatal(err)
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		if err := createServerDir(domainName); err != nil {
 | 
			
		||||
			logrus.Fatal(err)
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user