Finally deployed nodejs+express to azure

Finally deployed nodejs+express to azure

2018/04/29 Programming 0

Finally deployed nodejs+express to azure, I failed a fews time using the examples https://docs.microsoft.com/en-us/azure/app-service/app-service-web-get-started-nodejs and https://docs.microsoft.com/en-us/azure/cloud-services/cloud-services-nodejs-develop-deploy-express-app . The easiest steps for me are:

1. Create the App service manually in Azure portal
2. Create you express
3. Ftp to the app service.
4. Download server.js , copy content from bin/www to it and modify “var app = require(‘../app’);” to “var app = require(‘./app’);” !!! Deleted one dot
5. Upload everything include the server.js
6. Open console in azure portal, run “npm install”
7. Restart the app service in azure portal
8. Just refresh browser, you will see the result

read count : 2

Leave a Reply

Your email address will not be published. Required fields are marked *