From 9ea777de1bbe6ac18c9ef4f63fd6957d09677306 Mon Sep 17 00:00:00 2001 From: 3wc <3wc@doesthisthing.work> Date: Sun, 8 Jan 2023 19:39:08 -0800 Subject: [PATCH] Mgrating a server into a repository Closes coop-cloud/organising#323 --- docs/operators/handbook.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/operators/handbook.md b/docs/operators/handbook.md index 37346e60..532f58fc 100644 --- a/docs/operators/handbook.md +++ b/docs/operators/handbook.md @@ -82,6 +82,18 @@ Then, tell your collaborators (e.g. in the repository's `README.md`), to run `ma We don't currently recommend this, because it might set inaccurate expectations about the security model – remember that, by default, **any user who can deploy apps to a Docker Swarm can manage _any_ app in that swarm**. +### Migrating a server into a repository + +Even if you've got your existing server configs in version control, by default, `abra server add` will define the server locally. To move it -- taking the example of `newserver.example.com`: + +``` +mv ~/.abra/servers/newserver.example.com ~/coop-cloud-apps/ +cd ~/coop-cloud-apps +git add newserver.example.com +git commit +make link +``` + ## Running abra server side If you're on an environment where it's hard to run Docker, or command-line programs in general, you might want to install `abra` on a server instead of your local work station.