Tag: azure deployment

使用Grunt ENOTSUP

我正在使用Grunt来缩小和连接AngularJS Web应用程序的文件。 我们的来源是文件共享,我通过映射的驱动器连接到它。 每当Grunt运行我的源代码目录时,我的一个concat任务出现错误。 错误是“ENOTSUP,在套接字上不支持操作”。 如果我复制源,本地,Grunt运行,罚款。 为了我们的源代码控制,我需要Grunt来监视和运行映射的驱动器。 concat任务使用grunt-contrib-concat。 我已经尝试重新安装Node,并将grunt-contrib-concat回滚到版本0.4.0。 这没有用。 任何帮助/想法将不胜感激。 编辑: Grunt中给出错误的代码是: jscustom: { src: ['src/js/*.js', 'src/js/**/*.js', 'build/temp/templates.js'], dest: 'build/temp/custom.js' } 如果我从上面的代码中删除“'src / js / ** / *。js',并执行我的Grunt任务,ENOTSUP错误不会发生。 我需要使用这些通配符来包含所有的目录和文件。

将节点本地模块部署到Azure WebSites

我正在尝试将以下示例节点应用程序部署到Azure网站: var http = require('http'); var port = process.env.port || 1337; http.createServer(function (req, res) { res.writeHead(200, { 'Content-Type': 'text/html' }); try { var canvasModule = require('canvas'), canvas = new canvasModule(200, 200), ctx = canvas.getContext('2d'); ctx.rotate(0.5); ctx.font = '30px Impact'; var message = "Hello World"; ctx.fillText(message, 40, 40); ctx.strokeRect(30, 5, 160, 50); res.end('<html><img src="' + canvas.toDataURL() […]