Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Configure Azure to run nodejs app in development environment

Tags:

node.js

azure

NodeJS applications on Azure portal are running by default in production environment (process.env.NODE_ENV is production).

Is it possible to change the environment to development? And how?

(If it matters, I configured the application as a Web Site on Azure.)

like image 887
Razvan Avatar asked Jul 17 '14 13:07

Razvan


1 Answers

You can set the NODE_ENV variable under the Website App settings configuration on the portal: http://azure.microsoft.com/en-us/documentation/articles/web-sites-configure/#howtochangeconfig

Additionally, if you are using the Azure CLI (which you can install via npm install azure-cli -g), you can run the following azure site config add NODE_ENV=development assuming your CLI is configured.

This will ask you for the website name then set the config.

like image 152
sabbour Avatar answered Oct 06 '22 01:10

sabbour