X-Git-Url: http://git.euphorik.ch/?p=euphorik.git;a=blobdiff_plain;f=tools%2Fmise_en_prod.rb;h=19e180ba9bbce72ec0ead280325b49fc778787ad;hp=356e2f6a70a81cdd299612e79ff3d5de9960a6e0;hb=a193d10c45d8226937c91a17dc588e4f6f1586fd;hpb=9b380274dcc75e06c0cdc110f91cc8f0c4738aeb diff --git a/tools/mise_en_prod.rb b/tools/mise_en_prod.rb index 356e2f6..19e180b 100755 --- a/tools/mise_en_prod.rb +++ b/tools/mise_en_prod.rb @@ -25,8 +25,8 @@ Dir.chdir('../modules') puts `make` ### COPIE -$rep_remote = '/tmp/euphorik' #'/var/www/euphorik' -$host = 'localhost' #"gburri@euphorik.ch:#{rep_remote}" +$rep_remote = '/var/www/euphorik' +$host = 'euphorik.ch' $opt_rsync = '' def creer_remote_rep(rep) @@ -37,9 +37,10 @@ def creer_remote_rep(rep) end creer_remote_rep('BD') +`ssh #{$host} "chmod g+w #{$rep_remote}/BD"` Dir.chdir('..') -print `rsync #{$opt_rsync} index.html #{$host}:#{$rep_remote}` +print `rsync #{$opt_rsync} index.yaws #{$host}:#{$rep_remote}` print `rsync #{$opt_rsync} favicon.ico #{$host}:#{$rep_remote}` print `rsync #{$opt_rsync} -r css #{$host}:#{$rep_remote}` print `rsync #{$opt_rsync} -r --exclude 'autres' img #{$host}:#{$rep_remote}` @@ -56,4 +57,8 @@ Dir.entries(rep_js).each{|fichier| creer_remote_rep('modules') `rsync #{$opt_rsync} -r modules/ebin #{$host}:#{$rep_remote}/modules` +`rsync #{$opt_rsync} -r modules/include #{$host}:#{$rep_remote}/modules` + `rsync #{$opt_rsync} -r pages #{$host}:#{$rep_remote}` + +