wip: recreate directory structure on the productive system
@@ -1,9 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
# demo file testing the docker installed db
|
# demo file testing the docker installed db
|
||||||
$pdo = new PDO(
|
$pdo = new PDO(
|
||||||
'mysql:dbname=tutorial; host=mysql',
|
'mysql:dbname=cwsvjudo; host=database',
|
||||||
'tutorial',
|
'cwsvjudo',
|
||||||
'secret',
|
'kodokan',
|
||||||
[PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION]
|
[PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION]
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -6,7 +6,7 @@
|
|||||||
"configurations": [
|
"configurations": [
|
||||||
{
|
{
|
||||||
"name": "post",
|
"name": "post",
|
||||||
"type": "python",
|
"type": "debugpy",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"program": "testApi.py",
|
"program": "testApi.py",
|
||||||
"console": "integratedTerminal",
|
"console": "integratedTerminal",
|
||||||
@@ -18,13 +18,15 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "getTrainees",
|
"name": "getTrainees",
|
||||||
"type": "python",
|
"type": "debugpy",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"program": "testApi.py",
|
"program": "testApi.py",
|
||||||
"console": "integratedTerminal",
|
"console": "integratedTerminal",
|
||||||
"justMyCode": true,
|
"justMyCode": true,
|
||||||
"args": [
|
"args": [
|
||||||
"GET",
|
"GET",
|
||||||
"--endpoint", "trainees" ]
|
"--endpoint", "trainees"
|
||||||
} ]
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 5.8 KiB After Width: | Height: | Size: 5.8 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
@@ -5,24 +5,25 @@ set_include_path(get_include_path() . PATH_SEPARATOR . "./lib/");
|
|||||||
// configs and local data
|
// configs and local data
|
||||||
// @todo Check and replace obsolete ones
|
// @todo Check and replace obsolete ones
|
||||||
require_once 'config/participo.php';
|
require_once 'config/participo.php';
|
||||||
require_once 'config/phpcount.config.php';
|
// require_once 'config/phpcount.config.php';
|
||||||
require_once 'local/cwsvJudo.php';
|
require_once 'local/cwsvJudo.php';
|
||||||
|
|
||||||
// legacy lib usage
|
// legacy lib usage
|
||||||
// @todo remove unused libraries
|
// @todo remove unused libraries
|
||||||
require_once 'db.php'; // should be replaced
|
// require_once 'db.php'; // should be replaced
|
||||||
require_once 'api.php'; // should be replaced
|
// require_once 'api.php'; // should be replaced
|
||||||
|
|
||||||
// libraries
|
// libraries
|
||||||
require_once 'participoLib/participo.php';
|
require_once 'participoLib/participo.php';
|
||||||
require_once 'participoLib/planer.php';
|
require_once 'participoLib/planer.php';
|
||||||
require_once 'participoLib/apiKey.php';
|
require_once 'participoLib/apiKey.php';
|
||||||
require_once 'phpcount/phpcount.php';
|
// require_once 'phpcount/phpcount.php';
|
||||||
|
|
||||||
// Add page hit
|
// Add page hit
|
||||||
PHPCount::AddHit('participo');
|
// PHPCount::AddHit('participo');
|
||||||
|
|
||||||
// init the db connector
|
// init the db connector
|
||||||
|
// var_dump($cwsvJudoConfig);
|
||||||
dbConnector::connect(
|
dbConnector::connect(
|
||||||
$cwsvJudoConfig['db']['host'],
|
$cwsvJudoConfig['db']['host'],
|
||||||
$cwsvJudoConfig['db']['name'],
|
$cwsvJudoConfig['db']['name'],
|
||||||
@@ -13,7 +13,8 @@ services:
|
|||||||
# files and directories to be available in the container
|
# files and directories to be available in the container
|
||||||
volumes:
|
volumes:
|
||||||
- ./nginx.conf:/etc/nginx/conf.d/nginx.conf
|
- ./nginx.conf:/etc/nginx/conf.d/nginx.conf
|
||||||
- ./app:/app
|
# - ./app:/app
|
||||||
|
- .cwsvjudo:/users/cwsvjudo/
|
||||||
# php and extensions
|
# php and extensions
|
||||||
php:
|
php:
|
||||||
# use pre-build image from docker..
|
# use pre-build image from docker..
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
# @todo Needs helpfull comments.
|
# @todo Needs helpfull comments.
|
||||||
server {
|
server {
|
||||||
listen 80 default_server;
|
listen 80 default_server;
|
||||||
root /app/public;
|
root /cwsvjudo/www;
|
||||||
|
|
||||||
index index.php index.html index.htm;
|
index index.php index.html index.htm;
|
||||||
|
|
||||||
|
|||||||