WIP: untie server name from a domain #398

Draft
wykwit wants to merge 3 commits from wykwit/abra:server-name into main
Member

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
Member

Good catch, thanks!

Good catch, thanks!
decentral1se marked this conversation as resolved
wykwit added 1 commit 2024-01-06 12:48:12 +00:00
continuous-integration/drone/pr Build is passing Details
4db15d8530
fix: clean up before panic in server add command
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
All checks were successful
continuous-integration/drone/pr Build is passing
This pull request is marked as a work in progress.
This branch is out-of-date with the base branch
You can also view command line instructions.

Step 1:

From your project repository, check out a new branch and test the changes.
git checkout -b wykwit-server-name main
git pull server-name

Step 2:

Merge the changes and update on Gitea.
git checkout main
git merge --no-ff wykwit-server-name
git push origin main
Sign in to join this conversation.
No description provided.