我试图在Bluemix上运行此电子商务项目: https://github.com/dtsato/loja-virtual-devops
在使用jazz hub进行分叉并在构建阶段获得成功后,我在部署阶段遇到了包限制大小错误:
Downloading artifacts...DOWNLOAD SUCCESSFUL
Target: https://api.ng.bluemix.net
Updating app loja-virtual-devops in org PFC Devops / space test as ricardo.zalla@imejunior.com.br...
OK
Using route loja-virtual-devops-App-Zalla.mybluemix.net
Uploading loja-virtual-devops...
Uploading app files from: /home/pipeline/47cbfb23-f83f-4ec3-b283-fc6c2b7da21f
Uploading 1.4G, 7856 files
148.4M uploaded...
289.3M uploaded...
454M uploaded...
621.3M uploaded...
745.1M uploaded...
906.9M uploaded...
1.1G uploaded...
1.3G uploaded...
Done uploading
FAILED
Error uploading application.
The app package is invalid: Package may not be larger than 1073741824 bytes
Finished: FAILED
有关如何克服它并成功运行应用程序而不删除项目文件以缩小其大小的任何提示?是否可以在Bluemix上部署大于1073741824字节的项目?
答案 0 :(得分:0)
您可以尝试使用“.cfignore”和Ignore local node_modules排除不必要的文件。
此外,不是打包所有依赖项,而是使用自定义buildpack在app staging期间安装它们。
希望这有帮助。