View difference between Paste ID: kUDvTtMb and zuKT32qN
SHOW: | | - or go back to the newest paste.
1
access.conf:
2
{
3
hypnotoad => {
4
	listen => ['https://*:5001'],
5
	pid_file => '/tmp/access.pid',
6
	workers => 10,
7
	proxy => 1
8
	}
9
};
10
11
program is started by hypnotoad -f script/access   in the directory with the access.conf (base of the app)
12
13
program startup reads as (lib/Access.pm):
14
sub startup {
15
  my $self = shift;
16
17
  my $config = $self->plugin('Config');
18
        use Data::Dumper;
19
        warn Dumper($config);
20
        warn Dumper($self->config);
21
22
23
When it is run I get:
24
25
[Thu Jan 22 14:27:14 2015] [debug] Reading config file "(...redacted...)/access.conf".
26
$VAR1 = {
27
          'hypnotoad' => {
28
                           'workers' => 10,
29
                           'listen' => [
30
                                         'https://*:5001'
31
                                       ],
32
                           'proxy' => 1,
33
                           'pid_file' => '/tmp/access.pid'
34
                         }
35
        };
36
[Thu Jan 22 14:27:14 2015] [info] Listening at "http://*:3001".
37
Server available at http://127.0.0.1:3001.