#1 2016-10-20 09:17:57

edwinsn
Member
Registered: 2010-07-02
Posts: 1,215

Web development and hot code loading?

Hello,

With a mORMot powered web server (on linux), it is possible to achieve "hot code loading", instead of having to shutdown the program, update and restart again?

Thanks.


Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.

Offline

#2 2016-10-20 09:37:51

mpv
Member
From: Ukraine
Registered: 2012-03-24
Posts: 1,534
Website

Re: Web development and hot code loading?

You mean "hot code loading" of browser scripts, like hot module replacement  in webpack?

Last edited by mpv (2016-10-20 09:38:41)

Offline

#3 2016-10-20 10:41:30

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,182
Website

Re: Web development and hot code loading?

Do you mean with MVC?

The mustache templates can be modified in-place, without the need to restart the daemon.

But the data context needs actual code recompilation, so it can't be done without a restart.
You may add a .so/.dll plugin system, but it is not part of the standard feature set yet - even if it is not so difficult to implement for a particular project, I guess.

Offline

#4 2016-10-21 08:56:37

edwinsn
Member
Registered: 2010-07-02
Posts: 1,215

Re: Web development and hot code loading?

No, I mean updating the web server itself (ie. The .exe file on Windows).


Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.

Offline

Board footer

Powered by FluxBB