9.1: Issues deploying a new html5 web app

Hi,

In 9.1 I'm following the documentation to register a new html application in the api server. Taking as an example the "custom-app" from the GitHub page and following this article from the 9.1 version, I find some issues:

  1. Adding the new HTML app in Designer so it will appear in the Api server landing page. In the Properties section, the name of the HTML application is correct? I mean, should it be CCC/custom-app? The property Path is irrelevant or should it be filled just as well?
  2. Compile and deploy the Angular project. Following the same "custom-app" example. Once the project has been compiled and zipped as Html_custom-app.zip , it should be placed in imxweb\custom of the workspace and also in bin\imxweb\custom of the IIS Server, creating the "custom" folders if needed. Is this correct? Because the api server looks for a CCC project (see step 1). I see the newly created application in the Apiserver's landing page but I get a 404 page not found error if I click on the new app.
  3. Following the same article, the zip file should be uploaded to the database. I find an error when I try the upload with Software Loader: [1218007] Failed to upload file 'C:\inetpub\wwwroot\ApiServer\bin\imxweb\custom\Html_custom-app.zip' to the database. Number of primary key columns does not match"

Any ideas?

  • Hi,

    1. The name of the app in Designer must be the same as the Angular app name. If Html_custom-app.zip is your archive, then use custom-app.
       The "Path" property is the project path relative to the Angular workspace. It is not being used anymore since we switched to the new development model.

    2. Correct, create the "custom" folders if they do not already exist.

    3. Please contact support for a hotfix for the bug 36006.

    Hope this helps

    Hanno

  • Thanks , Hanno.

    1. Compiled and created Html_custom-app.zip, dropped in IIS bin\imxweb\custom\Html_custom-app.zip
    2. Requested and applied the hotfix, now the Software Loader works. Uploaded the file.
    3. Created a new web app in Designer. 
    • Display name: MyApp
    • HTML application: custom/custom-app
    • Precompiled: True

    4. Restarted the APIServer. I can see the app in the landing page, but when I click it I get the 404 error . The url seems correct:  apiserver/html/custom/custom-app

  • Solved. The name of the application in Designer must be just as it is, without prefix or path name. In the documentation article mentioned above, the HTML application value should be the name of the app, without the "CCC"

  • Thanks for reporting back. Glad it is working.