Browse Source

Fixed deployment and improed readme

Fred Damstra (Macbook 2015) 1 năm trước cách đây
mục cha
commit
1de8c9a8e4
2 tập tin đã thay đổi với 16 bổ sung3 xóa
  1. 11 1
      README.md
  2. 5 2
      deploy

+ 11 - 1
README.md

@@ -9,12 +9,22 @@ Anyhow, this will create the site and deploy to s3.
 ## Quick Usage
 
 ```
-# Hosting:
+# Installing
+git clone ssh://git@git.monkeybox.org:2222/AWS/www.monkeybox.org_hugo.git
+cd www.monkeybox.org_hugo
+git submodule init
+git submodule update
+
+# Hosting / testing via hugo.monkeybox.org:
 hugo # Generate content
 hugo -D # Generate content with draft content
 hugo server -D # locally host a server including draft posts
 hugo deploy # Copy generated content to s3
 
+# Hosting on home k8s
+./deploy
+
 # Modifying
 hugo new home/<topic>.md # Create a new page under content/en/home/<topic>.md
 ```
+

+ 5 - 2
deploy

@@ -1,9 +1,12 @@
 #! /bin/bash
 USER=fdamstra
-HOST=io.monkeybox.org
+HOST=k8s4.home.monkeybox.org
 DIR=/mnt/kubernetes/volumes/static/monkeybox/
 
-hugo && rsync -avz --delete public/ ${USER}@${HOST}:${DIR}
+hugo \
+  && rsync -avz --delete public/ ${USER}@${HOST}:${DIR} \
+  && ssh ${USER}@${HOST} sudo chown -R fdamstra:fdamstra ${DIR} \
+  && ssh ${USER}@${HOST} sudo chmod o+r ${DIR}
 
 exit 0