Flynn: Cedar 堆栈无法构建

创建于 2017-12-02  ·  4评论  ·  资料来源: flynn/flynn

我们所有的 Cedar 应用程序都在上周左右停止构建(我们已经有几天没有构建了,所以我不确定这什么时候开始发生的)。 如果我找到了buildpack的正确存储库,它会在返回此错误时尝试从 S3 存储桶下载文件,该文件应为: https ://lang-php.s3.amazonaws.com/dist-cedar-

这个文件确实存在,所以我不确定这里出了什么问题......

λ  git push flynn-dev master                                                        
Counting objects: 1, done.                                                          
Writing objects: 100% (1/1), 185 bytes | 0 bytes/s, done.                           
Total 1 (delta 0), reused 0 (delta 0)                                               
remote: -----> Building example...                                                 
remote: -----> PHP app detected                                                     
remote: -----> Bootstrapping...                                                     
remote:                                                                             
remote:        !     ERROR: Failed to download minimal PHP for bootstrapping.       
remote:        Please try again, or contact support if this problem persists.       
remote:                                                                             
remote: ERROR: Build failed: exec: job exited with status 1                         
To https://git.example.example.com/example.git
 ! [remote rejected] master -> master (pre-receive hook declined)                   
error: failed to push some refs to 'https://git.example.example.com/example.git'

我们的 composer.json 和 Procfile 非常简单:

作曲家.json

{
  "require": {
     "php": "^5.6.0",
     "ext-mbstring": "*",
     "ext-gd": "*",
     "ext-mcrypt": "*",
     "ext-redis": "*"
  },
  "scripts": {
    "compile": [
      "rm -rf craft/storage/",
      "mkdir -p craft/storage/runtime/compiled_templates",
      "mkdir -p craft/storage/backups",
      "mkdir -p craft/storage/runtime/assets",
      "mkdir -p craft/storage/runtime/cache",
      "mkdir -p craft/storage/logs",
      "mkdir -p craft/storage/sessions",
      "chmod -R 0777 craft/storage",
      "ls -al craft/storage",
      "ls -al craft/storage/runtime",
      "ls -al craft/storage/runtime/compiled_templates",
      "cp public/dist.htaccess public/.htaccess"
    ]
  }
}

档案

web: vendor/bin/heroku-php-apache2 public/

最有用的评论

@airways尝试使用更新的 PHP buildpack(例如v127 ):

$ flynn env set BUILDPACK_URL=https://github.com/heroku/heroku-buildpack-php.git#v127

所有4条评论

@airways尝试使用更新的 PHP buildpack(例如v127 ):

$ flynn env set BUILDPACK_URL=https://github.com/heroku/heroku-buildpack-php.git#v127

@lmars这似乎奏效了。 我很困惑为什么需要这个,版本不应该自动升级吗? 我之前根本没有指定构建包——它只是自动检测到的。

使用 Heroku 时,我不需要手动升级 buildpack,理想情况下,我希望 Flynn 的行为方式相同。 似乎这可以被认为是一个增强请求(如果 Flynn 当前没有设计为这样做)或一个错误(如果它应该已经这样做)。

我很困惑为什么需要这个,版本不应该自动升级吗

Flynn 的每个版本都使用特定的 buildpack 提交(例如,当前的 PHP 版本在这里)。 这些通过 Flynn CI 系统检查它们是否兼容,但它们可以如上所述手动升级。

使用 Heroku 时,我不需要手动升级 buildpack,理想情况下,我希望 Flynn 的行为方式相同

升级最终是集群管理员的责任(所以 Heroku 升级他们的集群,因为你付钱给他们)。 我们的目标是提供工具以使升级过程顺利进行,但宁愿不负责“自动升级”,这可能会破坏我们一无所知的集群。

有道理,谢谢你的信息。 我会继续关闭它。

此页面是否有帮助?
0 / 5 - 0 等级

相关问题

heldopslippers picture heldopslippers  ·  4评论

amingilani picture amingilani  ·  4评论

lmars picture lmars  ·  3评论

Kentoseth picture Kentoseth  ·  4评论

titanous picture titanous  ·  4评论