Skip to content

Commit

Permalink
Move RegisterLicense to AppHost
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed Jan 16, 2024
1 parent 37196af commit 79a9894
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ jobs:
APP_NAME: ${{ github.event.repository.name }}
HOST_DOMAIN: ${{ env.domain }}
LETSENCRYPT_EMAIL: ${{ env.letsencrypt_email }}
SERVICESTACK_LICENSE: ${{ secrets.SERVICESTACK_LICENSE }}
FORUMS_DB: ${{ secrets.FORUMS_DB }}
TECHSTACKS_SMTP_USER: ${{ secrets.TECHSTACKS_SMTP_USER }}
TECHSTACKS_SMTP_PASS: ${{ secrets.TECHSTACKS_SMTP_PASS }}
Expand Down
3 changes: 3 additions & 0 deletions TechStacks/Configure.AppHost.cs
Original file line number Diff line number Diff line change
Expand Up @@ -283,4 +283,7 @@ SitemapFeature CreateSiteMap(IDbConnection db, string baseUrl) =>
}
}
};

public static void RegisterLicense() =>
Licensing.RegisterLicense("OSS BSD-3-Clause 2024 https://github.com/NetCoreApps/TechStacks otNWkDy8SaBst+5+0DZ2jRhUpAXTzQil2M5/xjBVB6hX/zn6SZhuKxhZLF4VrsDfd5qPCoZmuShaxmGtLeovzMjof54vgk7+69i0icWaN5eD1aSr6hYO1eN/Lw3ee9AxQ5mDWPN8LHNk6s0zq9znAEET9y/6SM3X3FHHZ3QT1HU=");
}
1 change: 1 addition & 0 deletions TechStacks/Program.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using ServiceStack;
using TechStacks;

AppHost.RegisterLicense();
var builder = WebApplication.CreateBuilder(args);

var app = builder.Build();
Expand Down

0 comments on commit 79a9894

Please sign in to comment.