Subversion Repositories eFlore/Projets.eflore-projets

Compare Revisions

Ignore whitespace Rev 801 → Rev 802

/trunk/services/configurations/test-sous-conf.sed
1,2 → 1,2
/^url_(service|ontologie)/s/([^-])service:eflore:0.1/\1test-service:eflore:0.1/
/^bdd_nom/s/tb_eflore([^_])/tb_eflore_test\1/
/^bdd_nom/s|= .*|= tb_eflore_test|
/trunk/services/configurations/test-conf.sed
4,4 → 4,4
/^chemin_base/s|= .*|= /home/telabotap/www/eflore-test/services/|
/^chemin_cache/s|= .*|= /home/telabotap/www/eflore-test/cache/|
/^cache/s|= .*|= true|
 
/^bdd_nom/s|= .*|= tb_eflore_test|
/trunk/services/configurations/config_test.ini
62,9 → 62,9
zone_geo_source = "ISO-3166-1";
 
; URL de base des services
url_base="http://localhost/"
url_base = "http://localhost/"
; URL de base des services
url_service_base='{ref:url_base}service:eflore:0.1/'
url_service_base = "{ref:url_base}service:eflore:0.1/"
 
; +------------------------------------------------------------------------------------------------------+
; Infos sur les projets
/trunk/services/configurations/config.defaut.ini
64,7 → 64,7
; URL de base des services
url_base = "http://localhost/"
; URL de base des services
url_service_base = '{ref:url_base}service:eflore:0.1/'
url_service_base = "{ref:url_base}service:eflore:0.1/"
 
; +------------------------------------------------------------------------------------------------------+
; Infos sur les chemins
/trunk/services/configurations/prod-conf.sed
4,3 → 4,4
/^chemin_base/s|= .*|= /home/telabotap/www/eflore/services/|
/^chemin_cache/s|= .*|= /home/telabotap/www/tmp/eflore_v5_cache/|
/^cache/s|= .*|= true|
/^bdd_nom/s|= .*|= tb_eflore|
/trunk/services/configurations/Makefile
4,21 → 4,25
all: test
 
test:
test '!' -e config.ini || { echo "config.ini exists"; exit 1; }
cp config.defaut.ini config.ini
sed -r -i -f test-conf.sed config.ini
sed -r -i -f test-sous-conf.sed config_*.ini
test -n "$(dbu)" -o -n "$(dbp)" && make bddconf
@test '!' -e config.ini || { echo "config.ini exists"; exit 1; }
@cp config.defaut.ini config.ini
@sed -r -i -f test-conf.sed config.ini
@sed -r -i -f test-sous-conf.sed config_*.ini
@test -n "$(dbu)" -o -n "$(dbp)" && make bddconf || true
 
prod:
test '!' -e config.ini || { echo "config.ini exists"; exit 1; }
cp config.defaut.ini config.ini
sed -r -i -f prod-conf.sed config.ini
test -n "$(dbu)" -o -n "$(dbp)" && make bddconf
@test '!' -e config.ini || { echo "config.ini exists"; exit 1; }
@cp config.defaut.ini config.ini
@sed -r -i -f prod-conf.sed config.ini
@test -n "$(dbu)" -o -n "$(dbp)" && make bddconf || true
 
bddconf:
test -n "$(dbu)" && sed -r -i "/^bdd_utilisateur/s/= .*/= \"$(dbu)\"/" config.ini || true
test -n "$(dbp)" && sed -r -i "/^bdd_mot_de_passe/s/= .*/= \"$(dbp)\"/" config.ini || true
@test -n "$(dbu)" && sed -r -i "/^bdd_utilisateur/s/= .*/= \"$(dbu)\"/" config.ini || true
@test -n "$(dbp)" && sed -r -i "/^bdd_mot_de_passe/s/= .*/= \"$(dbp)\"/" config.ini || true
 
framework:
mv framework.defaut.php framework.php
@mv framework.defaut.php framework.php
 
cache:
@cache=$(shell sed -n '/chemin_cache/s/.*= *//p' config.ini)
@test -n "$(cache)" && mkdir -p $(cache) || true