Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to deploy an Ember CLI app to Azure Websites

I'm trying to deploy an ember-cli app to Azure Websites. When deploying to azure, you run a deployment script, which does the following:

 - npm install bower
 - npm install ember-cli
 - bower install
 - npm install
 - ember build

Well, it all seems to go well, until it hits the ember build step. I get an error:

this._handle.open(options.fd)

Error: EINVAL, Invalid argument
      at new Socket (net.js:156:18)
      at process.stdin (node.js:664:19)
      at ..... ember-cli\bin\ember:28:25

Searching around I found this link regardin the same problem with Grunt https://github.com/TryGhost/Ghost/pull/3608 So, how would I disable stdin in Ember CLI? Any way I can do that, or any workaround so I can deploy the app?

I'm trying to make the build process on the webserver, and somehow this doesn't work on Azure. Does anyone have any experience with Azure? Thank you so much!

UPDATE

Please one of the two methods posted below by Felix Rieseberg or Justin Niessner. Thank you to you both for the support and looking into this!

like image 219
tehmaestro Avatar asked Feb 13 '15 06:02

tehmaestro


1 Answers

I actually also figured out a way - and since I'm an Open Source guy at Microsoft, I just built a small npm module that takes care of everything. If you want a long explanation, check this out - if you just want the tl;dr version:

$ npm install ember-cli-azure-deploy --save-dev -g $ azure-deploy init

like image 179
Felix Rieseberg Avatar answered Sep 28 '22 18:09

Felix Rieseberg