Skip to content
This repository has been archived by the owner on Nov 26, 2021. It is now read-only.

Commit

Permalink
display when config file is being used
Browse files Browse the repository at this point in the history
  • Loading branch information
Goncalo Oliveira committed Nov 20, 2020
1 parent 62de744 commit 6a5b32b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.vscode/
published/
src/**/obj
src/**/bin
src/**/bin
5 changes: 5 additions & 0 deletions src/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ public static IHostBuilder CreateHostBuilder( string[] args, Options options ) =
{
webBuilder.ConfigureAppConfiguration( configBuilder =>
{
if ( System.IO.File.Exists( options.Config ) )
{
Console.WriteLine( $"Using '{options.Config}' configuration file." );
}
configBuilder.SetBasePath( Environment.CurrentDirectory );
configBuilder.AddJsonFile( options.Config, optional: true, reloadOnChange: false );
configBuilder.AddEnvironmentVariables();
Expand Down
4 changes: 2 additions & 2 deletions src/faas-run.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
<!-- The OS and CPU type you are targeting -->
<RuntimeIdentifier>ubuntu.16.10-x64</RuntimeIdentifier>
<RuntimeIdentifier>linux-x64</RuntimeIdentifier>
<!-- Determine self-contained or framework-dependent -->
<SelfContained>false</SelfContained>
<!-- Enable single file -->
<PublishSingleFile>true</PublishSingleFile>
<Version>0.2</Version>
<Version>0.2.1</Version>
<Authors>Goncalo Oliveira</Authors>
<Company>RedPanda Ltd</Company>
<Description>FaaS runner for ASPNET functions</Description>
Expand Down

0 comments on commit 6a5b32b

Please sign in to comment.