ADD script permettant la mise à jour de la BD et le rechargement des modules lors...
[euphorik.git] / tools / mise_en_prod.rb
index 356e2f6..09cd568 100755 (executable)
@@ -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}`
+
+