netcup server

This commit is contained in:
2025-07-10 13:23:43 +02:00
parent dfead23a53
commit 66243863e4
6 changed files with 21 additions and 4 deletions

3
.env.flyhope Normal file
View File

@ -0,0 +1,3 @@
REACT_APP_PHP_ROOT = "http://flyhope.de/dog/php-dog/"
REACT_APP_WWW_ROOT = "http://flyhope.de/dog/"

View File

@ -1,2 +1,3 @@
REACT_APP_PHP_ROOT = "https://hope-fly.de/dog/php-dog/"
REACT_APP_WWW_ROOT = "https://hope-fly.de/dog/"

3
.env.serv_nc Normal file
View File

@ -0,0 +1,3 @@
REACT_APP_PHP_ROOT = "http://89.58.26.239/dog/php-dog/"
REACT_APP_WWW_ROOT = "http://89.58.26.239/dog/"

View File

@ -35,6 +35,8 @@
"eject": "react-scripts eject",
"build:local": "env-cmd -f .env.local npm run build",
"build:hope-fly": "env-cmd -f .env.hope-fly npm run build",
"build:flyhope": "env-cmd -f .env.flyhope npm run build",
"build:serv_nc": "env-cmd -f .env.serv_nc npm run build",
"postbuild:local": "cp -vrRT ./build/. /opt/lampp/htdocs/dog/",
"___postbuild:hope-fly": "cp ./src/.htaccess ./build"
},

View File

@ -4,9 +4,16 @@ class Database
// CHANGE THE DB INFO ACCORDING TO YOUR DATABASE
// private $db_host = 'localhost';
private $db_host = '10.35.232.188:3306';
private $db_name = 'k200835_dog';
private $db_username = 'k200835_user_dog';
// // private $db_host = '10.35.232.188:3306';
// private $db_name = 'k200835_dog';
// private $db_username = 'k200835_user_dog';
// private $db_password = 'X0pEiBsXN3RLazGhQVvP';
/// netcup server
/// name of the docker container
private $db_host = 'mysql';
private $db_name = 'dog';
private $db_username = 'user_dog';
private $db_password = 'X0pEiBsXN3RLazGhQVvP';
public function dbConnection()

View File

@ -85,6 +85,7 @@ const Login = () =>
{
notificationSuccess(logResp.message);
mutate(); // update swr
window.location.href = '/dog/';
}
else
{