Difference between revisions of "Deploying to Local Directory"

From Lianjapedia
Jump to: navigation, search
Line 1: Line 1:
This page explains how to Deploy your Lianja App, database and Library files to make them available to the Lianja App Center or Lianja SQL Server on the same machine.
+
This page explains how to Deploy your Lianja App, database and Library files to make them available to the Lianja App Center, Lianja Cloud Server or Lianja SQL Server on the same machine.
 +
 
 +
==See Also==
 +
* '''Watch the video:''' Getting Started 1 - Lianja Cloud Server and Lianja Web Client
 +
 
 +
 
 +
{{#widget:Vimeo|id=90317631 |width=450 |height=253}}
 +
 
  
 
==Default Directories==
 
==Default Directories==
Line 9: Line 16:
 
!width="20%"|Files||width="40%"|Windows||width="40%"|Linux
 
!width="20%"|Files||width="40%"|Windows||width="40%"|Linux
 
|-
 
|-
|valign="top"|App||C:\Lianja\apps||/opt/lianja/apps
+
|valign="top"|App||C:\lianja\apps||/opt/lianja/apps
 
|-
 
|-
|valign="top"|Databases||C:\Lianja\data||/opt/lianja/data
+
|valign="top"|Databases||C:\lianja\data||/opt/lianja/data
 
|-
 
|-
|valign="top"|Library||C:\Lianja\library||/opt/lianja/library
+
|valign="top"|Library||C:\lianja\library||/opt/lianja/library
 
|-
 
|-
 
|}
 
|}
Line 22: Line 29:
 
!width="20%"|Files||width="40%"|Windows||width="40%"|Linux
 
!width="20%"|Files||width="40%"|Windows||width="40%"|Linux
 
|-
 
|-
|valign="top"|App||C:\Lianja\cloudserver\tenants\public\apps||/opt/lianja/cloudserver/tenants/public/apps
+
|valign="top"|App||C:\lianja\cloudserver\tenants\public\apps||/opt/lianja/cloudserver/tenants/public/apps
 
|-
 
|-
|valign="top"|Databases||C:\Lianja\cloudserver\tenants\public\data||/opt/lianja/cloudserver/tenants/public/data
+
|valign="top"|Databases||C:\lianja\cloudserver\tenants\public\data||/opt/lianja/cloudserver/tenants/public/data
 
|-
 
|-
|valign="top"|Library||C:\Lianja\cloudserver\tenants\public\library||/opt/lianja/cloudserver/tenants/public/library
+
|valign="top"|Library||C:\lianja\cloudserver\tenants\public\library||/opt/lianja/cloudserver/tenants/public/library
 
|-
 
|-
 
|}
 
|}
  
 +
===Lianja Cloud Server===
 +
 +
{| class="wikitable" width="100%"
 +
!width="20%"|Files||width="40%"|Windows||width="40%"|Linux
 +
|-
 +
|valign="top"|App||C:\lianja\cloudserver\tenants\public\wwwroot\apps||/opt/lianja/cloudserver/tenants/public/wwwroot/apps
 +
|-
 +
|valign="top"|Databases||C:\lianja\cloudserver\tenants\public\data||/opt/lianja/cloudserver/tenants/public/data
 +
|-
 +
|valign="top"|Library||C:\lianja\cloudserver\tenants\public\wwwroot\library||/opt/lianja/cloudserver/tenants/public/wwwroot/library
 +
|-
 +
|}
 
===Lianja SQL Server===
 
===Lianja SQL Server===
  
Line 35: Line 54:
 
!width="20%"|Files||width="40%"|Windows||width="40%"|Linux
 
!width="20%"|Files||width="40%"|Windows||width="40%"|Linux
 
|-
 
|-
|valign="top"|Databases||C:\Lianja\cloudserver\tenants\public\data||/opt/lianja/cloudserver/tenants/public/data
+
|valign="top"|Databases||C:\lianja\cloudserver\tenants\public\data||/opt/lianja/cloudserver/tenants/public/data
 
|-
 
|-
 
|}
 
|}
Line 43: Line 62:
  
 
[[{{ns:file}}:preview.png|150px|thumb|left|Preview Changes]]
 
[[{{ns:file}}:preview.png|150px|thumb|left|Preview Changes]]
Simply click the checkbox next to the file group or individual filename in the '''Deployment files''' explorer for the files you want to deploy.  You can then preview the changes that will be made by clicking the '''Preview changes''' button in the Headerbar.  These are displayed in the '''Deployment Files Preview''' window.  Here I'm deploying a new database created in the Lianja App Builder.  After deployment it will be available to Lianja SQL Server and the Lianja App Center.  You can deploy databases, Apps and Library files in a single operation - just select the files in the explorer.  Note that if you are deploying an App, it needs to be ''Published'' or it will not be visible in the Lianja App Center.  Publish the App by checking the [http://www.lianja.com/images/stories/tutorials/tiles/app_settings.png Published attribute in Settings].
+
 
 +
 
 +
Simply click the checkbox next to the file group or individual filename in the '''Deployment files''' explorer for the files you want to deploy.  You can then preview the changes that will be made by clicking the '''Preview changes''' button in the Headerbar.  These are displayed in the '''Deployment Files Preview''' window.  Here I'm deploying a new database created in the Lianja App Builder.  After deployment it will be available to Lianja Cloud and SQL Servers and the Lianja App Center.  You can deploy databases, Apps and Library files in a single operation - just select the files in the explorer.   
 
<br clear=all>
 
<br clear=all>
 +
