Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2018-06

CGI Application do not enable Run (F9) button

5 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Michael Van Canneyt
to Marcos Douglas B. Santos
Marcos Douglas B. Santos wrote 5 lines
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.

Reply by email

Marcos Douglas B. Santos
to Michael Van Canneyt
Michael Van Canneyt wrote 14 lines
On Sun, 3 Jun 2018, Marcos Douglas B. Santos via Lazarus wrote: > 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

Reply by email

Mattias Gaertner
to Marcos Douglas B. Santos

On Mon, 4 Jun 2018 10:03:06 -0300
"Marcos Douglas B. Santos via Lazarus"

Show quoted text 5 lines
[...] >> 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

Reply by email

Marcos Douglas B. Santos
to Mattias Gaertner
Mattias Gaertner wrote 13 lines
On Mon, 4 Jun 2018 10:03:06 -0300 "Marcos Douglas B. Santos via Lazarus" wrote: >[...] > >> 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

Reply by email