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

Diane Bustamante 1 Reputation point

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.
7,187 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Grmacjon-MSFT 17,136 Reputation points

    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