Results 1 to 6 of 6

Thread: Clarification on the deployment in a network environment

  1. #1
    Senior Member
    Join Date
    Feb 2012
    Location
    Rome - Italy
    Posts
    1,893

    Clarification on the deployment in a network environment

    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

  2. #2
    Lianja MVP
    Join Date
    Dec 2012
    Location
    Croatia, Zagreb
    Posts
    1,129
    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/..._Line_Switches

    Josip
    Last edited by josipradnik; 2016-04-22 at 03:30.

  3. #3
    Senior Member
    Join Date
    Feb 2012
    Location
    Rome - Italy
    Posts
    1,893
    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

  4. #4
    Lianja Team yvonne.milne's Avatar
    Join Date
    Feb 2012
    Location
    Berkshire, UK
    Posts
    1,712
    Hi Fabio,

    Code:
    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

    Code:
    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

  5. #5
    Senior Member
    Join Date
    Feb 2012
    Location
    Rome - Italy
    Posts
    1,893
    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

  6. #6
    Lianja Team yvonne.milne's Avatar
    Join Date
    Feb 2012
    Location
    Berkshire, UK
    Posts
    1,712
    Hi Fabio,

    Correct.

    Regards,

    Yvonne

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Journey into the Cloud
Join us