Difference between revisions of "Deploying to LAN - Desktop and Web Clients"
Yvonne.milne (Talk | contribs) |
Yvonne.milne (Talk | contribs) |
||
Line 5: | Line 5: | ||
==Server Setup== | ==Server Setup== | ||
− | [[{{ns:file}}:lan_server.png|450px|thumb|left|link={{filepath:lan_server.png}}|Server Setup]] | + | [[{{ns:file}}:lan_server.png|450px|thumb|left|link={{filepath:lan_server.png}}|Server Setup: Drive]] |
Line 16: | Line 16: | ||
* Create a share point on your server to the drive on which you installed Lianja. | * Create a share point on your server to the drive on which you installed Lianja. | ||
− | - Here E: is shared as L. | + | <span style="color: blue;">- Here E: is shared as L.</span> |
+ | |||
+ | <br clear=all> | ||
+ | |||
+ | [[{{ns:file}}:lan_server_dir.png|450px|thumb|left|link={{filepath:lan_server_dir.png}}|Server Setup: Directory]] | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | * Or create a share point on your server to a directory in the \lianja\cloudserver\tenants\public\ path. | ||
+ | |||
+ | <span style="color: green;">- Here E:\lianja\cloudserver is shared as cloud.</span> | ||
<br clear=all> | <br clear=all> | ||
Line 22: | Line 33: | ||
==Deploying to the Server== | ==Deploying to the Server== | ||
− | [[{{ns:file}}:lan_dev.png|450px|thumb|left|link={{filepath:lan_dev.png}}|Deploying from App Builder]] | + | [[{{ns:file}}:lan_dev.png|450px|thumb|left|link={{filepath:lan_dev.png}}|Deploying from App Builder: Drive]] |
Line 31: | Line 42: | ||
- Here it is ''MyLAN_settings'' | - Here it is ''MyLAN_settings'' | ||
− | * Change the '''Directory''' to point to \lianja\cloudserver\tenants\public\ on the Server shared drive. | + | * Change the '''Directory''' to point to \lianja\cloudserver\tenants\public\ on the Server. |
+ | |||
+ | <span style="color: blue;">- Here S: has been mapped to L on the Server, so '''Directory''' is ''S:\lianja\cloudserver\tenants\public\''</span> | ||
+ | |||
+ | <br clear=all> | ||
+ | |||
+ | [[{{ns:file}}:lan_dev_dir.png|450px|thumb|left|link={{filepath:lan_dev_dir.png}}|Deploying from App Builder: Directory]] | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | * Or, if you shared a directory rather than the drive on the Server, create a new deployment settings profile as follows. | ||
+ | |||
+ | - Here it is ''MyLAN_settings2'' | ||
+ | |||
+ | * Change the '''Directory''' to point to \lianja\cloudserver\tenants\public\ on the Server. | ||
− | - Here | + | <span style="color: green;">- Here X: has been mapped to cloud on the Server, so '''Directory''' is ''X:\tenants\public\''</span> |
<br clear=all> | <br clear=all> |
Revision as of 07:48, 26 March 2015
Under Construction
A Guide to Sharing Lianja Apps and Data between Desktop clients and Web/Mobile clients on a LAN.
Server Setup
- Install the Lianja Cloud Server on the chosen server on your LAN.
- Here it is installed on the E: drive of an XP Virtual Machine.
- Create a share point on your server to the drive on which you installed Lianja.
- Here E: is shared as L.
- Or create a share point on your server to a directory in the \lianja\cloudserver\tenants\public\ path.
- Here E:\lianja\cloudserver is shared as cloud.
Deploying to the Server
- In the Deploy workspace create a new deployment settings profile by clicking New and specifying a name.
- Here it is MyLAN_settings
- Change the Directory to point to \lianja\cloudserver\tenants\public\ on the Server.
- Here S: has been mapped to L on the Server, so Directory is S:\lianja\cloudserver\tenants\public\
- Or, if you shared a directory rather than the drive on the Server, create a new deployment settings profile as follows.
- Here it is MyLAN_settings2
- Change the Directory to point to \lianja\cloudserver\tenants\public\ on the Server.
- Here X: has been mapped to cloud on the Server, so Directory is X:\tenants\public\
- Check the Server to see your deployed files.
- Remember to deploy your database and any additional Library script files as well as your Apps.
Files | Deployed Location |
---|---|
Desktop Apps | \lianja\cloudserver\tenants\public\apps |
Desktop Library | \lianja\cloudserver\tenants\public\library |
Desktop Data | \lianja\cloudserver\tenants\public\data |
Web/Mobile Apps | \lianja\cloudserver\tenants\public\wwwroot\apps |
Web/Mobile Library | \lianja\cloudserver\tenants\public\wwwroot\library |
Web/Mobile Data | \lianja\cloudserver\tenants\public\data |
Notice that data is shared between Desktop and Web/Mobile clients.
- This step is only required for versions 1.4.2 and earlier. From 1.4.2 onwards it is handled as part of Deploy above when the App has been deployed in the Web App View.
- For Web Clients, the index.html file must also be copied to the lianja\cloudserver\tenants\public\wwwroot\apps\<appname>\ directory on the server.
- The index.html file is copied into your local \lianja\cloudserver\tenants\public\wwwroot\apps\<appname>\ directory when you Deploy from the Web App View.
Desktop Client
To run your deployed Apps from the Desktop Client:
- Install the App Center on the Client.
- The Shared files directory installation drive should be the same drive as the Installation Directory.
- Here the App Center has been installed on C:.
- If you specify a different drive, the installer will install the runtime directory structure for the data, Apps etc. on that drive.
- Here the App Center program files have been installed on C: and the runtime directories on E:.
- Map a drive on the client to the Lianja drive on the Server.
- Here Z: has been mapped to L (the Lianja drive) on the Server.
- For versions prior to 1.4.1, use the same letter as the server drive, e.g. map L: to L on the Server.
- Then, specify the --runtimedir <drive> switch on the App Center shortcut command (or set up the environment variable LIANJA_RUNTIMEDIR - see next screenshot below).
- Here the command becomes: C:\lianja\bin\lianjaruntime.exe --runtimedir Z:.
- For versions prior to 1.4.1, you should also specify the --networkshare switch. This is turned on automatically in v1.4.1 and later.
- As an alternative to using the --runtimedir switch above, the environment variable LIANJA_RUNTIMEDIR can be set to the mapped drive.
- Here LIANJA_RUNTIMEDIR has been set to Z: and no command switches are required.
Web Client
- To run Web or Mobile Apps, just point your browser at the IP address of the server.
- If you are using the IIS extension or have port 80 enabled:
http://192.168.X.X/login.rsp
- If you are running without port 80 enabled.
http://192.168.X.X:8001
See Also
Command Line Switches, Deploying to Local Directory, Lianja Server Manager on Windows, License Management on Windows