[Gambas-user] Docker image Gambas issue
Linus
olivier.cruilles at yahoo.fr
Mon Feb 19 02:18:12 CET 2024
Hello,
I have done few tests after your comment and I agree the fact that when you run an application build with ‘gb.web.gui’, you obtain a web page as result (Ex: 'gbr3 WebUI' and not ‘gbr3 -H WebUI.gambas’)
Maybe I'm missing something in your description but like that I lost the interactive part of the application and no backend application is running assuming the session, as it is when you use the embedded web server.
Moreover I had to move all the content of the ‘.public’ directory into the /var/www/html/ and change few paths. If you use Icons provided by Gambas, they don’t work or your need to replace them and put them into your 'moved’ .public directory.
Seeing all that, surely I’m not using it like your described but it did not work for me putting my application just behind a web server.
What I’m doing wrong please ?
Thank you
Olivier
> Le 15 févr. 2024 à 01:29, Benoît Minisini <benoit.minisini at gambas-basic.org> a écrit :
>
> Le 15/02/2024 à 01:07, Linus via User a écrit :
>> I agree with you regarding the fact the embedded Gambas web server is
>> not made for production but unfortunately the fact to replace it, as
>> solution, by a CGI is not good I think.
>> When you use CGI gambas script, as I already tried in the past, but
>> you need to deal with HTML, javascript some time, depending what you
>> need. The magie of gb.web.gui is the fact you can develop an Web
>> application almost you develop a desktop application. Of course it’s
>> not so simple said like that but it is way far more confortable than
>> just a CGI script. Moreover, a ‘gb.web.gui' Web application add the
>> interactive side between the Browser and the web application in back
>> end and it’s really magic.
>> So I was really expecting the opinion of Benoit regarding that
>> because for now this component is really under estimated but it is
>> really powerful.
>> Olivier
>
> Projects using 'gb.web.gui' are still CGI scripts, and so need a Web server.
>
> What Christof told you is not to use 'gb.httpd' for production, only for debugging. So you must put in your Docker a reliable HTTP server (Apache, Nginx, lighttpd...) in front of your CGI 'gb.web.gui' application.
>
> In the future, some library like 'libmicrohttpd' may allow to add an embedded http server to 'gb.web.gui' so that a Gambas web application executable becomes autonomous, not needing a full Web server to work.
>
> Regards,
>
> --
> Benoît Minisini.
>
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
More information about the User
mailing list