Discussion:
[Lazarus] CGI Application do not enable Run (F9) button
Michael Van Canneyt via Lazarus
2018-06-04 05:54:45 UTC
Permalink
I've just clicked in New>CGI Application to create a new project and the
Run(F9) button is disabled.
However, If I choose FastCGI instead, the button stay enabled.
Is this a bug or a kind of restriction?
You cannot run a CGI program in the IDE. It expects a server environment.
If you attempt to run it in the IDE, you'll get an error 'no REQUEST_METHOD
passed from server' or something like it.

Michael.
--
Marcos Douglas B. Santos via Lazarus
2018-06-04 13:03:06 UTC
Permalink
On Mon, Jun 4, 2018 at 2:54 AM, Michael Van Canneyt via Lazarus
Post by Michael Van Canneyt via Lazarus
I've just clicked in New>CGI Application to create a new project and the
Run(F9) button is disabled.
However, If I choose FastCGI instead, the button stay enabled.
Is this a bug or a kind of restriction?
You cannot run a CGI program in the IDE. It expects a server environment.
If you attempt to run it in the IDE, you'll get an error 'no REQUEST_METHOD
passed from server' or something like it.
Hey Michael, thanks. But my intention was to code an example showing
how we can change between CGI and Standalone using directives.
I've used FastCGI choice instead.

I'm still curious: how disable the button in IDE?

Best regards,
Marcos Douglas
--
Mattias Gaertner via Lazarus
2018-06-04 13:15:33 UTC
Permalink
On Mon, 4 Jun 2018 10:03:06 -0300
Post by Marcos Douglas B. Santos via Lazarus
[...]
I've just clicked in New>CGI Application to create a new project and the
Run(F9) button is disabled.
[...]
I'm still curious: how disable the button in IDE?
You can disable
Project / Project Options / Miscellaneous / Project is
runnable.

Mattias
--
Marcos Douglas B. Santos via Lazarus
2018-06-04 13:35:49 UTC
Permalink
On Mon, Jun 4, 2018 at 10:15 AM, Mattias Gaertner via Lazarus
Post by Mattias Gaertner via Lazarus
On Mon, 4 Jun 2018 10:03:06 -0300
Post by Marcos Douglas B. Santos via Lazarus
[...]
I've just clicked in New>CGI Application to create a new project and the
Run(F9) button is disabled.
[...]
I'm still curious: how disable the button in IDE?
You can disable
Project / Project Options / Miscellaneous / Project is
runnable.
That's it. Thank you.

Marcos Douglas
--

Continue reading on narkive:
Loading...