Update guide

Prerequisites

Artifacts

  • logbee.Backend-{version}-linux-x64.zip

  • logbee.Frontend-{version}-linux-x64.zip

Artifacts can be downloaded from https://github.com/catalingavan/logbee-app.

Update the applications

Repeat the steps below for both of the App Services. Start with logbee.Backend followed by logbee.Frontend.

1. Download the existing configuration file

Navigate on the App Service overview page. On the left menu under “Development Tools”, click on the “Advanced Tools”, then click on the “Go” link. This will open the Azure Kudu service.

Once on the Kudu service, navigate to the application files by clicking on “Site wwwroot” link.

The configuration file is located under Configuration/logbee.json. Copy this file locally.

Kudu Service
Configuration file

2. Update the configuration file

Apply the configuration changes (if any) by updating logbee.json file.

The configuration changes will be listed in the change log.

3. Prepare the artifacts

Extract the LogBee server artifact archive in a folder. Then, extract both of the resulting archives in two separate folders: logbee.Backend and logbee.Frontend.

Replace the logbee.Backend\Configuration\logbee.json with the existing configuration file.

Create a zip archive with the contents of the logbee.Backend folder.

4. Upload the new code

Make sure the App Service is stopped before uploading the new code.

Navigate to logbee.Backend App Service. On top right, click on “Download publish profile” button. Open the downloaded file and copy the userName and the userPWD.

logbee.Backend artifact
To deploy the application, send a POST request to https://<app_name>.scm.azurewebsites.net/api/zipdeploy.
The POST request must contain the .zip file in the message body.
Set the Basic Authentication header with the Username and Password values copied from the PublishProfile.
curl -X POST -u $logbee-backend:{password} --data-binary @"<zip_file_path>" https://logbee-backend.scm.azurewebsites.net/api/zipdeploy

If the update was successful, you will receive a 200 OK response status code.

The new code can also be deployed with Postman.

Postman Authorization
Uploading logbee.Backend code

5. Run the logbee.Backend App Service

After logbee.Backend App Service has been updated, start the App Service then browse to the application URL.

If everything went successful, you will see the logbee.Backend home page.

Note

The initial startup is time consuming and can take up to a few minutes.
logbee.Backend home page

6. Repeat the steps above for logbee.Frontend

Repeat the steps above for the logbee.Frontend App Service, starting with step 1.


For technical support, questions or any feedback, please feel free to send us a message and we will get back to you.