Parcourir la source

Post-Receive Hook Deploy

Thomas Buck il y a 11 ans
Parent
révision
a1c5078f2f
2 fichiers modifiés avec 8 ajouts et 5 suppressions
  1. 6
    3
      deploy
  2. 2
    2
      output/rss.xml

+ 6
- 3
deploy Voir le fichier

@@ -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 Voir le fichier

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

Chargement…
Annuler
Enregistrer