Adding listen shortcut.
This commit is contained in:
parent
3385809e09
commit
1cd463434a
@ -6,9 +6,15 @@ sub startup ($self) {
|
||||
|
||||
# Load configuration from config file
|
||||
my $config = $self->plugin('NotYAMLConfig');
|
||||
$self->config(
|
||||
hypnotoad => {
|
||||
proxy => 1,
|
||||
listen => [ $self->config('listen') // 'http://localhost:3000' ]
|
||||
}
|
||||
);
|
||||
|
||||
# Configure the application
|
||||
$self->secrets($config->{secrets});
|
||||
$self->secrets( $config->{secrets} );
|
||||
|
||||
# Router
|
||||
my $r = $self->routes;
|
||||
|
Loading…
Reference in New Issue
Block a user