浏览代码

Added a new deploy script to upload the site to freja.

Matthew Carr 1 年之前
父节点
当前提交
d54e2c55bf
共有 2 个文件被更改,包括 15 次插入11 次删除
  1. 12 0
      website/deploy-linode.sh
  2. 3 11
      website/deploy.sh

+ 12 - 0
website/deploy-linode.sh

@@ -0,0 +1,12 @@
+#!/bin/sh
+# Deploys the site using s3cmd.
+# Make sure 'website/public/' has been purged then updated  using 'docs/build-docs.sh'
+# before running this script.
+# If you don't purge 'website/public/', you may get unexpected results.
+# To display information about the website configuration on Linode run:
+# ```s3cmd ws-info s3://blocktree```
+# If you need to setup s3cmd checkout the documentation on Linode's website:
+# https://www.linode.com/docs/products/storage/object-storage/guides/s3cmd/
+# The guide for deploying a Hugo site is also useful:
+# https://www.linode.com/docs/guides/host-static-site-object-storage/
+s3cmd --no-mime-magic --acl-public --delete-removed --delete-after sync public/ s3://www.blocktree.systems

+ 3 - 11
website/deploy.sh

@@ -1,12 +1,4 @@
 #!/bin/sh
-# Deploys the site using s3cmd.
-# Make sure 'website/public/' has been purged then updated  using 'docs/build-docs.sh'
-# before running this script.
-# Note that you must purge 'website/public/' or you may get unexpected results.
-# To display information about the website configuration on Linode run:
-# ```s3cmd ws-info s3://blocktree```
-# If you need to setup s3cmd checkout the documentation on Linode's website:
-# https://www.linode.com/docs/products/storage/object-storage/guides/s3cmd/
-# The guide for deploying a Hugo site is also useful:
-# https://www.linode.com/docs/guides/host-static-site-object-storage/
-s3cmd --no-mime-magic --acl-public --delete-removed --delete-after sync public/ s3://www.blocktree.systems
+# Deploys the site to freja using rsync.
+echo Deploying to freja...
+rsync -rav --delete public/ freja:/srv/http/www.blocktree.systems/