X-Git-Url: http://git.euphorik.ch/?p=euphorik.git;a=blobdiff_plain;f=tools%2Fmise_en_prod.rb;h=95c54296c23ae0d6fa54bd5ddd95b5d24cc16ef3;hp=356e2f6a70a81cdd299612e79ff3d5de9960a6e0;hb=f5b818cf316c6ccae89dac192411a4d875a0c6b4;hpb=9b380274dcc75e06c0cdc110f91cc8f0c4738aeb diff --git a/tools/mise_en_prod.rb b/tools/mise_en_prod.rb index 356e2f6..95c5429 100755 --- a/tools/mise_en_prod.rb +++ b/tools/mise_en_prod.rb @@ -18,42 +18,4 @@ You should have received a copy of the GNU General Public License along with Euphorik. If not, see . =end - - -### MAKE -Dir.chdir('../modules') -puts `make` - -### COPIE -$rep_remote = '/tmp/euphorik' #'/var/www/euphorik' -$host = 'localhost' #"gburri@euphorik.ch:#{rep_remote}" -$opt_rsync = '' - -def creer_remote_rep(rep) - begin - `ssh #{$host} "mkdir #{$rep_remote}/#{rep}"` - rescue - end -end - -creer_remote_rep('BD') - -Dir.chdir('..') -print `rsync #{$opt_rsync} index.html #{$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}` - -# copie des js avec minification -rep_js = 'js' -creer_remote_rep(rep_js) -Dir.entries(rep_js).each{|fichier| - if fichier[0..0] != "." and fichier != "debug.js" - puts "Minimisation et copie de #{fichier}" - print `tools/jsmin.rb < #{rep_js}/#{fichier} | ssh #{$host} "cat > #{$rep_remote}/#{rep_js}/#{fichier}"` - end -} - -creer_remote_rep('modules') -`rsync #{$opt_rsync} -r modules/ebin #{$host}:#{$rep_remote}/modules` -`rsync #{$opt_rsync} -r pages #{$host}:#{$rep_remote}` +# TODO : utilisation de tools.rb \ No newline at end of file