Reputation: 1170
I am using NGINX's FastCGI interface. I currently launch my backend app with spawn-fcgi.
spawn-fcgi -p 8000 -n fcgitest
"man spawn-fcgi" gives a few reasons why I should use it to launch my app.--but I am not convinced those are good reasons for me.
Is it possible to launch my app (fcgitest) directly? For instance, that would make it easier to debug the app..
What are the downsides of launching it directly?
Upvotes: 2
Views: 3946
Reputation: 2590
It is possible and it is a convenient approach to debugging. Take a look at this brilliant two-file library here. Not only it lets you run your application free of spawn-fcgi
, but also it allows you to run it in a variety of ways suited for production.
Of course after developing your code it is recommended to launch the FastCGI application using spawn-fcgi
as it is written it's manual page:
Upvotes: 1