Skip to content
This repository has been archived by the owner on Feb 3, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
bind to public ip
  • Loading branch information
FROGGS committed Nov 3, 2014
1 parent bc77a9a commit 7ed6c59
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions app.pl
Expand Up @@ -8,12 +8,16 @@

Bailador::import;

# database configuration
DBIish.install_driver('Pg');
my $dbh = DBIish.connect('Pg',
:user<cpandatesters>, :password<cpandatesters>,
:host<localhost>, :port<5432>, :database<cpandatesters>
);
my $host = '127.0.0.1';

# web service config
my $host = '85.25.222.109';
my $port = 3000;

my &cell := Template::Mojo.new(slurp 'views/cell.tt').code;
my &dist := Template::Mojo.new(slurp 'views/dist.tt').code;
Expand Down Expand Up @@ -243,9 +247,9 @@ ($env)
return dispatch($env).psgi;
}

given HTTP::Easy::PSGI.new(:$host, :port(80)) {
given HTTP::Easy::PSGI.new(:$host, :$port) {
.app(&dispatch-psgi);
say "Entering the development dance floor: http://$host:80";
say "Entering the development dance floor: http://$host:$port";
.run;
}

Expand Down

0 comments on commit 7ed6c59

Please sign in to comment.