Results 1 to 9 of 9

Thread: Server folder shares

  1. #1

    Server folder shares

    This wiki post describes the Lianja local directories:

    http://www.lianja.com/doc/index.php/...ocal_Directory

    However, after installing the Cloud Server on a Windows server, what share point needs to be created for apps to be accessed in the App Center in a LAN configuration?

    What is the URL for the Cloud Server for web/mobile clients to access apps?

    Maybe there needs to be some example cases added to this wiki page:

    http://www.lianja.com/doc/index.php/App_Settings

    with regard to what needs to be in the Deployment Server setting and/or the Deployment directory setting as it pertains to a shared folder on the server, i.e. \\server\lianja where the share points to C:\Lianja\cloudserver\tenants\public\ on the server.

  2. #2
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,162
    Blog Entries
    22
    We will further expand on that doc.

    i would not recommend using \\server but better to map a drive such as z:

    Please see this forum post also.
    http://www.lianja.com/community/show...--networkshare

    So basically, tables are contained within a database container. These tables have a path. If your database is on a network share you must tell Lianja that and where it is.
    Last edited by barrymavin; 2015-02-10 at 19:00.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  3. #3
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,162
    Blog Entries
    22
    Hi Chris,

    To simplify sharing data across a LAN (desktop clients sharing data with web/mobile clients) in v1.3.1 (available early next week) I have added this functionality:

    1. If the LIANJA_RUNTIMEDATADIR environment variable is set then this is used as the base directory for where the data resides.

    e.g. LIANJA_RUNTIMEDATADIR=z:\lianja\cloudserver\tenant s\public\data

    2. You can optional specify --runtimedatadir z:\lianja\cloudserver\tenants\public\data on the desktop shortcut for the App Center.

    Now for Web/Mobile Apps...

    When you point a URL at your server the data is accessed on the server so these directories are specified in the server manager.

    The wwwroot directory for the web/mobile apps is specified in the server manager and by default is as shown below.

    Name:  Screen Shot 2015-02-11 at 10.28.25 AM.jpg
Views: 143
Size:  82.7 KB

    Name:  Screen Shot 2015-02-11 at 10.16.22 AM.jpg
