From: Greg Burri Date: Wed, 5 Dec 2007 19:04:26 +0000 (+0000) Subject: ADD Script de mise en production X-Git-Tag: 1.0.0^2~205 X-Git-Url: http://git.euphorik.ch/?p=euphorik.git;a=commitdiff_plain;h=6273f83ec5df692c647dd9f9ad307208b343af9b ADD Script de mise en production --- diff --git a/mise_en_prod.rb b/mise_en_prod.rb new file mode 100755 index 0000000..ef1819e --- /dev/null +++ b/mise_en_prod.rb @@ -0,0 +1,17 @@ +#!/usr/bin/ruby + +# la destination +$dest = 'gburri@euphorik.ch:/var/www/euphorik' +$dest = $*[0] if $*.length > 1 + +# les options communes +$opt = '' + +`rsync $opt index.html #{$dest}` +`rsync $opt -r css #{$dest}` +`rsync $opt -r img #{$dest}` +`rsync $opt -r js #{$dest}` +`rsync $opt -r lightbox #{$dest}` +`rsync $opt -r modules/include #{$dest}/modules` +`rsync $opt -r modules/ebin #{$dest}/modules` +`rsync $opt -r pages #{$dest}`