Skip to content

Commit f8e0cb9

Browse files
authored
envPath processing mistake
The variable envPath is constructed but never used. Environment variables might not be loaded properly.
1 parent a618b56 commit f8e0cb9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ProjectTemplates/ReferenceProject/Startup.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public Startup(IConfiguration configuration, IHostEnvironment env)
3636
var envPath = Path.Combine(env.ContentRootPath, ".env");
3737
if (File.Exists(envPath))
3838
{
39-
DotNetEnv.Env.Load();
39+
DotNetEnv.Env.Load(envPath);
4040
}
4141

4242
// See: https://github.com/drwatson1/AspNet-Core-REST-Service/wiki#content-formatting

0 commit comments

Comments
 (0)