ckEditor在prod环境中显示标准版本,尽管我已将其更新为完整版本

时间:2014-03-13 11:10:01

标签: php symfony doctrine-orm ckeditor symfony-sonata

我已经从composer.phar install命令将我的CKEditor 4.3.3更新为完整版。它在我的CMSCreate编辑页面中显示完整版本。但它仅适用于开发模式,而不适用于生产模式。我不知道它是如何在prod环境中加载标准版本的。请帮忙。我的composer.json是:

{
    "name" : "--",
    "version" : "--",
    "license" : "proprietary",
    "type" : "project",
    "description" : "-- propriatary project built on: The \"Symfony CMF Standard Edition\" distribution",
    "authors" : [{
            "name" : "--",
            "homepage" : "--"
        }, {
            "name" : "--",
            "homepage" : "--"
        }, {
            "name" : "--",
            "homepage" : "--"
        }
    ],
    "autoload" : {
        "psr-0" : {
            "" : "src/"
        }
    },
    "minimum-stability" : "stable",
    "require" : {
        "php" : ">=5.3.3",
        "symfony/symfony" : "2.3.6",
        "twig/extensions" : "1.0.*",
        "symfony/monolog-bundle" : "2.3.*",
        "symfony/assetic-bundle" : "2.3.*",
        "sensio/distribution-bundle" : "2.3.*",
        "symfony-cmf/symfony-cmf" : "1.0.*",
        "symfony-cmf/simple-cms-bundle" : "1.0.*",
        "symfony-cmf/create-bundle" : "1.0.*",
        "symfony/security-bundle" : "2.3.*",
        "jackalope/jackalope-doctrine-dbal" : "1.0.*",
        "doctrine/doctrine-bundle" : "1.2.*",
        "doctrine/data-fixtures" : "1.0.*",
        "doctrine/migrations": "dev-master",
        "doctrine/doctrine-migrations-bundle": "dev-master",
        "lunetics/locale-bundle" : "2.2.*",
        "liip/doctrine-cache-bundle" : "1.0.*",
        "incenteev/composer-parameter-handler" : "~2.0",
        "liip/imagine-bundle" : "~0.12",
        "wjzijderveld/check-bundles" : "1.0.*@dev",
        "sonata-project/core-bundle": "~2.2@dev",
        "sonata-project/admin-bundle" : "dev-master",
        "sonata-project/doctrine-phpcr-admin-bundle" : "dev-master",
        "sonata-project/doctrine-orm-admin-bundle" : "dev-master",
        "symfony/swiftmailer-bundle" : "dev-master",
        "sonata-project/easy-extends-bundle" : "dev-master",
        "sonata-project/user-bundle" : "dev-master",
        "friendsofsymfony/user-bundle" : "v1.3.3",
        "gedmo/doctrine-extensions" : "dev-master",
        "sonata-project/block-bundle" : "dev-master",
        "whiteoctober/breadcrumbs-bundle" : "dev-master",
        "setasign/fpdi" : "1.4.2",
        "tecnick.com/tcpdf" : "6.0.052"
    },
    "require-dev" : {
        "liip/functional-test-bundle" : "1.0.*"
    },
    "scripts" : {
        "post-install-cmd" : [
            "WillemJan\\CheckBundles\\Composer\\CheckBundles::postPackageUpdate",
            "Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
            "Symfony\\Cmf\\Bundle\\CreateBundle\\Composer\\ScriptHandler::downloadCreateAndCkeditor",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets"
        ],
        "post-update-cmd" : [
            "WillemJan\\CheckBundles\\Composer\\CheckBundles::postPackageUpdate",
            "Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
            "Symfony\\Cmf\\Bundle\\CreateBundle\\Composer\\ScriptHandler::downloadCreateAndCkeditor",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile"
        ]
    },
    "config" : {
        "bin-dir" : "bin"
    },
    "extra" : {
               "ckeditor-directory": "vendor/symfony-cmf/create-bundle/Symfony/Cmf/Bundle/CreateBundle/Resources/public/vendor/ckeditor",
                   "ckeditor-repository": "https://github.com/ckeditor/ckeditor-releases.git",
                   "ckeditor-commit": "0b7c3f1f5c0a9d14657cedf56a3735a2c57a38ac",
            "checkbundles-ignore" : [
            "Liip\\FunctionalTestBundle\\LiipFunctionalTestBundle",
            "Sensio\\Bundle\\DistributionBundle\\SensioDistributionBundle",
            "Sonata\\BlockBundle\\SonataBlockBundle",
            "Symfony\\Cmf\\Bundle\\BlockBundle\\CmfBlockBundle"
        ],
        "symfony-app-dir" : "app",
        "symfony-web-dir" : "web",
        "incenteev-parameters" : {
            "file" : "app/config/parameters.yml",
            "keep-outdated": true
        },
        "branch-alias" : {
            "dev-master" : "1.0-dev"
        }
    }
}

任何帮助都会非常适合。

1 个答案:

答案 0 :(得分:1)

运行后

Assetic dump
app/console assetic:dump

解决了这个问题。