This is a Node.js web app built on the Express framework that you can deploy to Azure App Service or Azure App Services on Linux.
This code is the default app as generated by the Express application generator, using Jade view engine.
- The default Message can be modified by setting the Environment Variable / Application setting EVENT_NAME
To learn how to deploy this starter web app to App Service in a few minutes, go to Get started with web apps in Azure App Service.
- Follow the steps mentioned in Creating web app on Linux
- Select the latest node version where you need to select the built-in image source (App was tested with version 6.9)
- Click on Deployment Options
- Next select Github and configure your github repository and branch. If you want to use this repository (https://github.com/maniSbindra/app-service-web-nodejs-get-started) first fork the repository in your github account, and then configure that repository and branch.
- Next click on the Sync button to deploy you github app on your Linux App Service
- Click on the site url to access the site. You can find this by clicking on the overview tab of your web application.
The following command builds the docker container image for the application using the provided Dockerfile and .dockerignore file.
# you need to use your own docker hub userid
docker build -t maninderjit/nodeapp:1.0 .
# After this you need to push the image to docker hub
- Follow the steps mentioned in Creating web app on Linux using custom docker container image
- Select Image source as docker hub
- Enter the image name and tag (maninderjit/nodeapp:1.0)
- Save the information
- Click on the site url to access the site. You can find this by clicking on the overview tab of your web application.
- Enable Application logging to file following steps mentioned in Enable Logging
See LICENSE.