skip to Main Content

I have a yml file setup with Github actions while it deploys Azure doesn’t actually serve the site correctly. It states in the Azure documentation that the container will start with one of the common files:

bin/www

server.js

app.js

index.js

hostingstart.js

My folder structure looks like this:

  • dist
    • server.js
  • build
  • node_modules

If I move /dist into the root the express server initiates and begins trying to serve routes but blows up due to the folder structure. Any help is appreciated.

2

Answers


  1. Do you have a Startup Command set within the Configuration -> General Settings page ?

    If not, you can use this to provide optional command(s) to control how your instance starts.

    You use this when you deviate from the standard its expecting.

    Login or Signup to reply.
  2. You have to modify server.js file. You can find it following this path:

    1. Configuration
    2. General Settings
    3. Startup Command
    4. Type "./dist/server.js"
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search