Results 1 to 1 of 1

Thread: HOWTO: Lianja 6 One Click Deployment to Lianja Cloud Server

  1. #1
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    6,220

    HOWTO: Lianja 6 One Click Deployment to Lianja Cloud Server

    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.

    Name:  Screen Shot 2021-03-04 at 12.58.09 PM.jpg
Views: 72
Size:  56.6 KB

    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.

    Name:  Screen Shot 2021-03-04 at 1.29.40 PM.jpg
Views: 74
Size:  88.5 KB

    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.
    Last edited by barrymavin; 2021-03-04 at 00:59.
    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

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