Search Posts

Finally deployed nodejs+express to azure

Finally deployed nodejs+express to azure, I failed a fews time using the examples and . 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

Leave a Reply

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