projects
/
euphorik.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
b962679
)
ADD Script de mise en production
author
Greg Burri
<greg.burri@gmail.com>
Wed, 5 Dec 2007 19:04:26 +0000
(19:04 +0000)
committer
Greg Burri
<greg.burri@gmail.com>
Wed, 5 Dec 2007 19:04:26 +0000
(19:04 +0000)
mise_en_prod.rb
[new file with mode: 0755]
patch
|
blob
diff --git a/mise_en_prod.rb
b/mise_en_prod.rb
new file mode 100755
(executable)
index 0000000..
ef1819e
--- /dev/null
+++ b/
mise_en_prod.rb
@@ -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}`