-
Notifications
You must be signed in to change notification settings - Fork 12
/
sample.craft-cli.php
124 lines (110 loc) · 2.98 KB
/
sample.craft-cli.php
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<?php
/**
* Sample craft-cli Configuration file
*
* Rename this file to .craft-cli.php in your site root.
*/
// Quit if this is not being requested via the CLI
if (php_sapi_name() !== 'cli') {
exit;
}
return array(
/**
* Craft base path
*
* Specify the path to your craft folder
* If you leave this blank, it will assume your
* folder is <current directory>/craft
*/
'craft_path' => __DIR__.'/craft',
/**
* Craft app path
*
* Specify the path to your craft app folder
* If you leave this blank, it will assume your
* folder is <current directory>/craft/app
*/
'craft_app_path' => null,
/**
* Craft framework path
*
* Specify the path to your Yii framework folder
* If you leave this blank, it will assume your
* folder is <current directory>/craft/app/framework
*/
'craft_framework_path' => null,
/**
* Craft config path
*
* Specify the path to your craft config folder
* If you leave this blank, it will assume your
* folder is <current directory>/craft/config
*/
'craft_config_path' => null,
/**
* Craft plugins path
*
* Specify the path to your craft plugins folder
* If you leave this blank, it will assume your
* folder is <current directory>/craft/plugins
*/
'craft_plugins_path' => null,
/**
* Craft storage path
*
* Specify the path to your craft storage folder
* If you leave this blank, it will assume your
* folder is <current directory>/craft/storage
*/
'craft_storage_path' => null,
/**
* Craft templates path
*
* Specify the path to your craft templates folder
* If you leave this blank, it will assume your
* folder is <current directory>/craft/templates
*/
'craft_templates_path' => null,
/**
* Craft translations path
*
* Specify the path to your craft translations folder
* If you leave this blank, it will assume your
* folder is <current directory>/craft/translations
*/
'craft_translations_path' => null,
/**
* Craft vendor path
*
* Specify the path to your craft vendor folder
* If you leave this blank, it will assume your
* folder is <current directory>/craft/app/vendor
*/
'craft_vendor_path' => null,
/**
* Craft environment
*
* The server name of your craft environment.
*/
'environment' => null,
/**
* Dotenv path
*
* (optional) If using phpdotenv, specify the path to
* the directory containing your .env file, and
* craft-cli load with load environment variables
* from it
*/
'dotenv_path' => __DIR__,
/**
* Custom command directories
*
* An array of directories, keyed by a namespace prefix,
* which will be crawled for Command classes.
*/
'commandDirs' => array(
/*
'\\Your\\Namespace' => '/path/to/commands',
*/
),
);