我正在尝试使用Cloud Foundry命令行界面[CF]将Django项目部署到IBM Blumix。但我堆积了。
我在下面的本地电脑上使用。
MacOS X. Python3.5 Django1.9 CF 1.6.1
-----> Downloaded app package (8.0K)
Cloning into '/tmp/buildpacks/python-buildpack'...
Submodule 'compile-extensions' (https://github.com/cloudfoundry/compile-extensions.git) registered for path 'compile-extensions'
Cloning into 'compile-extensions'...
-------> Buildpack version 1.5.3
-----> Installing runtime (python-2.7.10)
Downloaded [https://pivotal-buildpacks.s3.amazonaws.com/concourse-binaries/python/python-2.7.10-linux-x64.tgz]
-----> Installing dependencies with pip
Directory '.' is not installable. File 'setup.py' not found.
Staging failed: Buildpack compilation step failed
FAILED
BuildpackCompileFailed
我想知道为什么运行时变成python-2.7.10甚至我在runtime.txt中编写python-3.5.0。 请给我任何提示。感谢。
答案 0 :(得分:4)
我可能想通了。 我在parent目录上放了manifest.yml和requirements.txt以及runtime.txt和run.sh.这不是正确的地方。
BMSample
+ BMSample
+ manifest.yml
+ requirements.txt
+ run.sh
+ runtime.txt
+ settings.py
+ manage.py
↓ incollect ↓
(+ manifest.yml)
(+ requirements.txt)
(+ run.sh)
(+ runtime.txt)