Tag: 连续传送

使用Node.js的文件path问题

我正在将一个基于node.js的应用程序部署到IBM的Bluemix,并为其提供的示例之一添加了一些function。 我已经添加了一个额外的JavaScript文件,使PHP调用ajax调用,但PHP文件回来没有find,因为我的path是不正确的。 我试图把文件放在任何地方,只是没有find。 我正在思考(作为一个总节点noobie),我错过了一些神秘的configuration或东西。 在主目录(除其他外),结构是这样的: — views – index.ejs (this is the main displayed code) — public – js – custom.js (my added file) – all the other necessary js files – css – img – php – I added this directory – get-twitter.php – I added this…custom.js makes an ajax call here 在custom.js中,我有这样的: $("#get-twitter").click(function(event) […]

如何避免Bluemixpipe道分段中的“设备上没有剩余空间”?

我正在使用Bluemix ToolChain服务,即CI服务。 部署暂存失败,因为no space left to device 。 我使用manifest.yml将disk_quota设置的默认值更改为1024M和2048MB,但两者的结果都与默认的disk_quota相同。 另外我尝试buildpack设置默认为sdk-for-nodejs因为如果我使用默认值,它会下载许多不必要的buildpack文件(例如java相关的buildpack)。 我认为这会带来节约空间,但结果是一样的。 我怎样才能解决这个问题? 你有什么想法? 这是错误日志。 (日志太长,所以我把一些日志replace成“:”) Target: https://api.ng.bluemix.net Using manifest file /home/pipeline/aafdbd4d-c22d-4fee-ae34-8d1146cacb56/manifest.yml : : Uploading 101M, 117985 files Done uploading OK : : Downloading sdk-for-nodejs… Downloaded sdk-for-nodejs Creating container Successfully created container Downloading app package… Downloaded app package (107.3M) Downloading build artifacts cache… Downloaded build artifacts […]