This commit is contained in:
17
Startup.cs
17
Startup.cs
@@ -40,11 +40,12 @@ namespace rockfishCore
|
||||
{
|
||||
|
||||
services.AddDbContext<rockfishContext>(
|
||||
options => {
|
||||
options.UseSqlite(Configuration.GetConnectionString("rfdb"));
|
||||
options.EnableSensitiveDataLogging(false);
|
||||
options =>
|
||||
{
|
||||
options.UseSqlite(Configuration.GetConnectionString("rfdb"));
|
||||
options.EnableSensitiveDataLogging(false);
|
||||
}
|
||||
|
||||
|
||||
);
|
||||
|
||||
//Added this so that can access configuration from anywhere else
|
||||
@@ -107,6 +108,14 @@ namespace rockfishCore
|
||||
RfSchema.CheckAndUpdate(dbContext);
|
||||
|
||||
//bool bMM=RfMail.MailIsMirroringProperly();
|
||||
try
|
||||
{
|
||||
var test = OpsDiagnostics.CheckWebsite("https://test.helloayanova.com/api/v8/", "AyaNova server");
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string res = ex.Message;
|
||||
}
|
||||
|
||||
}//eof
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user