0

I have App A and App B which has common code in node.js.

Commom
d node_modules
    Dal.js
    helpers.js
    logger.js
    package.json
App A
d    node_modules
d    views
d    routes
    app.js
    package.json
App B
d    node_modules
d    views
d   routes
    app.js
   package.json

There is start-up script that starts services today and works fine on a local machine.

I couldn't deploy this to Azure Web App. The deployment is failing as it couldn't find package.json at root folder. Is it possible to deploy multiple services to Web App or it only allows one. I know we can make NPM for common and have separate, but it creates long-term problem of knowing/managing bunch of repo's for each service and common code. Any suggestions are greatly appreciated.

1 Answers1

0

Azure use IIS to host your website and IIS has allowed you to configure multiple virtual directories and applications within a single website. So, it's possible to deploy multiple services to Web App via Virtual Directory. For more information, please refer to this link.

Aaron Chen
  • 9,835
  • 1
  • 16
  • 28
  • Can you please clarify, I don't see the links answering the question. Do you mean that I can specify Common as virtual directory and it will deploy? I tried it, but no luck. I must be missing something. – Appireddy Kikkuru Oct 01 '17 at 17:19