Electron app (nightmare.js) failing on Azure App Service for Linux

Diane Bustamante 1 Reputation point
2019-12-17T16:14:32.467+00:00

Is it possible to run Electron apps (Nightmare.js) on the Azure App Service for Linux nodejs built-in containers? It seems like there may be some specific Azure configuration settings required for this to work. The issue is the node server can't launch Nightmare.js and throws a connection timeout error.

Has anyone been successful in getting an Electron app to work on Azure App Service?

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,685 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Grmacjon-MSFT 15,156 Reputation points
    2019-12-30T09:07:32.64+00:00

    Hi DianeBustamante-7877,

    Based on this SO thread you need to check your Dockerfile for exposed ports. Also setting explicit WEBSITES_PORT in your Azure Web App's "Application Settings" should help.

    please see this detailed doc for addtional info: https://blogs.msdn.microsoft.com/waws/2017/09/08/things-you-should-know-web-apps-and-linux/#NoPing

    0 comments No comments