Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
marco_puccetti
Partner - Creator
Partner - Creator

Mashup Deploy on Virtual machine

Hello i need to deploy a web application using Mashup on a IIS server into a Virtual Machine (windows 7 64 bit).

I've developed the mashup on another machine and i've noticed that exporting only the application folder on the Virtual Machine and testing the mashup with the qliksense server, the components aren't working.

Is it possible? How can i do to let the components visible on the virtual machine?

Have i to update the local mashup database? If yes, where can i locate it?

Thanks

Marco

13 Replies
marco_puccetti
Partner - Creator
Partner - Creator
Author

I explain better my question, i need to use a mashup application on machine different from the develop machine, so i ask why after having moved the qliksense application and the mashup application in the right folder, the application continue to no show the qliksense component in the web view?

Thanks

Marco

Not applicable

Hi Marco

If I understand your question you have moved your mashup to a virtual machine that has a web server installed.

To get the mashup  working again you have to edit the javascript file and html file and make sure that the host name of the machine where you are running Qlik Sense is correct.

In the html file where you have these tags:

    <meta http-equiv="cleartype" content="on">

    <link rel="stylesheet" href="./resources/autogenerated/qlik-styles.css">

    <script src="./resources/assets/external/requirejs/require.js"></script>

    <script src="TestMashup.js"></script>

Add the full hostname of the machine where you run the Qlik Sense Server. For example <link rel="stylesheet" href="./resources/autogenerated/qlik-styles.css"> to <link rel="stylesheet" href="https://"hostname".com/resources/autogenerated/qlik-styles.css">

marco_puccetti
Partner - Creator
Partner - Creator
Author

Hello, i've changed the javascript replacing the prefix with web application folder and the html headers as you have mentionned, but it is still not displaying the qliksense objects.

Html file

<link rel="stylesheet" href="./resources/autogenerated/qlikui.css">

<link rel="stylesheet" href="./resources/assets/client/client.css" media="all">

<script src="./resources/assets/external/requirejs/require.js"></script>

<!-- Bootstrap core CSS -->

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">

<link rel="stylesheet" href="./EXStat_web.css">

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>

<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>

<script src="./EXStat_web.js"></script>

Javascript file

var config = {

  host: window.location.hostname,

  prefix: "/EXStat_web",

  port: window.location.port,

  isSecure: window.location.protocol == "https:"

};

Any ideas?

Thanks

Marco

Not applicable

The prefix in the .js file should be name of the virtual proxy that is configured in the qlik sense server. Can you attach the whole mashup here so that I can take a look at it?. Also what is address to qlik sense server that you are using?

marco_puccetti
Partner - Creator
Partner - Creator
Author

I've installed the qmc but i need your help to let it work:

1) When i enter the qmc it asks me an user id and a password, but if i use the local machine ones as i expect it doesn't work; The local address is the following: https://localhost:4244/

Immagine2.png

Thanks

Marco

Not applicable

The default port that you should use is 443 not 4244.

marco_puccetti
Partner - Creator
Partner - Creator
Author

I've installed properly mashup and qmc but i have noticed that moving the application from the extension folder to the wwwroot folder (IIS) with the right rights the application don't generate these three system files:

1) ./resources/autogenerated/qlikui.css

2) ./resources/assets/client/client.css

3) ./resources/assets/external/requirejs/require.js

I have only changed this part of code as advised like below:

//var prefix = window.location.pathname.substr( 0, window.location.pathname.toLowerCase().lastIndexOf( "/extensions" ) + 1 );

var prefix = "http://localhost/EXStat_web/"; //(the IIS Application Folder)

var config = {

  host: window.location.hostname,

  prefix: prefix,

  port: window.location.port,

  isSecure: window.location.protocol == "https:"

};

//to avoid errors in workbench: you can remove this when you have added an app

var app;

require.config( {

  baseUrl: (config.isSecure ? "https://" : "http://" ) + config.host + (config.port ? ":" + config.port : "" ) + config.prefix + "resources"

} );

marco_puccetti
Partner - Creator
Partner - Creator
Author

Now i get this loading error because of the qlik.js file.

Immagine3.png

i have changed the html include as below:

<!--Add host to these 3 links if the mashup is on an external webserver-->

<link rel="stylesheet" href="http://localhost:4848/resources/autogenerated/qlikui.css">

<link rel="stylesheet" href="http://localhost:4848/resources/assets/client/client.css" media="all">

<script src="http://localhost:4848/resources/assets/external/requirejs/require.js"></script>

Thanks

Marco

Not applicable

Marco

In these three rows change "http://localhost:4848" to point the machine where you have the Qlik Sense Server installed.

<!--Add host to these 3 links if the mashup is on an external webserver-->

<link rel="stylesheet" href="http://localhost:4848/resources/autogenerated/qlikui.css">

<link rel="stylesheet" href="http://localhost:4848/resources/assets/client/client.css" media="all">

<script src="http://localhost:4848/resources/assets/external/requirejs/require.js"></script>

In other wods, if the Qlik sense  is for example installed on a machine with a host name "machine1.fakedomain.com" then  it should look like this:


<link rel="stylesheet" href="https://machine1.fakedomain.com/resources/autogenerated/qlikui.css">

<link rel="stylesheet" href="https://machine1.fakedomain.com/resources/assets/client/client.css" media="all">

<script src="https://machine1.fakedomain.com/resources/assets/external/requirejs/require.js"></script>