Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

How to build and access the new editor in path mode

More
10 hours 28 minutes ago #274375 by uwebcg
Please help us help you and fill where relevant:
LimeSurvey version: 7.0.0RC1
Own server or LimeSurvey Cloud: Own server (Kubernetes)
Survey theme/template: none
==================

Hi,

We're evaluating LS7 for a major upgrade from LS3 and I am looking for documentation around enabling the new editor.

Right now I'm getting a 404 when i click "Edit Survey". The URL it brings me to is https://internal-limesurvey-dev/editor/#/survey/714327. I can see it's a react app with all the build tools and scripts in /editor/. Is there any documentation in how to do build and access that?

My current stack:
- php-fpm serving LS7.0.0RC1 downloaded and extracted from .zip
- nginx frontend, fastcgi proxy for index.php
- urlformat: path
Code:
config.php:[code]<?php if (!defined('BASEPATH')) {
    exit('No direct script access allowed');
}
return array(
    'name' => 'LimeSurvey',
    'components' => array(
        'db' => array(
          'connectionString' => 'sqlsrv:Server=${DB_HOST},${DB_PORT};Database=${DB_NAME};TrustServerCertificate=True',
          'emulatePrepare' => true,
          'username' => '${DB_USER}',
          'password' => '${DB_PASSWORD}',
          'charset' => 'utf8',
          'tablePrefix' => '',
          'initSQLs' => array('SET DATEFORMAT ymd;', 'SET QUOTED_IDENTIFIER ON;')),
          'cache' => array(
            'class' => 'CMemCache',
            'useMemcached' => true,
            'servers' => array(array(
                'host' => 'limesurvey-memcached',
                'port' => 11211,
                'weight' => 1)),
          ),
          'log' => array(
            'routes' => array(
              'stderr' => array(
                'class' => 'application.extensions.StderrLogRoute',
                'levels' => 'trace, debug, info, warning, error',
              ),
            ),
          ),
        'urlManager' => array(
            'urlFormat' => 'path',
            'rules' => require('routes.php'),
            'showScriptName' => false,
        ),
    ),
    'config' => array(
        'baseUrl' => '/limesurvey',
        'debug' => 0,
        'debugsql' => 0,
        'force_ssl' => true,
        'language' => 'en',
        'sitename' => 'xxx',
        'updatable' => false,
    )
);
/* End of file config.php */
/* Location: ./application/config/config.php */
[/code]
Code:
nginx.conf:[code]location / {
        # Redirect everything that is not a real file to index.php
        try_files $uri $uri/ /index.php$is_args$args;
    }
 
    # Redirect server error pages to the static page /50x.html
    error_page 500 502 503 504 /50x.html;
    location = /50x.html {
        root /usr/share/nginx/html/;
    }
 
    location ~ ^/(admin|dashboard) {
        allow 1.2.3.0/24;
        deny all; 
 
        try_files $uri $uri/ /index.php$is_args$args;
    }
 
    location ~ \.php$ {
        try_files $fastcgi_script_name =404;
        root /var/www/html/limesurvey;
 
        fastcgi_pass    limesurvey-php:9000;
        fastcgi_index   /limesurvey/index.php;
        fastcgi_param   SCRIPT_FILENAME $document_root$fastcgi_script_name;
        fastcgi_param   QUERY_STRING  $query_string;
        include         /etc/nginx/fastcgi_params;
 
        fastcgi_read_timeout 60s;
        fastcgi_send_timeout 60s;
 
        fastcgi_buffer_size 32k;
        fastcgi_buffers 16 16k;
        fastcgi_busy_buffers_size 64k;
    }
[/code]

Please Log in to join the conversation.

Moderators: holchtpartner

Lime-years ahead

Online-surveys for every purse and purpose