How to deploy Mern project with subdirectory

additya sharma 0 Reputation points
2023-04-25T16:06:43.0533333+00:00

I have a MERN project with following directory structure: User's image

My root folder does not contain my server , instead contains two folders:

  1. api - for server
  2. client - for frontend i cannot deploy it to azure web services as it says root must contain package.json. I am beginner to cloud and thus cannot solve this problem. I saw many tutorials but all of them are just basic server only projects. So kindly guide me how can i deploy my this project and what changes shall i make
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,930 questions
{count} votes

3 answers

Sort by: Most helpful
  1. SnehaAgrawal-MSFT 22,706 Reputation points Moderator
    2023-04-27T07:53:45.2+00:00

    @additya sharma Thanks for reaching here! It seems you want to deploy MERN Stack on Azure App Services. You may refer to below useful articles

    1. Creating MERN Stack App and Hosting In Microsoft Azure
    2. How to Deploy a MERN Stack App to Azure via Continuous Integration
    3. A way to deploy a MERN app to Azure instead of Heroku

    Please let us know for further assistance on this.

    0 comments No comments

  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  3. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.