Skip to content

Commit

Permalink
improve the mechanism for stopping the setup server
Browse files Browse the repository at this point in the history
  • Loading branch information
jberger committed Apr 6, 2014
1 parent 87fe40f commit dfb3190
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lib/Galileo/Command/setup.pm
Expand Up @@ -132,10 +132,9 @@ sub run {

$self->humane_stash( 'Goodbye' );
$self->render('galileo_finish');
$self->tx->on( finish => sub { exit } );
});

$r->any('/exit' => sub { exit });

$self->Mojolicious::Command::daemon::run(@args);
}

Expand Down Expand Up @@ -269,10 +268,6 @@ __DATA__
<p>Setup complete, run <pre>$ galileo daemon</pre></p>
% }
%= javascript begin
$(function(){ $.get('<%= url_for 'exit' %>') });
% end
@@ control_group.html.ep
<div class="control-group">
Expand Down

0 comments on commit dfb3190

Please sign in to comment.