-
-
Save cj/f00c8087a8e6cb56ea14 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if($self->mode eq 'development' || $self->mode eq 'test') { | |
my $env = Mojo::Asset::File->new(path => 'env.sh')->get_chunk; | |
my $mode_env = Mojo::Asset::File->new(path => "env.$mode.sh"); | |
my $mode = $self->mode; | |
if($mode_env->size > 0) { | |
$env .= $mode_env->get_chunk; | |
} | |
foreach my $file (split('\n', $env)){ | |
my($key, $value) = split('=', $file); | |
$ENV{$key} = $value; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment