Set version via config

This commit is contained in:
Daniel Friesel 2019-04-14 17:33:20 -04:00
parent 17e8b65957
commit e1e07d5811
3 changed files with 2 additions and 3 deletions

View file

@ -20,4 +20,5 @@
secrets => [
die("Changeme!"),
],
version => qx{git describe --dirty} // 'experimental',
};

View file

@ -15,8 +15,6 @@ use Travel::Status::DE::IRIS;
use Travel::Status::DE::IRIS::Stations;
use Travelynx::Helper::Sendmail;
our $VERSION = qx{git describe --dirty} || 'experimental';
sub check_password {
my ( $password, $hash ) = @_;

View file

@ -6,7 +6,7 @@ my $travelynx_version = qx{git describe --dirty} || 'experimental';
sub about {
my ($self) = @_;
$self->render( 'about', version => $travelynx_version );
$self->render( 'about', version => $self->app->config->{version} // 'UNKNOWN' );
}
sub imprint {