From 6273f83ec5df692c647dd9f9ad307208b343af9b Mon Sep 17 00:00:00 2001 From: Greg Burri Date: Wed, 5 Dec 2007 19:04:26 +0000 Subject: [PATCH 1/1] ADD Script de mise en production --- mise_en_prod.rb | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 mise_en_prod.rb 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}` -- 2.45.2