Heroku,依赖项安装失败! Symfony的3.4

时间:2019-07-17 15:32:48

标签: heroku installation dependencies

请帮助我将我的symfony3.4网站部署在heroku上

我必须提交我的项目,请尽快为我提供帮助

远程:!警告:数据库连接或查询期间发生错误     远程:     远程:!错误:依赖项安装失败!     远程:!     远程:! “ composer安装”过程失败,并出现错误。原因     远程:!可能是软件包的下载或安装,或者是pre或     远程:!安装后挂钩(例如“脚本”中的“ post-install-cmd”项)     远程:!在您的“ composer.json”中。     远程:!     远程:!典型的错误情况是代码过时或缺少部分,     远程:!建立外部连接或内存限制时超时。     远程:!     远程:!请仔细检查以上错误输出以确定原因     远程:!问题,请确保您要推送的代码正常运行     远程:!正确地执行所有本地更改。     远程:!     远程:!有关Heroku上的PHP构建的更多信息,请参考     远程:! https://devcenter.heroku.com/articles/php-support     远程:!     远程:!提醒:在构建过程中发出了以下警告;     远程:!检查上面的详细信息,因为它们可能与此错误有关:     远程:! -数据库连接或查询期间发生错误     远程:     远程:!推送被拒绝,无法编译PHP应用。     远程:     远程:!推送失败     远程:正在验证部署...     远程:     远程:!推拒绝到解冻大沼泽地49873。     远程:     前往https://git.heroku.com/thawing-everglades-49873.git      ! [远程拒绝]主机->主机(预接收挂钩被拒绝)     错误:无法将某些引用推送到“ https://git.heroku.com/thawing-everglades-49 873.git”

Composer.json

{
  "name": "symfony/framework-standard-edition",
  "license": "MIT",
  "type": "project",
  "description": "The \"Symfony Standard Edition\" distribution",
  "autoload": {
    "psr-4": {
      "": "src/"
    },
    "classmap": [
      "app/AppKernel.php",
      "app/AppCache.php"
    ]
  },
  "autoload-dev": {
    "psr-4": {
      "Tests\\": "tests/"
    },
    "files": [
      "vendor/symfony/symfony/src/Symfony/Component/VarDumper/Resources/functions/dump.php"
    ]
  },
  "require": {
    "php": ">=5.5.9",
    "blackford/twilio-bundle": "^5.0",
    "doctrine/doctrine-bundle": "^1.6",
    "doctrine/orm": "^2.5",
    "friendsofsymfony/jsrouting-bundle": "^2.3",
    "friendsofsymfony/rest-bundle": "^2.5",
    "incenteev/composer-parameter-handler": "^2.0",
    "jms/serializer-bundle": "^2.4",
    "nelmio/cors-bundle": "^1.5",
    "nzo/url-encryptor-bundle": "^4.2",
    "sensio/distribution-bundle": "^5.0.19",
    "sensio/framework-extra-bundle": "^5.0.0",
    "symfony/monolog-bundle": "^3.1.0",
    "symfony/polyfill-apcu": "^1.0",
    "symfony/swiftmailer-bundle": "^2.6.4",
    "symfony/symfony": "3.4.*",
    "twig/twig": "^1.0||^2.0"
  },
  "require-dev": {
    "sensio/generator-bundle": "^3.0",
    "symfony/phpunit-bridge": "^3.0"
  },
  "scripts": {
    "symfony-scripts": [
      "Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
      "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
      "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
      "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
      "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile",
      "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::prepareDeploymentTarget"
    ],
    "post-install-cmd": [
      "@symfony-scripts"
    ],
    "post-update-cmd": [
      "@symfony-scripts"
    ]
  },
  "config": {
    "platform": {
      "php": "5.6"
    },
    "sort-packages": true
  },
  "extra": {
    "symfony-app-dir": "app",
    "symfony-bin-dir": "bin",
    "symfony-var-dir": "var",
    "symfony-web-dir": "web",
    "symfony-tests-dir": "tests",
    "symfony-assets-install": "relative",
    "incenteev-parameters": {
      "file": "app/config/parameters.yml"
    },
    "branch-alias": {
      "dev-master": "3.4-dev"
       }
     }
   }

0 个答案:

没有答案