I am in the final steps of trying this myself. I'm not sure how you set up the deployment, but I wanted me to create the dist folder in the %DEPLOYMENT_SOURCE% folder, and then copy the resulting folder as part of the deployment.
I struggled with the same problem as yours until I saw the link that you included in your post. This gave me the crazy idea of ββusing grunt and grunt-shell to call ember build instead of calling it directly from my deploy.cmd.
My Gruntfile.js is extremely simple:
module.exports = function(grunt) { require('load-grunt-tasks')(grunt); grunt.initConfig({ shell: { build: { command: 'ember build -prod', options: { stdout: true, stdin: false } }, test: { command: 'ember test', options: { stdout: true, stdin: false } } } }); grunt.registerTask('default', ['shell:build']) }
After that, I had a dist folder, which could then be copied using the Kudu Sync command on wwwroot . If you need to see anything else, just let me know and I will update my answer.
Update
I finally had the opportunity to clean things up and add some checks to make sure that I am not installing installed things. You can view the entire deploy.sh file at:
https://github.com/CrshOverride/EmberTodo/blob/master/deploy.sh
source share