Set version via config
This commit is contained in:
parent
17e8b65957
commit
e1e07d5811
3 changed files with 2 additions and 3 deletions
|
@ -20,4 +20,5 @@
|
|||
secrets => [
|
||||
die("Changeme!"),
|
||||
],
|
||||
version => qx{git describe --dirty} // 'experimental',
|
||||
};
|
||||
|
|
|
@ -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 ) = @_;
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue