From deb32ab1959d18107c5576913e4b46b5c6c3a7cc Mon Sep 17 00:00:00 2001 From: root <root@test.selfmade.ninja> Date: Thu, 28 Apr 2022 16:07:23 +0000 Subject: [PATCH] new config test --- .gitlab-ci.yml | 1 + libs/load.php | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5730b12b..b39e6cdd 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -21,6 +21,7 @@ deploy-job: # This job runs in the deploy stage. script: - echo "Deploying application..." - echo "Application successfully deployed." + - ls /var/www tags: - prod only: diff --git a/libs/load.php b/libs/load.php index 8a69a827..c624ac32 100644 --- a/libs/load.php +++ b/libs/load.php @@ -8,6 +8,11 @@ include_once 'includes/UserSession.class.php'; global $__site_config; // global $__base_path; //Note: Change this path if you run this code outside lab. +/* +Note: Location of configuration +in lab : /home/user/phtogramconfig.json +in server: /var/www/photogramconfig.json +*/ $__site_config_path = dirname(is_link($_SERVER['DOCUMENT_ROOT']) ? readlink($_SERVER['DOCUMENT_ROOT']) : $_SERVER['DOCUMENT_ROOT']).'/photogramconfig.json'; $__site_config = file_get_contents($__site_config_path); // $__base_path = get_config('base_path'); -- GitLab