PDA

View Full Version : HOWTO: Lianja 6 One Click Deployment to Lianja Cloud Server



barrymavin
2021-03-04, 00:50
Lianja 6 has simplified One Click Deployment to a Cloud Server (local or remote).

Let's look at how this can be done.

Step 1

On windows.

In the server manager you need to specify an API Key. This will be used when deploying in the "Deploy" workspace. This can be anything you want but my recommendation is to use the guid() function in the Lianja Console to generate a unique key.

In Lianja Cloud this API Key is provided for you and is generated dynamically and SMS/Emailed to you before you can deploy.

2465

On Linux.

Specify the DB_APIKEY environment variable in /etc/lianja.d/lianja.conf

Step 2

In the App Builder "Deploy" workspace select a deployment target (or create a new one). Here i have created one called "Cloud" and just selected it. If the username/password is not specified you will be prompted for them.

Note that the "Publisher" should be selected as "http" or "https" in the case of a server with an SSL certificate installed.

2466

Step 3

Select one or more packages. Notice that on the right hand side "Package Details / Files to Deploy" panel you can add files manually that will be included in the package.

To do this click the "Edit" button in the "Deployment configuration" panel.

You can then type in files to be included in the package. These filenames can use the special prefixes such as app:/, lib:/, thirdpartylibs:/ etc

e.g

app:/example_webapp1
app:/example_webapp2

Click "Save" in the "Deployment configuration" panel.

Click "Build" in the "Package Details" panel if you have not already built the package.

Step 4

Click "Deploy" in the "Deployment configuration" panel.

The API Key you specified is checked on the server and if its valid and the username/password are correct your package(s) are uploaded.

If you have enabled "Package auto update" the package(s) will be auto installed or updated (if a new version) and the "update.prg" script in the package will be run to alter any database tables. You can use the "COMPARE DATABASE" command in the console to generate this file.

And thats it.