PhantomJS as web job in Azure

后端 未结 3 1293
轮回少年
轮回少年 2020-11-30 05:56

I have deployed an asp.net mvc website in azure and I am trying to deploy phantomJS as a web job to support the web site. I have uploaded a zip file with all the necessary

相关标签:
3条回答
  • 2020-11-30 06:37

    Azure Websites will not allow you to listen on ports, also you cannot use localhost from within your Azure Website.

    0 讨论(0)
  • 2020-11-30 06:58

    PhantomJS is not working on azure Webjobs.

    I tried to execute it through CMD shell [yoursite].scm.azurewebsites.net/DebugConsole , but it hanges when I call it with raserize.js script.

    you can use phantomjs as worker role, it will work.

    Update

    Regarding to this: https://stackoverflow.com/a/23000040/3080500

    phantomJS uses GDI to render images and pdf, and GDI is blocked in Azure Website

    ref : GDI is not enabled in azure webisites http://social.msdn.microsoft.com/Forums/windowsazure/en-US/b4a6eb43-0013-435f-9d11-00ee26a8d017/report-viewer-error-on-export-pdf-or-excel-from-azure-web-sites

    ref : PhantomJS uses GDI for rendering fonts : https://github.com/ariya/phantomjs/blob/6a01a8dece0c4dd697eaa0b208057d2bd43a30f3/src/qt/mkspecs/win32-msvc2003/qmake.conf#L63

    0 讨论(0)
  • 2020-11-30 07:00

    We have the same issue with WSAS (Windows Azure Web Sites). We can run can communicate via stdin/stdout with phantomjs.exe, but when ever it does an actual network request, it will time out, or will freeze if a timeout is not set.

    Some other applications can make network requests (f.e. curl.exe), but if you try running "ping", it will respond with "Unable to contact IP driver. General failure." googling which tells that there's likely a Hyper-V misconfiguration on their virtual servers.

    0 讨论(0)
提交回复
热议问题