use separate kinosearch index for each database
[angular-mojolicious.git] / couchdb-trigger.pl
index db5acb0..1724b67 100755 (executable)
@@ -25,6 +25,8 @@ my ( $url, $trigger_path ) = @ARGV;
 $url          ||= 'http://localhost:5984/monitor';
 $trigger_path ||= 'trigger/shell.pm' ;
 
+our $database = $1 if $url =~ m{/(\w+)/?$};
+
 sub commit { warn "# commit ignored\n"; }
 require $trigger_path if -e $trigger_path;