PDA

View Full Version : Clarification on the deployment in a network environment



phabio
2016-04-22, 02:45
Situation:
a server (file server: drive mapped to Z:)
some client (win)

I made an app that accomplices to run on clients.

I did deploy the application on the server:
Z:\Lianja\cloudserver\tenants\public\
copying application and data

I installed the runtime on the client.

Then, launch:
C:\lianja\bin>lianjaruntime -a z:\Lianja\cloudserver\tenants\public\apps\martinel li_articoli\martinelli_articoli.lianja

but it opens up empty ..

But maybe I'm wrong reasoning ..
Perhaps I should have on client runtime and the app.
But how do I specify that the folder with the data is:
Z:\Lianja\cloudserver\tenants\public\data\COGEMA ?

Can I set from init.prg like:
set default to Z:\Lianja\cloudserver\tenants\public\
or by manually open the database
open database Z:\Lianja\cloudserver\tenants\public\data\cogema ?

thanks
Fabio

josipradnik
2016-04-22, 03:16
Hi Fabio,

Before you get answer from someone with exact same experience,
did you look at switch --runtimedatadir

Specify the shared LAN directory where databases reside. You can alternatively set the environment variable LIANJA_RUNTIMEDATADIR. Note that when a "runtimedatadir" is specified then --networkshare is also implied and turned on
http://www.lianja.com/doc/index.php/Command_Line_Switches

Josip

phabio
2016-04-22, 03:32
Thanks Josip
I've try this:
lianjaruntime -a --runtimedatadir Z:\Lianja\cloudserver\tenants\public\data\cogema --networkshare z:\Lianja\cloudserver\tenants\public\apps\martinel li_articoli\martinelli_articoli.lianja

but not work, give a lot of error on the database

yvonne.milne
2016-04-22, 03:42
Hi Fabio,


C:\lianja\bin\lianjaruntime.exe --runtimedir Z: -a martinelli_articoli

where Z: is mapped to the parent drive or directory of the lianja directory on the server.

or


C:\lianja\bin\lianjaruntime.exe --tenancy Z: -a martinelli_articoli

where Z: is mapped to the \lianja\cloudserver\tenants\public directory on the server.

Note: --runtimedir may be deprecated in favour of --tenancy from Lianja v2.1.

Regards,

Yvonne

phabio
2016-04-22, 04:03
Yes Yvonne, Work!
Grat Yvonne!

In this way, app and data are stored on the server.

But when I run the app, is executed locally, right?

On my DB, I've a virtual table that, by ODBC, reads data from another DB.
In this case the ODBC must be configured on each client, right?

Thanks
Fabio

yvonne.milne
2016-04-22, 04:33
Hi Fabio,

Correct.

Regards,

Yvonne