Difference between revisions of "Deploying to Local Directory"

From Lianjapedia
Jump to: navigation, search
Line 121: Line 121:
 
Using the Deploy Worksurface, you can compare the files in the Lianja App Builder directories with those in the Lianja App Center / Lianja Cloud/SQL Server directories and copy any missing or modified files.
 
Using the Deploy Worksurface, you can compare the files in the Lianja App Builder directories with those in the Lianja App Center / Lianja Cloud/SQL Server directories and copy any missing or modified files.
  
[[{{ns:file}}:preview.png|150px|thumb|left|Preview Changes]]
+
[[{{ns:file}}:preview.png|150px|thumb|left|link={{filepath:preview.png}}|Preview Changes]]
  
  
Line 131: Line 131:
  
  
[[{{ns:file}}:confirm.png|150px|thumb|left|Commit Changes]]
+
[[{{ns:file}}:confirm.png|150px|thumb|left|link={{filepath:cofirm.png}}|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|link={{filepath:finished.png}}|Finished]]
  
  
Line 142: Line 142:
 
On successful completion, your deployed data, Apps and Library scripts will be available to the Lianja App Center and Lianja Cloud and SQL Servers.
 
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>
 
<br clear=all>
 +
 
==Lianja SQL Server: ODBC DSN==  
 
==Lianja SQL Server: ODBC DSN==  
[[{{ns:file}}:recipes_DSN.png|150px|thumb|left|Recipes DSN]]
+
[[{{ns:file}}:recipes_DSN.png|150px|thumb|left|link={{filepath:recipes_DSN.png}}|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 on Windows]] and [[Lianja ODBC Driver on Windows]] or [[Lianja Server Manager on Linux]] and [[Lianja ODBC Driver on Linux]].
 
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 on Windows]] and [[Lianja ODBC Driver on Windows]] or [[Lianja Server Manager on Linux]] and [[Lianja ODBC Driver on Linux]].
 
<br clear=all>
 
<br clear=all>
[[{{ns:file}}:Access_DSN.png|150px|thumb|left|Access DSN]]
+
[[{{ns:file}}:Access_DSN.png|150px|thumb|left|link={{filepath:access_DSN.png}}|Access DSN]]
  
  

Revision as of 04:06, 5 June 2017

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

Note: the Save button in the Web App View has now been renamed Deploy.



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


Deploying Lianja Web/Mobile Client Apps

For Web, Tablet and Phone Apps, open the App in the appropriate App View in the Lianja App Builder and click the Deploy button to generate the HTML5 index file for each of your target devices.

Web Apps


With the App open in the App Builder, click on Web App View.


File:Deploy webappview2.png
Web App View: Deploy


Then click Deploy to create index.html.


Tablet Apps


With the App open in the App Builder, click on Tablet App View.


File:Deploy tabletappview2.png
Tablet App View: Deploy


Then click Deploy to create tablet_index.html.


Phone Apps


With the App open in the App Builder, click on Phone App View.


File:Deploy phoneappview2.png
Phone App View: Deploy


Then click Deploy to create phone_index.html.


See the Getting Started 1 - Lianja Cloud Server and Lianja Web Client video (link above) for more on the 'Web App View'.

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 Cloud/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.


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 on Windows and Lianja ODBC Driver on Windows or Lianja Server Manager on Linux and Lianja ODBC Driver on Linux.

Access DSN


Then access the DSN.