-
Notifications
You must be signed in to change notification settings - Fork 11
/
UPGRADE_GUIDE
32 lines (23 loc) · 1.04 KB
/
UPGRADE_GUIDE
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
This file contains information on what to watch out for when upgrading
from one version of dragonfly to another.
---------------------------------------------------------------
From 0.2 or earlier to 0.5:
* Enforcing variable naming conventions:
1) Constants are CAPITALIZED and use the '_' to separate words
2) Variables are lowercase and use the '-' to separate words
Examples:
find 'documentroot' replace with 'DOCUMENT_ROOT'
find 'dragonfly_version' replace with 'DRAGONFLY_VERSION'
Purpose:
This is done so that it's clear which parts of Dragonfly
are user-customizable and which are not, and to make naming
conflicts more difficult.
* Environment variables are now global constants and therefore
the ones formerly in Dragonfly context should be converted like this:
Dragonfly:host => HTTP_HOST
Dragonfly:useragent => HTTP_USER_AGENT
Dragonfly:server => SERVER_SOFTWARE
Dragonfly:programfiles => PROGRAMFILES
Dragonfly:proxy => HTTP_PROXY
Alternatively you can use 'env' or '$SERVER' to access them:
Example: ($SERVER "HTTP_HOST")