ADD Script de mise en production
[euphorik.git] / mise_en_prod.rb
1 #!/usr/bin/ruby
2
3 # la destination
4 $dest = 'gburri@euphorik.ch:/var/www/euphorik'
5 $dest = $*[0] if $*.length > 1
6
7 # les options communes
8 $opt = ''
9
10 `rsync $opt index.html #{$dest}`
11 `rsync $opt -r css #{$dest}`
12 `rsync $opt -r img #{$dest}`
13 `rsync $opt -r js #{$dest}`
14 `rsync $opt -r lightbox #{$dest}`
15 `rsync $opt -r modules/include #{$dest}/modules`
16 `rsync $opt -r modules/ebin #{$dest}/modules`
17 `rsync $opt -r pages #{$dest}`