WIP: untie server name from a domain #398

Closed
wykwit wants to merge 3 commits from wykwit/abra:server-name into main
First-time contributor

The convention of mapping names to domains was driving me crazy.

This fix resolves the actual server hostname according to host entry in the SSH config, allows for using any server name, but most importantly allows for adding local machines as servers.
Turns out that's enough to use abra for LAN-only deployments.

Default behaviors shouldn't change.

The convention of mapping names to domains was driving me crazy. This fix resolves the actual server hostname according to host entry in the SSH config, allows for using any server name, but most importantly allows for adding local machines as servers. Turns out that's enough to use `abra` for LAN-only deployments. Default behaviors shouldn't change.
wykwit added 2 commits 2024-01-06 01:36:41 +00:00
decentral1se reviewed 2024-01-06 09:18:00 +00:00
decentral1se left a comment
Owner

Solid stuff! One minor comment.

I think it'd be nice if you could add an integration test for this?

Solid stuff! One minor comment. I think it'd be nice if you could add an integration test for this?
@ -169,1 +175,4 @@
if err := newContext(c, domainName, hostConfig.Host, hostConfig.User, hostConfig.Port); err != nil {
logrus.Fatal(err)
cleanUp(domainName)
Owner

Doesn't this need to go before the logrus.Fatal call?

Doesn't this need to go before the `logrus.Fatal` call?
Author
First-time contributor

Good catch, thanks!

Good catch, thanks!
decentral1se marked this conversation as resolved
wykwit added 1 commit 2024-01-06 12:48:12 +00:00
fix: clean up before panic in server add command
All checks were successful
continuous-integration/drone/pr Build is passing
4db15d8530
Owner

@wykwit got any cycles to take another run at this?

@wykwit got any cycles to take another run at this?
decentral1se changed title from Untie server name from a domain to WIP: untie server name from a domain 2024-03-27 05:43:22 +00:00
Owner
Merged in 9bf44c15ed63555ef5e8aa0db901544cdaad67fb / d787f7121506c7588c5c52cfcf127cbe4100f931 and also https://git.coopcloud.tech/coop-cloud/abra/pulls/415
decentral1se closed this pull request 2024-06-24 22:29:23 +00:00
All checks were successful
continuous-integration/drone/pr Build is passing

Pull request closed

Sign in to join this conversation.
No description provided.