Views: 97
Size:  64.3 KB



    When tenancies are fully implemented the "public" tenancy is replaced by the tenancy of the user who logs in. So for example if a user called "barry" has a "tenancy/domain" called "my company.com" then "public" will be replaced with "mycompany_com" automatically in the paths.

    I hope that this explains things better.
    Last edited by barrymavin; 2015-02-10 at 21:47.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  4. #4
    Barry,

    I see my question wasn't quite to the point, but thanks for the very useful responses.

    When mounting the share on the Lianja Cloud Server from a client computer running the App Builder or App Center, that should be a drive letter and not a UNC path. If the drive letter is Z: to the shared folder on the Cloud Server, what should the shared folder be on the Cloud Server? C:? C:\Lianja\? C:\Lianja\cloudserver\tenants\public\?

    When installing Lianja on the server should it be installed in the folder that will be shared, i.e. C:\Lianja-sharepoint\Lianja\? Then Z: could be mapped to \\server\Lianja-sharepoint\ such that Z:\Lianja\ would be accessible for deploying apps from the App Builder and running apps from the App Center.

  5. #5
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,162
    Blog Entries
    22
    Chris,

    It would be better to install the cloud server on a drive e.g. c: d: e: or whatever then the x:\lianja directory tree will all be in place.

    You can then connect a drive from the clients so that LIANJA_RUNTIMEDATADIR or --runtimedatadir points to the full path of where the data resides.

    e.g.

    LIANJA_RUNTIMEDATADIR=y:\

    where y: is mapped to c:\lianja\cloudserver\tenants\public \data\
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  6. #6
    Barry,

    Cloud Server is installed to C:\Lianja and the directory tree is in place.

    I decided to map L: to \\server\AppTenants\ where C:\Lianja\cloudserver\tenants\ is the shared as AppTenants on the server. So when L: drive opened, the folder Public is visible.

    In the App Builder, I opened the Lianjademo app, clicked Settings and in the Deployment section, set Publisher to Copy and Directory to L:\Public\ then saved and closed the app. In Deploy, I checked the lianjademo app and clicked Commit Changes. Deployment completed successfully.

    Is my drive mapping okay? Because I didn't have success running the demo app from the web or the desktop App Center.

    Pointed the browser at http://server:8001 and was presented with the Lianja App Center login. Used the default admin login and was presented the App Center with a Lianja Demo tile. Clicking the tile produces a 404 error:

    "The requested URL /apps/lianjademo/index.html was not found on this server."

    Next, I installed the App Center on a client computer and during the installation, I pointed it at L:\Public\ folder. When running the App Center, only a blank Lianja App Center window is displayed. No errors, no login, no tiles. I also can't find where the server folder setting is stored. Here is the contents of the log.txt file:

    lianja session started at Thu Feb 12 14:33:00 2015
    debugPath=C:\Lianja\\debug\debug_client.txt
    LIANJA_LICENCESDIR=
    ApplicationsLocation=C:\Users\WSAdmin\AppData\Roam ing\Microsoft\Windows\Start Menu\Programs
    applicationDirPath=C:/lianja/bin
    applicationFilePath=C:/lianja/bin/lianjaruntime.exe
    DocumentsLocation=F:\My Documents
    DataLocation=C:\Users\WSAdmin\AppData\Local
    supportsSsl=1
    activeGeometry=0,0,1440,860
    screenGeometry=0,0,1440,900
    HomeDirectory=C:/Users/WSAdmin
    LIANJA_LOCALE=
    locale=en_US
    Webkit cache location is in 'C:\lianja\bin\cache\'
    Webkit JavaScript is enabled
    Webkit JavascriptCanAccessClipboard is enabled
    Webkit JavascriptCanOpenWindows is enabled
    Webkit Plugins are enabled
    Webkit LocalStorage is enabled
    Webkit LocalContentCanAccessRemoteUrls is enabled
    Webkit DnsPrefetchEnabled is enabled
    Webkit PrintElementBackgrounds is enabled
    Maximum command length is 16 KB
    Maximum string length is 64 KB
    rootDirectory=C:\Lianja\cloudserver\tenants\public \
    rootDirectory=C:\Lianja\cloudserver\tenants\public \
    appsDirectory=C:\Lianja\cloudserver\tenants\public \apps\
    dataDirectory=C:\Lianja\cloudserver\tenants\public \data\
    libDirectory=C:\Lianja\cloudserver\tenants\public\ library\
    cloudDirectory=C:\Lianja\cloudserver\
    There is 30 percent of memory in use.
    There are 3930232 total KB of physical memory.
    There are 2720860 free KB of physical memory.
    There are 7858604 total KB of paging file.
    There are 6484556 free KB of paging file.
    There are 4194176 total KB of virtual memory.
    There are 3934464 free KB of virtual memory.

  7. #7
    Okay, I clearly don't know what the Shared files directory is used for when installing the App Center:

    http://www.lianja.com/doc/index.php/...ter_on_Windows

    I assumed this is the directory that was shared on the Cloud Server. In my case, L:\ But the App Center installation puts a \Lianja\ folder in L:\ right along side the \Public\ folder.

    Inside the L:\Lianja\ folder, the App Center installer creates another \cloudserver\ with another \tenants\ and \public\ ... and so on.

    Yet when I edit the shortcut to add --runtimdir L: the App Center now displays the login, but after logging in, the Lianja Demo that was deployed to the Cloud Server is not avialable.

    So how does the App Center get pointed at the Cloud Server's shared folder?
    Last edited by chrisg@pso.siu.edu; 2015-02-12 at 15:31.

  8. #8
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,162
    Blog Entries
    22
    Chris,

    As I posted earlier I've simplified this in the v1.3.1 release which should be available next week.

    The App Center expects the proper \lianja\... sub directory structure so it should be a drive e.g. L:\

    The LIANJA_RUNTIMEDATADIR environment variable or --runtimedatadir command line switch in v1.3.1 will simplify this.

    I'll see if we can get you a re-release early next week so you can verify that it is working as expected.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  9. #9
    Barry,

    I'll revisit this with v1.3.1. I appreciate any simplification for sharing data across a LAN (desktop clients sharing data with web/mobile clients). Thanks.

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