diff --git a/.build.yml b/.build.yml index e82cd31..7cb905d 100644 --- a/.build.yml +++ b/.build.yml @@ -18,6 +18,4 @@ tasks: - upload: | cd seirdy.one echo "StrictHostKeyChecking=no" >> ~/.ssh/config - rsync -rvzP --exclude "public/gemini" --exclude "*.gmi" public/ deploy@seirdy.one:/var/www/seirdy.one/ - rsync -rvzP --exclude "*.html" public/gemini/ public/about public/posts deploy@seirdy.one:/srv/gemini/seirdy.one/ - rsync -rvzP public/posts/gemini/index.xml deploy@seirdy.one:/srv/gemini/seirdy.one/feed.xml + sh ./deploy.sh seirdy.one diff --git a/content/_index.gmi b/content/_index.gmi index c74c0bf..4f441e0 100644 --- a/content/_index.gmi +++ b/content/_index.gmi @@ -4,7 +4,7 @@ It me! See the Director's Cut of my bio in the "about" page: -=> /about/ About me +=> about/ About me Git repos: diff --git a/content/about/index.gmi b/content/about/index.gmi index c7e6a86..a171660 100644 --- a/content/about/index.gmi +++ b/content/about/index.gmi @@ -16,8 +16,6 @@ More info about the Tildeverse: => http://tilde.club/%7Epfhawkins/othertildes.html Pick a tilde => http://tilde.club/%7Eanthonydpaul/primer.html Get started -Content on this site also appears on my Gemini space (TODO: link it). - ## Location (Rohan, meatspace) Currently living at home in Cupertino, CA diff --git a/content/about/index.md b/content/about/index.md index 35dc43e..8cd99eb 100644 --- a/content/about/index.md +++ b/content/about/index.md @@ -21,7 +21,7 @@ tilde](http://tilde.club/%7Epfhawkins/othertildes.html) and [get started](http://tilde.club/~anthonydpaul/primer.html). My Tildeverse pages will serve as a "rough draft". -Content on this site also appears on my Gemini space (TODO: link it). +Content on this site also appears on [my Gemini space](gemini://seirdy.one) Location (Rohan, meatspace) --------------------------- diff --git a/deploy.sh b/deploy.sh new file mode 100755 index 0000000..7604ff4 --- /dev/null +++ b/deploy.sh @@ -0,0 +1,26 @@ +#!/bin/sh + +case "$1" in + seirdy.one) + login='deploy@seirdy.one' # user@host + www_prefix="$login:/var/www/seirdy.one" + gemini_prefix="$login:/srv/gemini/seirdy.one" + ;; + envs.net) + login='seirdy@envs.net' + www_prefix="$login:/home/seirdy/public_html" + gemini_prefix="$login:/home/seirdy/public_gemini" + ;; + localhost) + gemini_prefix='/tmp/gemini/serve/seirdy.one' + ;; + *) + echo 'must supply hostname' >&2 + exit 1 + ;; +esac + +[ "$1" != 'localhost' ] \ + && rsync -rvzP --exclude "public/gemini" --exclude "*.gmi" public/ "$www_prefix/" +rsync -rvzP --exclude "*.html" public/gemini/ public/about public/posts "$gemini_prefix/" +rsync -rvzP public/posts/gemini/index.xml "$gemini_prefix/feed.xml"