Rejig for separate repo

This commit is contained in:
3wc 2021-08-04 21:30:18 +02:00
parent 09c596d389
commit 2cf14a3375
4 changed files with 36 additions and 0 deletions

26
README.md Normal file
View File

@ -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 <domain name> deploy
```
Then come back to this repository and add and commit the new file.
[`coop-cloud`]: https://git.coopcloud.tech/coop-cloud

10
makefile Normal file
View File

@ -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?!