Running in Azure App Service



  • What are the steps please to run this inside an Azure App service if I do not want to use docker? I'm interested in running jsreport in an Azure windows app service.

    Thanks

    Josh



  • I got it working... Here's some tips for anyone else

    1. run these step in console from wwwroot folder -> https://jsreport.net/on-prem
    2. put process.json in wwwroot:
    {
          "name"        : "worker",
          "script"      : "./server.js",
          "instances"   : 1,
          "merge_logs"  : true,
          "log_date_format" : "YYYY-MM-DD HH:mm Z",
          "watch": true,
          "watch_options": {
            "followSymlinks": true,
            "usePolling"   : true,
            "interval"    : 5
          }
        }
    
    1. put web.config file in wwwroot:
    <configuration>
        <system.webServer>
            <handlers>
                <add name="iisnode" path="server.js" verb="*" modules="iisnode" />
            </handlers>
            <rewrite>
                <rules>
                    <rule name="DynamicContent">
                        <match url="/*" />
                        <action type="Rewrite" url="server.js"/>
                    </rule>
                </rules>
            </rewrite>
        </system.webServer>
    </configuration>```

  • administrators

    thanks for sharing the steps!!



  • Can you add authentication and connectionstrings here ?



    • Is Custom Fonts Rendering is working alright in this method ?

Log in to reply
 

Looks like your connection to jsreport forum was lost, please wait while we try to reconnect.