wa0x6e / ResqueBoard

ResqueBoard is an analytics software for PHP Resque. Monitor your workers health and job activities in realtime

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

demo not working :(

amanu opened this issue · comments

demo at http://resque.neetcafe.com/ not working :(.

regards.

commented

In the process of moving to another server

commented

Half working now, still need to fix something to make it works with Nginx

commented

Fixed

Any certain options that needs to be taken into consideration when running on nginx?
Having some issues running it on nginx+php-fpm (PHP 5.5).

commented

Add these lines to your site nginx conf:

location / {
        try_files $uri /index.php?$args;
}

location /index.php {
        include         fastcgi_params;
        fastcgi_param   SCRIPT_FILENAME  $document_root$fastcgi_script_name;
        fastcgi_index   index.php;
        fastcgi_pass    php;
}

This works for me

server {
        listen   80;
        server_name resqueboard;

        root /var/www/resqueboard/src/ResqueBoard/webroot;
        index index.php;

        if (!-e $request_filename) {
                rewrite ^.*$ /index.php last;
        }

        location ~ .php$ {
                fastcgi_pass 127.0.0.1:9000;
                fastcgi_param  APP_ENV          staging;
                fastcgi_param  QUERY_STRING     $query_string;
                fastcgi_param  REQUEST_METHOD   $request_method;
                fastcgi_param  CONTENT_TYPE     $content_type;
                fastcgi_param  CONTENT_LENGTH   $content_length;
                fastcgi_param  SCRIPT_FILENAME  /var/www/resqueboard/src/ResqueBoard/webroot$fastcgi_script_name;
                include fastcgi.conf;
        }
}