使用heroku更改symfony 2中的parameters.yml文件

时间:2014-06-10 18:50:57

标签: php symfony heroku

我使用Symfony 2.5并且我无法更改参数文件,因为无论何时推送任何更新,它都会重建文件。

我使用buildpack:https://github.com/CHH/heroku-buildpack-php,我的作曲家就是这样:

{
"name": "symfony/framework-standard-edition",
"license": "MIT",
"type": "project",
"description": "The \"Symfony Standard Edition\" distribution",
"autoload": {
    "psr-0": {
        "": "src/"
    }
},
"require": {
    "php": ">=5.3.3",
    "symfony/symfony": "~2.4",
    "doctrine/orm": "~2.2,>=2.2.3",
    "doctrine/doctrine-bundle": "1.3.*@dev",
    "twig/extensions": "~1.0",
    "symfony/assetic-bundle": "~2.3",
    "symfony/swiftmailer-bundle": "~2.3",
    "symfony/monolog-bundle": "~2.4",
    "sensio/distribution-bundle": "~2.3",
    "sensio/framework-extra-bundle": "~3.0",
    "sensio/generator-bundle": "~2.3",
    "incenteev/composer-parameter-handler": "~2.0",
    "sylius/resource-bundle": "0.9.*@dev",
    "knplabs/knp-menu": "2.0.*@dev",
    "knplabs/knp-menu-bundle": "2.0.*@dev",
    "friendsofsymfony/user-bundle": "~2.0@dev",
    "nelmio/cors-bundle": "1.3.*@dev",
    "stof/doctrine-extensions-bundle": "1.1.*@dev",
    "liip/imagine-bundle": "1.0.*@dev"
},
"scripts": {
    "post-install-cmd": [
        "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"
    ],
    "post-update-cmd": [
        "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"
    ]
},
"config": {
    "bin-dir": "bin"
},
"extra": {
    "heroku": {
        "newrelic": true,
        "document-root": "web",
        "index-document": "app.php",
        "compile": [
            "php app/console assetic:dump --env=prod"
        ],
        "php-config": [ 
            "date.timezone=America/Sao_Paulo",
            "display_errors=off",
            "short_open_tag=off"
        ]
    },
    "symfony-app-dir": "app",
    "symfony-web-dir": "web",
    "incenteev-parameters": {
        "file": "app/config/parameters.yml"
    },
    "branch-alias": {
        "dev-master": "2.4-dev"
    },
    "framework": "symfony2"
   }
   }

如果有人有任何想法,我会非常感激

0 个答案:

没有答案