ADD Script de mise en production
[euphorik.git] / mise_en_prod.rb
diff --git a/mise_en_prod.rb b/mise_en_prod.rb
new file mode 100755 (executable)
index 0000000..ef1819e
--- /dev/null
@@ -0,0 +1,17 @@
+#!/usr/bin/ruby
+
+# la destination
+$dest = 'gburri@euphorik.ch:/var/www/euphorik'
+$dest = $*[0] if $*.length > 1
+
+# les options communes
+$opt = ''
+`rsync $opt index.html #{$dest}`
+`rsync $opt -r css #{$dest}`
+`rsync $opt -r img #{$dest}`
+`rsync $opt -r js #{$dest}`
+`rsync $opt -r lightbox #{$dest}`
+`rsync $opt -r modules/include #{$dest}/modules`
+`rsync $opt -r modules/ebin #{$dest}/modules`
+`rsync $opt -r pages #{$dest}`