mirror of
https://github.com/danieleteti/delphimvcframework.git
synced 2024-11-15 07:45:54 +01:00
Merge branch 'sempare_adaptor_support' of https://github.com/darnocian/delphimvcframework into darnocian-sempare_adaptor_support
This commit is contained in:
commit
c91d1dd3ec
@ -44,6 +44,7 @@ interface
|
||||
uses
|
||||
MVCFramework,
|
||||
MVCFramework.Commons,
|
||||
MVCFramework.Logger,
|
||||
System.Classes,
|
||||
Sempare.Template;
|
||||
|
||||
@ -91,7 +92,7 @@ begin
|
||||
except
|
||||
on e: Exception do
|
||||
begin
|
||||
writeln(e.Message); // not the most ideal way of doing things... we would want to use a logger
|
||||
Log.Error('[%s] %s', [e.Classname, e.Message], LOGGERPRO_TAG);
|
||||
raise e;
|
||||
end;
|
||||
end;
|
||||
|
@ -10,6 +10,7 @@ uses
|
||||
Winapi.ShellAPI,
|
||||
Winapi.Windows,
|
||||
{$ENDIF }
|
||||
Sempare.Template,
|
||||
IdHTTPWebBrokerBridge,
|
||||
Web.WebReq,
|
||||
Web.WebBroker,
|
||||
@ -27,6 +28,7 @@ procedure RunServer(APort: Integer);
|
||||
var
|
||||
LServer: TIdHTTPWebBrokerBridge;
|
||||
begin
|
||||
TTemplateRegistry.Instance.LoadStrategy := [tlsLoadFile];
|
||||
ReportMemoryLeaksOnShutdown := True;
|
||||
Writeln(Format('Starting HTTP Server on port %d', [APort]));
|
||||
LServer := TIdHTTPWebBrokerBridge.Create(nil);
|
||||
|
Loading…
Reference in New Issue
Block a user