projects
/
angular-mojolicious.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix database name in view
[angular-mojolicious.git]
/
angular-replicate.pl
diff --git
a/angular-replicate.pl
b/angular-replicate.pl
index
ad8c807
..
2010754
100755
(executable)
--- a/
angular-replicate.pl
+++ b/
angular-replicate.pl
@@
-2,7
+2,7
@@
use warnings;
use strict;
use warnings;
use strict;
-use Mojo::
Cli
ent;
+use Mojo::
UserAg
ent;
use Data::Dump qw(dump);
use lib 'common/mojo/lib';
use Data::Dump qw(dump);
use lib 'common/mojo/lib';
@@
-12,7
+12,7
@@
my ( $from, $to ) = @ARGV;
die "usage: $0 http://from/data/database/ http://to/data/database/\n"
unless $from && $to;
die "usage: $0 http://from/data/database/ http://to/data/database/\n"
unless $from && $to;
-my $client = Mojo::
Cli
ent->new;
+my $client = Mojo::
UserAg
ent->new;
my $got = $client->get( $from )->res->json;
warn "# from $from ",dump($got);
my $got = $client->get( $from )->res->json;
warn "# from $from ",dump($got);