GitHub Action to deploy to Heroku after successful release (#824)

* netdisco-web uses PORT env var for --port if given
* new netdisco-demo container, for release to Heroku
* reinitialise and update the demo database
This commit is contained in:
Oliver Gorwits
2021-10-03 08:48:46 +01:00
committed by GitHub
parent 5890c2d06b
commit 0cef3be5a8
2 changed files with 98 additions and 0 deletions

View File

@@ -69,6 +69,10 @@ if (! -e $app_config) {
my $netdisco = file($FindBin::RealBin, 'netdisco-web-fg');
my @args = (scalar @ARGV > 1 ? @ARGV[1 .. $#ARGV] : ());
if (exists $ENV{PORT} and 0 == scalar grep { $_ =~ m/port/ } @args) {
push @args, "--port=$ENV{PORT}";
}
my $uid = (stat($netdisco->stringify))[4] || 0;
my $gid = (stat($netdisco->stringify))[5] || 0;