Note that if you are deploying an App, it needs to be ''Published'' or it will not be visible in the Lianja App Center.  Publish the App by checking the [http://www.lianja.com/images/stories/tutorials/tiles/app_settings.png Published attribute in Settings].
 +
 +
For Web Apps, you should also '''Save''' the App in the 'Web App View' (and/or 'Tablet App View', 'Phone App View' depending on your target device(s)) to generate the HTML5 index file.  See the Getting Started 1 - Lianja Cloud Server and Lianja Web Client video (link above) for more on the 'Web App View'.
 
[[{{ns:file}}:confirm.png|150px|thumb|left|Commit Changes]]
 
[[{{ns:file}}:confirm.png|150px|thumb|left|Commit Changes]]
 +
 +
 
Once you are happy with the selection of files to deploy, click the '''Commit changes''' button in the Headerbar and confirm the operation when prompted.
 
Once you are happy with the selection of files to deploy, click the '''Commit changes''' button in the Headerbar and confirm the operation when prompted.
 
<br clear=all>
 
<br clear=all>
 
[[{{ns:file}}:finished.png|150px|thumb|left|Finished]]
 
[[{{ns:file}}:finished.png|150px|thumb|left|Finished]]
 +
 +
 
The copy operation is carried out and the '''Deployment Transfer Log''' window logs the changes.
 
The copy operation is carried out and the '''Deployment Transfer Log''' window logs the changes.
<br clear=all>  
+
On successful completion, your deployed data, Apps and Library scripts will be available to the Lianja App Center and Lianja Cloud and SQL Servers.
 +
<br clear=all>
 +
==Lianja SQL Server: ODBC DSN==
 
[[{{ns:file}}:recipes_DSN.png|150px|thumb|left|Recipes DSN]]
 
[[{{ns:file}}:recipes_DSN.png|150px|thumb|left|Recipes DSN]]
Now that deployment has completed successfully the ''recipes'' database is available to Lianja SQL Server (and the Lianja App Center) on my machine and I can create a DSN.  For more information on creating DSNs, please see the [[Lianja ODBC Manager]].
+
 
 +
 
 +
Now that deployment has completed successfully and the ''recipes'' database is available to Lianja SQL Server on my machine, I can create a DSN.  For more information on creating DSNs, please see the [[Lianja ODBC Manager]].
 
<br clear=all>
 
<br clear=all>
 
[[{{ns:file}}:Access_DSN.png|150px|thumb|left|Access DSN]]
 
[[{{ns:file}}:Access_DSN.png|150px|thumb|left|Access DSN]]
 +
 +
 
Then access the DSN.  
 
Then access the DSN.  
 
[[Category:Deployment]]
 
[[Category:Deployment]]
 
[[Category:SQL Server]]
 
[[Category:SQL Server]]

Revision as of 05:29, 18 July 2014

This page explains how to Deploy your Lianja App, database and Library files to make them available to the Lianja App Center, Lianja Cloud Server or Lianja SQL Server on the same machine.

See Also

  • Watch the video: Getting Started 1 - Lianja Cloud Server and Lianja Web Client



Default Directories

Using the standard installation settings, these are the default directories:

Lianja App Builder

Files Windows Linux
App C:\lianja\apps /opt/lianja/apps
Databases C:\lianja\data /opt/lianja/data
Library C:\lianja\library /opt/lianja/library

Lianja App Center

Files Windows Linux
App C:\lianja\cloudserver\tenants\public\apps /opt/lianja/cloudserver/tenants/public/apps
Databases C:\lianja\cloudserver\tenants\public\data /opt/lianja/cloudserver/tenants/public/data
Library C:\lianja\cloudserver\tenants\public\library /opt/lianja/cloudserver/tenants/public/library

Lianja Cloud Server

Files Windows Linux
App C:\lianja\cloudserver\tenants\public\wwwroot\apps /opt/lianja/cloudserver/tenants/public/wwwroot/apps
Databases C:\lianja\cloudserver\tenants\public\data /opt/lianja/cloudserver/tenants/public/data
Library C:\lianja\cloudserver\tenants\public\wwwroot\library /opt/lianja/cloudserver/tenants/public/wwwroot/library

Lianja SQL Server

Files Windows Linux
Databases C:\lianja\cloudserver\tenants\public\data /opt/lianja/cloudserver/tenants/public/data

Deploy Worksurface

Using the Deploy Worksurface, you can compare the files in the Lianja App Builder directories with those in the Lianja App Center / Lianja SQL Server directories and copy any missing or modified files.

Preview Changes


Simply click the checkbox next to the file group or individual filename in the Deployment files explorer for the files you want to deploy. You can then preview the changes that will be made by clicking the Preview changes button in the Headerbar. These are displayed in the Deployment Files Preview window. Here I'm deploying a new database created in the Lianja App Builder. After deployment it will be available to Lianja Cloud and SQL Servers and the Lianja App Center. You can deploy databases, Apps and Library files in a single operation - just select the files in the explorer.
Note that if you are deploying an App, it needs to be Published or it will not be visible in the Lianja App Center. Publish the App by checking the Published attribute in Settings.

For Web Apps, you should also Save the App in the 'Web App View' (and/or 'Tablet App View', 'Phone App View' depending on your target device(s)) to generate the HTML5 index file. See the Getting Started 1 - Lianja Cloud Server and Lianja Web Client video (link above) for more on the 'Web App View'.

Commit Changes


Once you are happy with the selection of files to deploy, click the Commit changes button in the Headerbar and confirm the operation when prompted.

Finished


The copy operation is carried out and the Deployment Transfer Log window logs the changes. On successful completion, your deployed data, Apps and Library scripts will be available to the Lianja App Center and Lianja Cloud and SQL Servers.

Lianja SQL Server: ODBC DSN

Recipes DSN


Now that deployment has completed successfully and the recipes database is available to Lianja SQL Server on my machine, I can create a DSN. For more information on creating DSNs, please see the Lianja ODBC Manager.

Access DSN


Then access the DSN.