[Rt-commit] rt branch, 4.0/fcgi-not-external-server-warning, created. rt-4.0.0-276-g9940eb1
? sunnavy
sunnavy at bestpractical.com
Thu May 12 07:27:44 EDT 2011
The branch, 4.0/fcgi-not-external-server-warning has been created
at 9940eb1656b691fcce91b4f279c83416f0ea7e93 (commit)
- Log -----------------------------------------------------------------
commit 9940eb1656b691fcce91b4f279c83416f0ea7e93
Author: sunnavy <sunnavy at bestpractical.com>
Date: Thu May 12 19:20:38 2011 +0800
rt-server.fcgi is not intended to be an external server, warning user about that
diff --git a/sbin/rt-server.in b/sbin/rt-server.in
index 022559b..dc819e8 100755
--- a/sbin/rt-server.in
+++ b/sbin/rt-server.in
@@ -176,6 +176,16 @@ my $r = Plack::Runner->new( $0 =~ 'standalone' ? ( server => 'Standalone' ) :
: (),
env => 'deployment' );
+if ( $is_fastcgi && @ARGV ) {
+ print <<EOF;
+Please use rt-server instead as an external fcgi server:
+ rt-server --server FCGI ...
+or
+ plackup -s FCGI /path/to/rt-server ...
+EOF
+ exit 1;
+}
+
# figure out the port
my $port;
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list