Skip to content

Commit

Permalink
docker utils
Browse files Browse the repository at this point in the history
  • Loading branch information
vti committed May 1, 2017
1 parent 6fefa92 commit 5935f78
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bin/crafty
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Crafty::Log->init(verbose => 1) if $opt_verbose;
my $config = Crafty::Config->new(root => $root, base => $opt_base);
$config->load($opt_config);

$opt_listen //= $config->config->{listen} // '127.0.0.1:5000';
$opt_listen //= $config->config->{listen} // '0.0.0.0:5000';
$config->config->{listen} //= $opt_listen;

Crafty::PubSub->instance->own->address($opt_listen);
Expand Down
2 changes: 0 additions & 2 deletions lib/Crafty.pm
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ has 'pool',
sub BUILD {
my $self = shift;

Crafty::Log->info("Starting app");

$self->pool->start;
}

Expand Down
3 changes: 3 additions & 0 deletions util/docker-build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

docker build . --tag crafty
3 changes: 3 additions & 0 deletions util/docker-run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

docker run -d --restart always -v $PWD/data/:/opt/crafty/data -p 5000:5000 --name crafty crafty

0 comments on commit 5935f78

Please sign in to comment.