Browse Source

fixing some hardcoding

jahway603
D 1 year ago
parent
commit
949b76abe4
  1. 2
      README.md
  2. 2
      explorer.dragonx.is/bin/regen_all_blocks_redis.pl
  3. 2
      explorer.dragonx.is/bin/update.pl
  4. 2
      explorer.dragonx.is/bin/update_blocks_redis.pl

2
README.md

@ -36,6 +36,8 @@ when running export_env.sh for manual testing, run the script as source. This as
```source ./export_env.sh ``` or ```. ./export_env.sh``` for shorthand
use ```sudo -E``` to preserve env variables if sudo is needed
# Copyright
2016-2023 The Hush Developers

2
explorer.dragonx.is/bin/regen_all_blocks_redis.pl

@ -18,7 +18,7 @@ my $j = JSON::Any->new;
my $acname = $ENV{SIONA_ACNAME} || 'DRAGONX';
# my $ticker = $acname eq 'DRAGONX' ? 'DRGX' : $acname;
my $ticker = 'DRGX';
my $domain = $ENV{SIONA_DOMAIN} || 'explorer.dragonx.is';
my $domain = $ENV{SIONA_DOMAIN} || 'siona-DragonX/explorer.dragonx.is';
my $root = "/var/www/$domain";
my $cli = $ENV{SIONA_CLI} || "/git/hush3/src/hush-cli";
my $getinfo = readfile("$root/api/getinfo.json");

2
explorer.dragonx.is/bin/update.pl

@ -15,7 +15,7 @@ sleep 30;
# While Siona swims, we pave with bricks on the road she will run on...
# my $dir = shift || $ENV{HOME} . "/data";
my $dir = shift || '/var/www/explorer.dragonx.is/api';
my $dir = shift || '/var/www/$ENV{SIONA_DOMAIN}/api';
my $getinfo = readfile("$dir/getinfo.json");
my $mining = readfile("$dir/getmininginfo.json");
my $txstats = readfile("$dir/getchaintxstats.json");

2
explorer.dragonx.is/bin/update_blocks_redis.pl

@ -18,7 +18,7 @@ my $j = JSON::Any->new;
my $acname = $ENV{SIONA_ACNAME} || 'DRAGONX';
# my $ticker = $acname eq 'DRAGONX' ? 'DRGX' : $acname;
my $ticker = 'DRGX';
my $domain = $ENV{SIONA_DOMAIN} || 'explorer.dragonx.is';
my $domain = $ENV{SIONA_DOMAIN} || 'siona-DragonX/explorer.dragonx.is';
my $root = "/var/www/$domain";
my $cli = $ENV{SIONA_CLI} || "/git/hush3/src/hush-cli";
my $getinfo = readfile("$root/api/getinfo.json");

Loading…
Cancel
Save