diff --git a/build/api/chs/hash b/build/api/chs/hash deleted file mode 100644 index 4030334..0000000 --- a/build/api/chs/hash +++ /dev/null @@ -1 +0,0 @@ -52add802518cc5e81705e05f44abb920bc0cbf674bba0166e4c229022f4301bb diff --git a/config/projects.json b/config/projects.json index cead3c2..ab48f12 100755 --- a/config/projects.json +++ b/config/projects.json @@ -1,12 +1,11 @@ { - "nxtic": { - "apache": "/vhost/nxtic", - "git": "/vhost/git-repositories/nxtic" - }, - "prod-releaser": { - "apache": "/vhost/prod-releaser", - "git": "/vhost/git-repositories/prod-release.php" + "ndli1718": { + "dir": "/vhost/ndli1718", + "cmd" : [ + "git pull origin master", + "npm run release" + ] } } diff --git a/config/server.json b/config/server.json deleted file mode 100755 index d5c847c..0000000 --- a/config/server.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - - "local" : { - "host" : "http://prod-releaser/", - "root" : "/" - }, - - "remote" : { - "host" : "https://prod-releaser.xdrm.io/", - "root" : "/" - } - -} diff --git a/install.sh b/install.sh deleted file mode 100755 index 6e77d74..0000000 --- a/install.sh +++ /dev/null @@ -1,3 +0,0 @@ -groupadd w-x-b; -usermod -a -G w-x-b www-data; -chgrp -R w-x-b .; diff --git a/public_html/index.php b/public_html/index.php index bf05fd6..8238b65 100755 --- a/public_html/index.php +++ b/public_html/index.php @@ -1,54 +1,20 @@ - api - =========================================================*/ - $R->post('api(?:/(.*))?', function($url){ - $request = ModuleRequest::fromPost($url, $_POST); - $answer = $request->dispatch(); - - // Si c'est une réponse - if( $answer instanceof ModuleResponse ) - echo $answer->serialize(); - - }); - - - /* [3] Any other URL -> homepage - =========================================================*/ - $R->get('.+', function(){ http_response_code(417); exit(); }); - $R->post('.+', function(){ http_response_code(417); exit(); }); - - - /* [8] Launch Router - ===================================================*/ - $R->run(); - -?> diff --git a/view/home.php b/view/home.php new file mode 100644 index 0000000..c1d0ca2 --- /dev/null +++ b/view/home.php @@ -0,0 +1,12 @@ + + + + + + + 404 + + + + + \ No newline at end of file