File tree 3 files changed +6
-10
lines changed
3 files changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -332,6 +332,7 @@ sub processTemplate {
332
332
}
333
333
334
334
# add in some template template variables
335
+ $var -> {config } = $config ;
335
336
$var -> {databaseHost } = $config -> get(" mysql/hostname" );
336
337
$var -> {databasePort } = $config -> get(" mysql/port" );
337
338
$var -> {nginxPort } = $config -> get(" nginx/port" );
Original file line number Diff line number Diff line change @@ -14,12 +14,7 @@ ft_min_word_len=2
14
14
wait_timeout =600
15
15
query_cache_size =32M
16
16
default-character-set =utf8
17
- port =[% databasePort %]
18
- [% IF osName == "windows" %]
19
- pid-file =c:\data\wre\var\mysql.pid
20
- datadir =c:\data\wre\var\mysqldata
21
- lower_case_table_names =2
22
- [% END %]
17
+ port =[% config.get(database/port) %]
23
18
[% IF osName == "darwin" %]
24
19
lower_case_table_names =2
25
20
[% END %]
Original file line number Diff line number Diff line change 1
1
user [% wreUser %];
2
2
worker_processes 10 ;
3
3
4
- error_log [% wreRoot %]/var/logs/error.log;
4
+ error_log [% config.getRoot %]/var/logs/error.log;
5
5
6
- pid [% wreRoot %]/var/run/nginx.pid;
6
+ pid [% config.getRoot %]/var/run/nginx.pid;
7
7
8
8
events {
9
9
worker_connections 1024 ;
@@ -33,10 +33,10 @@ http {
33
33
}
34
34
35
35
location ~ /.* {
36
- proxy_pass http://localhost:[% starmanPort %];
36
+ proxy_pass http://localhost:[% config.get(starman/port) %];
37
37
}
38
38
39
39
##Include per-server vhost configuration files.
40
- include [% wreRoot %]/etc/*.nginx
40
+ include [% config.getRoot %]/etc/*.nginx
41
41
42
42
}
You can’t perform that action at this time.
0 commit comments