Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dokuwiki
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
BRIC
dokuwiki
Commits
d22be2c0
Commit
d22be2c0
authored
12 years ago
by
Anika Henke
Browse files
Options
Downloads
Patches
Plain Diff
improved comments, added link to farm.php
parent
bb853ec3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
inc/farm.php
+3
-2
3 additions, 2 deletions
inc/farm.php
inc/preload.php.dist
+1
-1
1 addition, 1 deletion
inc/preload.php.dist
with
4 additions
and
3 deletions
inc/farm.php
+
3
−
2
View file @
d22be2c0
...
...
@@ -2,8 +2,9 @@
/**
* This overwrites DOKU_CONF. Each animal gets its own configuration and data directory.
* This can be used together with preload.php. See preload.php.dist for an example setup.
* For more information see http://www.dokuwiki.org/farms.
*
* The farm
($farm
) can be any directory and needs to be set.
* The farm
directory (constant DOKU_FARMDIR
) can be any directory and needs to be set.
* Animals are direct subdirectories of the farm directory.
* There are two different approaches:
* * An .htaccess based setup can use any animal directory name:
...
...
@@ -21,7 +22,7 @@
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
*/
// DOKU_FARMDIR needs to be set in preload.php, here the fallback is the same as DOKU_INC
(which isn't set yet
)
// DOKU_FARMDIR needs to be set in preload.php, here the fallback is the same as DOKU_INC
would be (if it was set already
)
if
(
!
defined
(
'DOKU_FARMDIR'
))
define
(
'DOKU_FARMDIR'
,
fullpath
(
dirname
(
__FILE__
)
.
'/../'
)
.
'/'
);
if
(
!
defined
(
'DOKU_CONF'
))
define
(
'DOKU_CONF'
,
conf_path
(
DOKU_FARMDIR
));
if
(
!
defined
(
'DOKU_FARM'
))
define
(
'DOKU_FARM'
,
false
);
...
...
This diff is collapsed.
Click to expand it.
inc/preload.php.dist
+
1
−
1
View file @
d22be2c0
<?php
/**
* This is an example for a farm setup. Simply copy this file to preload.php and
* uncomment what you need. See http://dokuwiki.org/farms for more information.
* uncomment what you need. See http://
www.
dokuwiki.org/farms for more information.
* You can also use preload.php for other things than farming, e.g. for moving
* local configuration files out of the main ./conf directory.
*/
...
...
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