From dc426d86a445e5f05ed57e54105537ad71b935d8 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Thu, 2 Jul 2020 17:29:32 +0000 Subject: [PATCH] --- Controllers/RvrController.cs | 2 +- Models/License.cs | 6 +++--- notes/deploy.txt | 2 ++ wwwroot/default.htm | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Controllers/RvrController.cs b/Controllers/RvrController.cs index 68c9224..6e9fd6c 100644 --- a/Controllers/RvrController.cs +++ b/Controllers/RvrController.cs @@ -70,7 +70,7 @@ namespace rockfishCore.Controllers } - System.Diagnostics.Debug.WriteLine("RvRController:Post - TODO: Test MustBeOlderThan date code"); + //if there is an active trial for this db then can't do this they must request we re-release it or completely zap the database instead var MustBeOlderThan = DateUtil.DateToEpoch(DateTime.Now.AddDays((RavenKeyFactory.TRIAL_PERIOD_DAYS * -1))); diff --git a/Models/License.cs b/Models/License.cs index 589856b..393243d 100644 --- a/Models/License.cs +++ b/Models/License.cs @@ -11,7 +11,7 @@ namespace rockfishCore.Models } public long Id { get; set; } public long CustomerId { get; set; } - public long SiteId { get; set; } + public long? SiteId { get; set; } public long DtCreated { get; set; } public string RegTo { get; set; } public string Key { get; set; } @@ -21,8 +21,8 @@ namespace rockfishCore.Models public long? DtFetched { get; set; } public bool Fetched { get; set; } public string DbId { get; set; } - public long DtLicenseExpiration { get; set; } - public long DtMaintenanceExpiration { get; set; } + public long? DtLicenseExpiration { get; set; } + public long? DtMaintenanceExpiration { get; set; } } } diff --git a/notes/deploy.txt b/notes/deploy.txt index 66939fe..d0046eb 100644 --- a/notes/deploy.txt +++ b/notes/deploy.txt @@ -19,6 +19,8 @@ dotnet publish -c Release -o ./../publish/ //if need a debug version dotnet publish -o ./../publish/ +2.5) Runtime - make sure if runtime changed that server has latest + 3) COPY Copy over to production server, only need the .dll and the wwwroot folder contents, remember not to delete the folders on the server only replace their contents because there are file permissions set diff --git a/wwwroot/default.htm b/wwwroot/default.htm index 037b398..5927240 100644 --- a/wwwroot/default.htm +++ b/wwwroot/default.htm @@ -106,7 +106,7 @@ window.onerror = function ( error ) { -
+