From Development to Production
Development and production are often two separate Qlik Sense Enterprise sites (each with its own central and rim nodes). Changes are made and tested in development and only then released to production. This page describes that release with Gitoqlok: the repository is the one source of every release, and the comments of the commits stay visible in the production app.
Gitoqlok runs in the browser, so nothing is installed on the Qlik nodes. The person who releases needs:
- access to the hubs of both environments;
- the same Git server profile in Gitoqlok (Git Servers);
- the rights in production that the chosen way of releasing needs (see Three ways to release).
How it works
| Environment | What happens there |
|---|---|
| Development | Developers change the app and commit: every commit carries a comment |
| Git server | Keeps the history. Optionally a production branch and a pull request act as the approval of a release |
| Production | Deploy from Git puts a chosen commit over the published app. The app keeps its ID, its stream and its link to the repository |
Three ways to release
Qlik Sense Enterprise protects published apps: with the default security rules nobody changes the sheets and master items of a published app in the hub. The way to release depends on how your production site deals with that.
| Way | The production app is | Needs | Data of the production app |
|---|---|---|---|
| 1. Replace the published app | replaced by an app built from the commit | default security rules; the right to publish and replace | reloaded after the release |
| 2. Update the published app in place | changed object by object | a security rule that allows updating published apps in the hub | kept |
| 3. Update a staging app, then publish it | replaced by a staging app from your Work area | default security rules; the right to publish and replace | taken from the staging app |
In all three the commit comments written in development are available in production.
Way 1: replace the published app
The whole release is one dialog on the production hub.
Commit in development
Open the app on the development server, click the Gitoqlok icon and Save changes. Describe the change in the commit message — this is the text production will show. A ticket number in the message (#104) links the change to your issue tracker.

Open Deploy from Git on the production hub
Go to the hub of the production server, click the Gitoqlok icon and choose Deploy from Git. Select the repository of the app, the branch and the commit to release — the latest one is selected, pick an older one to release a specific version.
Replace the published app
Tick Replace existing published application and select the production app. Tick Run data reload script to load the data right away: the deployed app is built from the repository, which holds no data.

Click Deploy. Gitoqlok builds a temporary app from the commit, replaces the content of the published app with it and removes the temporary app. The published app keeps its ID, so links, mashups and reload tasks keep working.
Check the release in production
Open the production app and click the Gitoqlok icon. The app is connected to the repository and to the commit it was deployed from, and the commit list shows every change with its comment, author and date.

Version
A published app stays connected to the repository after Replace existing published application starting with Gitoqlok 3.0.13. In earlier versions the replaced app lost the link: the history was available on the Git server only.
First release of an app
When the app does not exist in production yet:
- On the production hub run Deploy from Git without Replace existing published application and enter the New app name. The app appears in your Work area.
- Open it and use Publish App in the Gitoqlok header to publish it to the production stream (Publish, Move, Duplicate).
- For every later release use one of the three ways.
Way 2: update the published app in place
The production app is connected to the repository and receives a release with the Update button, like an app in development. Nothing is replaced: the app keeps its data, its ID and the objects users created in it.
The security rule
Update writes the load script, the sheets and the master items through the Qlik Engine as the user who clicks it. Out of the box Qlik refuses this for a published app — also for a RootAdmin, because the default RootAdmin rule applies in the QMC only. Add a rule in the QMC (Security rules → Create new) for the people who release:
| Field | Value |
|---|---|
| Resource filter | * |
| Actions | Read, Update, Delete (Create and Publish for new sheets) |
| Context | Both in hub and QMC — the hub is what matters |
| Conditions | who may release, for example ((user.roles="RootAdmin")) or the group of your release managers |
This is the rule the procedure below was tested with. The resource filter can be narrowed to apps and their objects (App_*, App.Object_*) and the condition to the production stream; check a narrower rule with Audit in the QMC and with a test release before you rely on it.
Connect the production app once
- On the production hub run Deploy from Git, tick Create a branch and name the branch, for example
production. The app is created in your Work area, connected to that branch. - Publish it to the production stream with Publish App. The published app stays connected to the branch.
Release
Bring the release into the production branch
On the Git server merge the main branch into production — with a pull request when the release has to be approved. The commits keep their comments.
Update the production app
Open the production app and click the Gitoqlok icon. The header says Repository has N new commits. Click Refresh if it does not, select the newest commit and click Update.
Gitoqlok reminds you that the app is published; click Update in that dialog. The load script and the existing sheets and master items are changed in place.
Publish the new sheets
A sheet or another object that is new in the release is created as a private object of the user who ran the update — Qlik does not let anybody add base sheets to a published app. Publish the new sheets (right-click → Publish) and approve them in the QMC (App objects → Approve) to make them base sheets.
Reload if the script changed
The data is not touched by an update. Run the reload task when the load script has changed.
Without the security rule the update stops with the list of the objects Qlik refused (Access denied).
Way 3: update a staging app, then publish it
Publishing in Qlik Sense Enterprise moves an app from the Work area into the stream: it is not possible to keep working on the same app after it is published. A common practice is therefore a second, unpublished copy of the app in production — a staging app — that receives the release first, is checked with production data and then replaces the published app.
- Once: on the production hub run Deploy from Git with Create a branch (for example
production). The app in your Work area is the staging app; do not publish it. Publish the first version by duplicating it in Qlik and publishing the duplicate, or with First release of an app. - Every release: merge the main branch into
productionon the Git server, open the staging app, select the newest commit and click Update (Update and Roll Back). The staging app is not published, so the default security rules allow it. - Reload the staging app and check it.
- Click Publish App in the Gitoqlok header, tick Replace existing app and select the published production app (Publish, Move, Duplicate). The published app receives the content and the data of the staging app and keeps its ID; the staging app stays in your Work area for the next release.
The commit history with the comments, the deployed commit and the number of commits not released yet are shown in the Gitoqlok panel of the staging app.
Is production up to date?
When the branch has commits that production does not have yet, the Gitoqlok header of the production app (ways 1 and 2) or of the staging app (way 3) shows how many: Repository has 2 new commits. Open the commit list to read what they change.

The same history is available in the Diff Viewer and Time Machine of a sheet and in the Load Script Diff; the Documentation Wizard turns the commits into release notes.
Roll back
A release is a commit, so a roll back is the same procedure with an earlier commit: choose it in Deploy from Git (way 1) or in the commit list before Update (ways 2 and 3).
Approve releases with a production branch
Ways 2 and 3 use a production branch already. For way 1 it is optional. To separate "committed" from "approved for production", keep a branch for production:
- Create a branch
productionin the repository on the Git server. - Developers commit to the main branch as usual.
- To approve a release, open a pull request from the main branch into
productionand merge it. The commits and their comments are kept (do not squash them). - On the production hub choose the branch
productionin Deploy from Git. The production app is then connected to that branch and counts new commits only after a pull request is merged.
What is not in the repository
| What | How to move it |
|---|---|
| Data | Reload the app in production: Run data reload script in the dialog, or a reload task |
| Data connections | Import Data Connections. Keep the connection names equal in both environments, otherwise the script needs different lib:// paths |
| Reload tasks, streams, security rules, tags, custom properties | Environment Migration |
What Qlik allows
- Sheets and master items of a published app cannot be changed in the hub with the default security rules, whatever the role of the user. Ways 1 and 3 do not need it; way 2 needs the security rule.
- Replacing a published app (ways 1 and 3) needs the right to publish to the stream and to replace the app.
- Reloading needs access to the data connections of the production server.
