X-Git-Url: http://git.euphorik.ch/?p=euphorik.git;a=blobdiff_plain;f=tools%2Fmise_en_prod.rb;h=09cd568fd55c0137bcabda8e51ab1009a3459ed9;hp=356e2f6a70a81cdd299612e79ff3d5de9960a6e0;hb=64ef87442b933d47f4dbc9dfec9a5a16e522c375;hpb=e56ca5b899d3b39c76a9056077729c04c695666b diff --git a/tools/mise_en_prod.rb b/tools/mise_en_prod.rb index 356e2f6..09cd568 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) @@ -39,7 +39,7 @@ end creer_remote_rep('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}` @@ -57,3 +57,5 @@ Dir.entries(rep_js).each{|fichier| creer_remote_rep('modules') `rsync #{$opt_rsync} -r modules/ebin #{$host}:#{$rep_remote}/modules` `rsync #{$opt_rsync} -r pages #{$host}:#{$rep_remote}` + +