Skip to content
Snippets Groups Projects
Commit deb32ab1 authored by root's avatar root
Browse files

new config test

parent 433c77ff
No related branches found
No related tags found
Loading
Pipeline #624 passed
......@@ -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:
......
......@@ -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');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment