wip: recreate directory structure on the productive system

This commit is contained in:
marko
2024-07-19 05:06:46 +02:00
parent c30b9e8522
commit 86276f4ec1
84 changed files with 19 additions and 15 deletions

View File

@@ -1,9 +1,9 @@
<?php
# demo file testing the docker installed db
$pdo = new PDO(
'mysql:dbname=tutorial; host=mysql',
'tutorial',
'secret',
'mysql:dbname=cwsvjudo; host=database',
'cwsvjudo',
'kodokan',
[PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION]
);

View File

@@ -6,7 +6,7 @@
"configurations": [
{
"name": "post",
"type": "python",
"type": "debugpy",
"request": "launch",
"program": "testApi.py",
"console": "integratedTerminal",
@@ -18,13 +18,15 @@
},
{
"name": "getTrainees",
"type": "python",
"type": "debugpy",
"request": "launch",
"program": "testApi.py",
"console": "integratedTerminal",
"justMyCode": true,
"args": [
"GET",
"--endpoint", "trainees" ]
} ]
"--endpoint", "trainees"
]
}
]
}

View File

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

View File

Before

Width:  |  Height:  |  Size: 5.8 KiB

After

Width:  |  Height:  |  Size: 5.8 KiB

View File

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

View File

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

@@ -5,24 +5,25 @@ set_include_path(get_include_path() . PATH_SEPARATOR . "./lib/");
// configs and local data
// @todo Check and replace obsolete ones
require_once 'config/participo.php';
require_once 'config/phpcount.config.php';
// require_once 'config/phpcount.config.php';
require_once 'local/cwsvJudo.php';
// legacy lib usage
// @todo remove unused libraries
require_once 'db.php'; // should be replaced
require_once 'api.php'; // should be replaced
// require_once 'db.php'; // should be replaced
// require_once 'api.php'; // should be replaced
// libraries
require_once 'participoLib/participo.php';
require_once 'participoLib/planer.php';
require_once 'participoLib/apiKey.php';
require_once 'phpcount/phpcount.php';
// require_once 'phpcount/phpcount.php';
// Add page hit
PHPCount::AddHit('participo');
// PHPCount::AddHit('participo');
// init the db connector
// init the db connector
// var_dump($cwsvJudoConfig);
dbConnector::connect(
$cwsvJudoConfig['db']['host'],
$cwsvJudoConfig['db']['name'],

View File

@@ -13,7 +13,8 @@ services:
# files and directories to be available in the container
volumes:
- ./nginx.conf:/etc/nginx/conf.d/nginx.conf
- ./app:/app
# - ./app:/app
- .cwsvjudo:/users/cwsvjudo/
# php and extensions
php:
# use pre-build image from docker..

View File

@@ -1,7 +1,7 @@
# @todo Needs helpfull comments.
server {
listen 80 default_server;
root /app/public;
root /cwsvjudo/www;
index index.php index.html index.htm;