未找到从 Travis CI 部署到 IBM Bluemix (CloudFoundry) 的清单

Manifest not found deploying from Travis CI to IBM Bluemix (CloudFoundry)

简而言之,Travis CI 报告 CF 找不到在构建完成后部署我的应用程序所需的清单文件。

Manifest file is not found in the current directory, please provide either an app name or manifest

.travis.yml:

deploy:
  edge: true
  provider: cloudfoundry
  api: $CF_API
  username: $CF_USER
  password: $CF_PASS
  organization: $CF_ORG
  space: $CF_ENV
  on:
    branch: development

manifest.yml:

---
applications:
- name: Website
  memory: 512M
  domain: mybluemix.net
  host: Website
  buildpack: https://github.com/cloudfoundry/php-buildpack.git

.travis.ymlmanifest.yml 都在预期的根目录中。

原来我的 travis.ymlbefore_script 里面有一个 cd directory
将上述清单放入 directory 修复它。