From 2cf14a3375aef3fbda00e896fbd3492c6253ce66 Mon Sep 17 00:00:00 2001 From: 3wc <3wc@doesthisthing.work> Date: Wed, 4 Aug 2021 21:30:18 +0200 Subject: [PATCH] Rejig for separate repo --- README.md | 26 +++++++++++++++++++ makefile | 10 +++++++ .../capsul_yolocolo_doesthisthing_work.env | 0 .../traefik_yolocolo_doesthisthing_work.env | 0 4 files changed, 36 insertions(+) create mode 100644 README.md create mode 100644 makefile rename capsul_yolocolo_doesthisthing_work.env => yolo.servers.coop/capsul_yolocolo_doesthisthing_work.env (100%) rename traefik_yolocolo_doesthisthing_work.env => yolo.servers.coop/traefik_yolocolo_doesthisthing_work.env (100%) diff --git a/README.md b/README.md new file mode 100644 index 0000000..0bffa70 --- /dev/null +++ b/README.md @@ -0,0 +1,26 @@ +# servers.coop-apps + +Configuration files for our [`coop-cloud`] apps. + +Each file in this repository represents an "app", an instance of a "stack". + +## Initial set-up + +Check out the code and symlink the directories into your `~/.abra/servers` folder: + +``` +git clone ssh://git@git.coopcloud.tech:2222/servers.coop/servers.coop-apps.git +cd servers.coop-apps +make +``` + +## Deploying a new app instance + +``` +abra new wordpress # answer questions +abra app deploy +``` + +Then come back to this repository and add and commit the new file. + +[`coop-cloud`]: https://git.coopcloud.tech/coop-cloud diff --git a/makefile b/makefile new file mode 100644 index 0000000..734e10c --- /dev/null +++ b/makefile @@ -0,0 +1,10 @@ +.PHONY: + +# -s symlink, -f force creation, -F don't create symlink in the target dir +link: + @mkdir -p ~/.abra/servers/ + @for SERVER in $$(find * -maxdepth 0 -type d); do \ + echo ln -sfF "$$(pwd)/$${SERVER#./}" ~/.abra/servers/ ; \ + ln -sfF "$$(pwd)/$${SERVER#./}" ~/.abra/servers/ ; \ + done +# FIXME 3wc: semicolon?! diff --git a/capsul_yolocolo_doesthisthing_work.env b/yolo.servers.coop/capsul_yolocolo_doesthisthing_work.env similarity index 100% rename from capsul_yolocolo_doesthisthing_work.env rename to yolo.servers.coop/capsul_yolocolo_doesthisthing_work.env diff --git a/traefik_yolocolo_doesthisthing_work.env b/yolo.servers.coop/traefik_yolocolo_doesthisthing_work.env similarity index 100% rename from traefik_yolocolo_doesthisthing_work.env rename to yolo.servers.coop/traefik_yolocolo_doesthisthing_work.env