#1 Re: mORMot 1 » fpc/lazarus and TDocVariant exception » 2015-09-04 05:24:59

Hello, sorry for the delay.

I think it's the right version, I installed it 2 monhs ago this way: http://www.getlazarus.org/setup/#linux .
Here are the details extracted from Lazarus EDI:

FPC executable:
CompilerDate=30/06/2015 21:51:44
RealCompiler=~/Development/FreePascal/fpc/bin/ppc386
RealCompilerDate=30/06/2015 21:54:09
RealTargetOS=linux
RealTargetCPU=i386
Version=3.1.1

#2 mORMot 1 » Nginx and mormot Rest Server » 2015-08-25 21:00:02

sushi
Replies: 4

Hi,

I want to host 2 services, a mORMOT server and a blog in Java on my rapsberry pi 2 server. (Yes, the REST Server works! Awesome!)
To do this, i use nginx to redirect request:
   http://localhost/  => redirect to localhost:9000 (java app)
   http://localhost/app => redirect to localhost:8080 mormot REST Server

So i set up nginx to redirect request with proxy_pass (see config below). The redirection works when i access with my browser to http://localhost:8080/root/index, i see my page. But when I access to http://localhost/root/index, it takes 5 second to show the page. It seems, that it's Nginx which take time to redirect the url. Here the nginx config I use.
Does someone know how to redirect mormot url with nginx?

Thanks.

worker_processes  4;

events {
  multi_accept                    on;
  worker_connections              5120;
  use                             epoll;
}

http {
  charset                         utf-8;

  server {
    listen       80;
    server_name localhost;

    location / {
       proxy_pass http://127.0.0.1:8080;
       proxy_buffering off;
    }
  }
}

#3 mORMot 1 » fpc/lazarus and TDocVariant exception » 2015-08-18 19:34:25

sushi
Replies: 10

Hello,

I'm trying to use synMustache to generate web views. I started with the code in the doc :

  mustache := TSynMustache.Parse('Hello {{name}}'#13#10'You have just won {{value}} dollars!');
  TDocVariant.New(doc);
  doc.name := 'Chris';
  doc.value := 10000;
  html := mustache.Render(doc); 

It compiles and it works on Windows. On Linux (Ubuntu), it compiles but the instruction
  doc.name := 'Chris';
raise the exception EVariantBadVarTypeError.

What goes wrong? Thank you.

Board footer

Powered by FluxBB