Przeglądaj źródła

Post-Receive Hook Deploy

Thomas Buck 11 lat temu
rodzic
commit
a1c5078f2f
2 zmienionych plików z 8 dodań i 5 usunięć
  1. 6
    3
      deploy
  2. 2
    2
      output/rss.xml

+ 6
- 3
deploy Wyświetl plik

@@ -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 Wyświetl plik

@@ -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
 

Ładowanie…
Anuluj
Zapisz