Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
Photogram Project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Rajesh D
Photogram Project
Commits
deb32ab1
Commit
deb32ab1
authored
2 years ago
by
root
Browse files
Options
Downloads
Patches
Plain Diff
new config test
parent
433c77ff
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+1
-0
1 addition, 0 deletions
.gitlab-ci.yml
libs/load.php
+5
-0
5 additions, 0 deletions
libs/load.php
with
6 additions
and
0 deletions
.gitlab-ci.yml
+
1
−
0
View file @
deb32ab1
...
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
libs/load.php
+
5
−
0
View file @
deb32ab1
...
...
@@ -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');
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment