summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--caddy/Caddyfile5
-rw-r--r--git/hooks/todo/post-receive8
-rw-r--r--git/repos.txt1
-rwxr-xr-xmail/dns/setup-route53.py1
4 files changed, 15 insertions, 0 deletions
diff --git a/caddy/Caddyfile b/caddy/Caddyfile
index 90abecb..e6b43a7 100644
--- a/caddy/Caddyfile
+++ b/caddy/Caddyfile
@@ -44,6 +44,11 @@ blog.yyamashita.com {
reverse_proxy microblog-app:3000
}
+todo.yyamashita.com {
+ import noindex
+ reverse_proxy todo-app:3000
+}
+
import /tmp/proxy_forward.caddy
vpn.yyamashita.com {
diff --git a/git/hooks/todo/post-receive b/git/hooks/todo/post-receive
new file mode 100644
index 0000000..645b856
--- /dev/null
+++ b/git/hooks/todo/post-receive
@@ -0,0 +1,8 @@
+#!/bin/bash
+set -e
+APP_DIR=/app/todo
+GIT_WORK_TREE=$APP_DIR git checkout -f
+cd $APP_DIR
+mkdir -p data
+docker compose up -d --build
+echo "Deploy complete: todo"
diff --git a/git/repos.txt b/git/repos.txt
index 916400b..d57d36e 100644
--- a/git/repos.txt
+++ b/git/repos.txt
@@ -5,3 +5,4 @@ tokyo-livehouse-events:/app/tokyo-livehouse-events
whois-band:/app/whois-band
mosquitone-admin:/home/yyamashita/workspaces/repos/mosquitone-admin
microblog:/app/microblog
+todo:/app/todo
diff --git a/mail/dns/setup-route53.py b/mail/dns/setup-route53.py
index 9455c0c..ecc3d0d 100755
--- a/mail/dns/setup-route53.py
+++ b/mail/dns/setup-route53.py
@@ -37,6 +37,7 @@ WEB_SUBDOMAINS = [
"git",
"hetzner-admin",
"blog",
+ "todo",
"vpn",
"proxy",
]