On Friday 28 September 2012 01:06:57 Benoît Minisini wrote: > Le 28/09/2012 00:54, Adrien Prokopowicz a écrit : > > Wow, that sounds great ! Thanks Benoît ! :-) > > I will try it out right now, and see what I can already do with that. > > Just one little question : as you say that the interpreter makes many > > initializations, is the project (and all its data, and maybe > > translation files) loaded as well ? This can affect a lot the execution > > time. > > At the moment, the HTTP server is run just after the ".project" file has > been loaded, analyzed, and the required components loaded. When it forks > to actually run the project, the _init() functions of all exported > classes from components written in Gambas are called, the main hooks are > run, and then the Main() function of the startup class is run. > > As for translation files, they are always loaded the later as possible > (when the first translated string of the component or the project is > needed). > > > I will see if apache can redirect the HTTP request to the interpreter, > > so that Apache will handle serving static files (CSS/JS/Images ...) and > > rewrite some URLs. It could be a workaround until the gb.httpd server > > can handle all that. > > gb.httpd is intended to serve only what is inside the project. I think > it could be modified so that it serves static files located inside the > project without running the CGI script. > > Regards,
How can i use it and take advantage of this feature if i do not know all the details ? e.g. can i run a gmbas project using gb.httpd on PC1 (or raspberry) and access the running project via http from another machine PC2 ? ------------------------------------------------------------------------------ Got visibility? Most devs has no idea what their production app looks like. Find out how fast your code is with AppDynamics Lite. http://ad.doubleclick.net/clk;262219671;13503038;y? http://info.appdynamics.com/FreeJavaPerformanceDownload.html _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user