ソースを参照

Post-Receive Hook Deploy

Thomas Buck 11年前
コミット
a1c5078f2f
2個のファイルの変更8行の追加5行の削除
  1. 6
    3
      deploy
  2. 2
    2
      output/rss.xml

+ 6
- 3
deploy ファイルの表示

@@ -1,5 +1,8 @@
1 1
 #!/bin/sh
2 2
 
3
-poole.py --build
4
-sudo cp -r output/* /var/www/
5
-sudo cp -r static/* /var/www/
3
+./poole.py --build
4
+echo "lollipop123Tunguska" | sudo -S cp -r output/* /var/www/
5
+echo "lollipop123Tunguska" | sudo -S cp -r static/* /var/www/
6
+
7
+host=`hostname`
8
+/home/thomas/bin/notify "Deployed to ${host}"

+ 2
- 2
output/rss.xml ファイルの表示

@@ -6,8 +6,8 @@
6 6
 <atom:link href="http://www.xythobuz.org/rss.xml" rel="self" type="application/rss+xml" />
7 7
 <description>xythobuz Electronics &amp; Software Projects</description>
8 8
 <language>en-us</language>
9
-<pubDate>Mon, 01 Apr 2013 15:11:40 -0000</pubDate>
10
-<lastBuildDate>Mon, 01 Apr 2013 15:11:40 -0000</lastBuildDate>
9
+<pubDate>Mon, 01 Apr 2013 15:44:58 -0000</pubDate>
10
+<lastBuildDate>Mon, 01 Apr 2013 15:44:58 -0000</lastBuildDate>
11 11
 <docs>http://blogs.law.harvard.edu/tech/rss</docs>
12 12
 <generator>Poole</generator>
13 13
 

読み込み中…
キャンセル
保存