Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- access.conf:
- {
- hypnotoad => {
- listen => ['https://*:5001'],
- pid_file => '/tmp/access.pid',
- workers => 10,
- proxy => 1
- }
- };
- program is started by hypnotoad -f script/access in the directory with the access.conf (base of the app)
- program startup reads as (lib/Access.pm):
- sub startup {
- my $self = shift;
- my $config = $self->plugin('Config');
- use Data::Dumper;
- warn Dumper($config);
- warn Dumper($self->config);
- When it is run I get:
- [Thu Jan 22 14:27:14 2015] [debug] Reading config file "(...redacted...)/access.conf".
- $VAR1 = {
- 'hypnotoad' => {
- 'workers' => 10,
- 'listen' => [
- 'https://*:5001'
- ],
- 'proxy' => 1,
- 'pid_file' => '/tmp/access.pid'
- }
- };
- [Thu Jan 22 14:27:14 2015] [info] Listening at "http://*:3001".
- Server available at http://127.0.0.1:3001.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement