diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5730b12b2c4fa76135b4a61acafdc1df38e651a5..b39e6cdd992ed21f58c4aecd137186ae78b03311 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 8a69a827540b70112278bf1f16dea5d287a84bd6..c624ac3235f6afeb728c373e0d6ac0c009969823 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');