parent
d68b80d96d
commit
f48168639a
@ -0,0 +1,15 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Vérifier si l'adresse IP est fournie en tant que paramètre
|
||||||
|
if [ -z "$1" ]; then
|
||||||
|
echo "Usage: $0 <adresse_ip>"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Stocker l'adresse IP fournie en tant que variable
|
||||||
|
adresse_ip="$1"
|
||||||
|
|
||||||
|
# Utiliser l'adresse IP dans la commande find avec Perl
|
||||||
|
find . -type f -exec perl -pi -e 's|http://[0-9.]+:([0-9]+)|http://localhost:$1|g' {} +
|
||||||
|
|
||||||
|
find . -type f -exec perl -pi -e "s|http://localhost:([0-9]+)|http://$adresse_ip:\$1|g" {} +
|
@ -1,6 +1,6 @@
|
|||||||
const ADRESSE_WEBSERVER = "http://localhost:3002"
|
const ADRESSE_WEBSERVER = "http://172.20.10.4:3002"
|
||||||
|
|
||||||
const ADRESSE_DBSERVER = "http://localhost:3003"
|
const ADRESSE_DBSERVER = "http://172.20.10.4:3003"
|
||||||
|
|
||||||
const ADRESSE_WEBSITE = ""
|
const ADRESSE_WEBSITE = ""
|
||||||
|
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in new issue