微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Symfony3:使用Heroku在生产环境中运行ckeditor时出现问题

如何解决Symfony3:使用Heroku在生产环境中运行ckeditor时出现问题

我已经安装了Symphony3框架并创建了自己的捆绑包。我正在使用ckeditor捆绑包。它在开发人员模式下可以正常工作,但是当我将其部署到Heroku(产品环境)时,它不再起作用,因为它无法找到 ckeditor.js ,如图所示:

enter image description here

但是该文件存在于生产服务器上,如您在此处看到的那样:

enter image description here

我已经尝试过这种配置:

config.yml

# Twig Configuration
twig:
    debug:            "%kernel.debug%"
    strict_variables: true
    form_themes:
        - '@FOSCKEditor/Form/ckeditor_widget.html.twig'

assetic:
    debug:          '%kernel.debug%'
    use_controller: '%kernel.debug%'
    filters:
        cssrewrite: ~

我运行以下命令:

PHP bin/console cache:clear --env=prod --no-debug --no-warmup
PHP bin/console ckeditor:install
PHP bin/console assets:install web
PHP bin/console assetic:dump web

先谢谢了。胺。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。